From e70b263430990055abc58945aa385e52d935431d Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Wed, 8 Aug 2012 11:52:58 +0200 Subject: [PATCH] fixed Hero's relative IP calculation --- src/battle/Hero.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/Hero.h b/src/battle/Hero.h index 59512b6..d7f6a49 100644 --- a/src/battle/Hero.h +++ b/src/battle/Hero.h @@ -34,7 +34,7 @@ public: int RelativeMana(int max) const { return mana * max / maxMana; } Uint8 IP() const { return ip; } - int RelativeIP(int max) const { return ip * max / 256; } + int RelativeIP(int max) const { return ip * max / 255; } Uint16 Attack() const { return attack; } Uint16 Defense() const { return defense; } -- 2.39.2