diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-09 23:58:15 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-09 23:58:15 +0000 |
commit | be2fdb7066f39069d748a89a61f60f3b7b6f902e (patch) | |
tree | 278128beab9bf28214247bb0f84aba1d4bd50a35 /src/map/status.h | |
parent | 533ce63fe5e55aca6ebb1ca709e300aded8de775 (diff) | |
download | hercules-be2fdb7066f39069d748a89a61f60f3b7b6f902e.tar.gz hercules-be2fdb7066f39069d748a89a61f60f3b7b6f902e.tar.bz2 hercules-be2fdb7066f39069d748a89a61f60f3b7b6f902e.tar.xz hercules-be2fdb7066f39069d748a89a61f60f3b7b6f902e.zip |
Renewal Mode DEF calc fixed (can go over 127 now), bugreport:5110
Fixed Logic Issues with r15039 script command set
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15051 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.h')
-rw-r--r-- | src/map/status.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/status.h b/src/map/status.h index 8572b1bbb..4bf0b627d 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -1362,6 +1362,12 @@ struct status_data { short hit, flee, cri, flee2, def2, mdef2, +#if RRMODE + /** + * In RE def and mdef can go over 127 (signed char) limit, so in RE mode we use short + **/ + def,mdef, +#endif aspd_rate; unsigned char def_ele, ele_lv, @@ -1372,8 +1378,13 @@ struct status_data { wlv, #endif size, race; +#if RRMODE == 0 + /** + * In NON-RE def and mdef are not required to be short, so we keep it signed char (ancient-default) + **/ signed char def, mdef; +#endif struct weapon_atk rhw, lhw; //Right Hand/Left Hand Weapon. }; |