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:
2023-12-06 19:51:38 -06:00
parent 808cc32418
commit 5eec1a21c5
6 changed files with 79 additions and 31 deletions
+1 -1
View File
@@ -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+="%";
}