From: Daniel Karbach Date: Wed, 8 Aug 2012 09:52:58 +0000 (+0200) Subject: fixed Hero's relative IP calculation X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=e70b263430990055abc58945aa385e52d935431d;p=l2e.git fixed Hero's relative IP calculation --- 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; }