]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Hero.h
changed gauge level interpretation
[l2e.git] / src / battle / Hero.h
index 59512b61e3e067c5bc3772e6eed7a98a54159758..d7f6a49d97b0a89efaeffe8c752d46db5484f922 100644 (file)
@@ -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; }