summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-05 19:17:44 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-05 19:17:44 +0000
commit4bc74ed1e4119ab962652308df1044fba44376e6 (patch)
tree118981ef47bd7e9a3cd808b9db188cc847fa26a9 /src/map/map.h
parentbe333fef8f4e91bebd76d0fb1c6ca714915d5dbb (diff)
downloadhercules-4bc74ed1e4119ab962652308df1044fba44376e6.tar.gz
hercules-4bc74ed1e4119ab962652308df1044fba44376e6.tar.bz2
hercules-4bc74ed1e4119ab962652308df1044fba44376e6.tar.xz
hercules-4bc74ed1e4119ab962652308df1044fba44376e6.zip
- Cleaned up code for SC_MINDBREAKER.
- Changed hit, flee, cri, flee2, def2 and mdef2 to signed short, def, mdef to signed char to correctly account for cards with penalties in said stats. - Added cap_value checks in all of the status_calc_* return paths to make sure no stat is invalid. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6986 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 8270256a9..3853905d9 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -332,16 +332,18 @@ struct status_data {
str, agi, vit, int_, dex, luk,
batk,
matk_min, matk_max,
- hit, flee, cri, flee2,
- def2, mdef2,
speed,
amotion, adelay, dmotion,
mode;
- short aspd_rate;
+ short
+ hit, flee, cri, flee2,
+ def2, mdef2,
+ aspd_rate;
unsigned char
- def, mdef,
def_ele, ele_lv,
size, race;
+ signed char
+ def, mdef;
struct weapon_atk rhw, *lhw; //Right Hand/Left Hand Weapon. Only players have a lhw (hence it's a pointer)
};