v1.0.2: negative str bonuses now also show in hero stats screen
This commit is contained in:
parent
07ad3fcc38
commit
4b0e89af2e
|
@ -108,7 +108,9 @@ public class WndGameInProgress extends Window {
|
||||||
|
|
||||||
pos += GAP;
|
pos += GAP;
|
||||||
|
|
||||||
if (info.strBonus > 0) statSlot( Messages.get(this, "str"), info.str + "+" + info.strBonus );
|
int strBonus = info.strBonus;
|
||||||
|
if (strBonus > 0) statSlot( Messages.get(this, "str"), info.str + " + " + strBonus );
|
||||||
|
else if (strBonus < 0) statSlot( Messages.get(this, "str"), info.str + " - " + -strBonus );
|
||||||
else statSlot( Messages.get(this, "str"), info.str );
|
else statSlot( Messages.get(this, "str"), info.str );
|
||||||
if (info.shld > 0) statSlot( Messages.get(this, "health"), info.hp + "+" + info.shld + "/" + info.ht );
|
if (info.shld > 0) statSlot( Messages.get(this, "health"), info.hp + "+" + info.shld + "/" + info.ht );
|
||||||
else statSlot( Messages.get(this, "health"), (info.hp) + "/" + info.ht );
|
else statSlot( Messages.get(this, "health"), (info.hp) + "/" + info.ht );
|
||||||
|
|
|
@ -145,6 +145,7 @@ public class WndHero extends WndTabbed {
|
||||||
|
|
||||||
int strBonus = hero.STR() - hero.STR;
|
int strBonus = hero.STR() - hero.STR;
|
||||||
if (strBonus > 0) statSlot( Messages.get(this, "str"), hero.STR + " + " + strBonus );
|
if (strBonus > 0) statSlot( Messages.get(this, "str"), hero.STR + " + " + strBonus );
|
||||||
|
else if (strBonus < 0) statSlot( Messages.get(this, "str"), hero.STR + " - " + -strBonus );
|
||||||
else statSlot( Messages.get(this, "str"), hero.STR() );
|
else statSlot( Messages.get(this, "str"), hero.STR() );
|
||||||
if (hero.shielding() > 0) statSlot( Messages.get(this, "health"), hero.HP + "+" + hero.shielding() + "/" + hero.HT );
|
if (hero.shielding() > 0) statSlot( Messages.get(this, "health"), hero.HP + "+" + hero.shielding() + "/" + hero.HT );
|
||||||
else statSlot( Messages.get(this, "health"), (hero.HP) + "/" + hero.HT );
|
else statSlot( Messages.get(this, "health"), (hero.HP) + "/" + hero.HT );
|
||||||
|
|
|
@ -225,6 +225,7 @@ public class WndRanking extends WndTabbed {
|
||||||
|
|
||||||
int strBonus = Dungeon.hero.STR() - Dungeon.hero.STR;
|
int strBonus = Dungeon.hero.STR() - Dungeon.hero.STR;
|
||||||
if (strBonus > 0) pos = statSlot(this, Messages.get(this, "str"), Dungeon.hero.STR + " + " + strBonus, pos);
|
if (strBonus > 0) pos = statSlot(this, Messages.get(this, "str"), Dungeon.hero.STR + " + " + strBonus, pos);
|
||||||
|
else if (strBonus < 0) pos = statSlot(this, Messages.get(this, "str"), Dungeon.hero.STR + " - " + -strBonus, pos );
|
||||||
else pos = statSlot(this, Messages.get(this, "str"), Integer.toString(Dungeon.hero.STR), pos);
|
else pos = statSlot(this, Messages.get(this, "str"), Integer.toString(Dungeon.hero.STR), pos);
|
||||||
pos = statSlot( this, Messages.get(this, "health"), Integer.toString( Dungeon.hero.HT ), pos );
|
pos = statSlot( this, Messages.get(this, "health"), Integer.toString( Dungeon.hero.HT ), pos );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user