converted remainder of vanilla.cpp to Attributes