Refactored stat system such that equip stats can be obtained easily, while base stats are hidden away to prevent accidental usage.
This commit is contained in:
@@ -180,7 +180,7 @@ void Menu::InitializeCharacterMenuWindow(){
|
||||
for(ItemAttribute attribute:displayAttrs){
|
||||
AttributeData data=ItemAttributable::GetDisplayInfo(attribute);
|
||||
std::string attrStr=data.name+":\n ";
|
||||
attrStr+=std::to_string(game->GetPlayer()->A(attribute));
|
||||
attrStr+=std::to_string(game->GetPlayer()->GetStat(attribute));
|
||||
if(data.displayAsPercent){
|
||||
attrStr+="%";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user