ddamiann
.
Find in container.cpp this:
And after it add:
And example:
Code:
if(!begin)
s << ", ";
else
begin = false;
s << (*it)->getNameDescription();
And after it add:
Code:
int atk = (*it)->getAttack();
int def = (*it)->getDefense();
int arm = (*it)->getArmor();
if(atk > 0 && def > 0) { s << " (Attack: " << atk << ", defence: " << def << ")"; }
else if(def > 0) { s << " (Defence: " << def << ")"; }
else if(arm > 0) { s << " (Armor: " << arm << ")"; }
And example:
21:12 Loot of a goblin: a bag, a leather armor (Armor: 8), a short sword (Attack: 15, defence: 14), a leather helmet (Armor: 5), a machete (Attack: 15, defence: 11), 8 gold coins, 9 worms, a bone club (Attack: 14, defence: 11), a moldy cheese, a bone, a fish, 2 small stones, a small axe.
Last edited: