X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FHero.h;h=d7f6a49d97b0a89efaeffe8c752d46db5484f922;hb=d1df71f636f14fe2cb5b44b173e3d30bdc73521e;hp=59512b61e3e067c5bc3772e6eed7a98a54159758;hpb=628b3a7276d0b330719e05504b23bafcf88f8fca;p=l2e.git 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; }