- Dołączył
- Lipiec 4, 2009
- Posty
- 2608
- Liczba reakcji
- 386
- Wiek
- 30
?eby nie by?o, ?e plagiat: ddamiann z otlandu to ja.
Znajd? w container.cpp to:
Dodaj po tym:
Przyk?ad dzia?ania:
Znajd? w container.cpp to:
Kod:
if(!begin)
s << ", ";
else
begin = false;
s << (*it)->getNameDescription();
Dodaj po tym:
Kod:
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 << ")"; }
Przyk?ad dzia?ania:
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.