+ if (lup.MaxHealth() > 0) {
+ info.push_back(Upgrade(name, Upgrade::MAX_HEALTH, lup.MaxHealth()));
+ }
+ if (lup.MaxMagic() > 0) {
+ info.push_back(Upgrade(name, Upgrade::MAX_MAGIC, lup.MaxMagic()));
+ }
+ if (lup.Attack() > 0) {
+ info.push_back(Upgrade(name, Upgrade::ATTACK, lup.Attack()));
+ }
+ if (lup.Defense() > 0) {
+ info.push_back(Upgrade(name, Upgrade::DEFENSE, lup.Defense()));
+ }
+ if (lup.Strength() > 0) {
+ info.push_back(Upgrade(name, Upgrade::STRENGTH, lup.Strength()));
+ }
+ if (lup.Agility() > 0) {
+ info.push_back(Upgrade(name, Upgrade::AGILITY, lup.Agility()));
+ }
+ if (lup.Intelligence() > 0) {
+ info.push_back(Upgrade(name, Upgrade::INTELLIGENCE, lup.Intelligence()));
+ }
+ if (lup.Gut() > 0) {
+ info.push_back(Upgrade(name, Upgrade::GUT, lup.Gut()));
+ }
+ if (lup.MagicResistance() > 0) {
+ info.push_back(Upgrade(name, Upgrade::MAGIC_RESISTANCE, lup.MagicResistance()));
+ }