Author: ATracer
(2010/03/14 21:25) Almost 2 years ago
added warning message to lifestats
99
*/
100
public int getMaxHp()
101
{
102
return this.getOwner().getGameStats().getCurrentStat(StatEnum.MAXHP);
int maxHp = this.getOwner().getGameStats().getCurrentStat(StatEnum.MAXHP);
103
if(maxHp == 0)
104
105
maxHp = 1;
106
log.warn("CHECKPOINT: maxhp is 0 :" + this.getOwner().getGameStats());
107
}
108
return maxHp;
109
110
/**
111
{{return this.getOwner().getGameStats().getCurrentStat(StatEnum.MAXHP);int maxHp = this.getOwner().getGameStats().getCurrentStat(StatEnum.MAXHP);if(maxHp == 0){maxHp = 1;log.warn("CHECKPOINT: maxhp is 0 :" + this.getOwner().getGameStats());}return maxHp;