EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   COMMITTED: Mana bug Fix (https://www.eqemulator.org/forums/showthread.php?t=31157)

Secrets 04-26-2010 04:50 PM

COMMITTED: Mana bug Fix
 
This will fix mana being displayed on the client above the max value of an sint16 (32767). Why would you need that much mana? I don't know, but here's a fix.

Code:

Index: mob.h
===================================================================
--- mob.h        (revision 1423)
+++ mob.h        (working copy)
@@ -154,7 +154,7 @@
        sint32        MaxHP;
        sint32        ManaRegen;
        sint32        EnduranceRegen;
-        sint16        Mana;
+        sint32        Mana;
        sint32        Endurance;
        sint16        ATK;
        //would it be worth it to create a Stat_Struct?


http://i42.tinypic.com/efhpop.png

steve 04-27-2010 05:14 PM

My character on Live has over 33,000 mana with buffs, so it is needed, eventually. SoD really inflated HP/Mana values and Underfoot continues that trend.

Thanks for the fix!


All times are GMT -4. The time now is 02:22 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.