![]() |
|
About mana regen - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43) +--- Thread: About mana regen (/showthread.php?tid=5835) |
|
About mana regen - Xidd - 11-26-2010 the mana regen formula in lf2 is: (500-health)*0.01 + 1 if it is a special char then (500-health/2)*0.01 + 1 mana is added every 3 TU's clones(rudolf and maybe something else?) cannot have more than 150mp you do not regen mp while you are *flashing*(invincible) for characters with more than 500hp - 500 is used as the health instead of the real value you can find the code at: 0041FA7Bh the code was rewriten so that instead of using 500-health it will use max_health - health the code was also cleaned up and lots of useless stuff was removed
it is a cleaned up version of the original code except it replaces edx,500 with mov edx, dword ptr ds:[ecx+304h] if you want to add it to the dll then: invoke JmpPatch, 0041FA7Bh, addr mp_regen this should make boss fights much more challenging |