summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-04-01 00:56:19 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-06 01:21:57 +0300
commit9f7a47eb136c45adab54fa56517e5352cd801091 (patch)
tree10147b53de03818263f232b18ed5b288e6e42e3a
parent574801d93c55b5ac41f9bdbd660f747f1c5aaa76 (diff)
downloadhercules-9f7a47eb136c45adab54fa56517e5352cd801091.tar.gz
hercules-9f7a47eb136c45adab54fa56517e5352cd801091.tar.bz2
hercules-9f7a47eb136c45adab54fa56517e5352cd801091.tar.xz
hercules-9f7a47eb136c45adab54fa56517e5352cd801091.zip
Change most field sizes from short to int in status_data struct.
-rw-r--r--src/map/status.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/map/status.h b/src/map/status.h
index 79aaca95f..aec451c72 100644
--- a/src/map/status.h
+++ b/src/map/status.h
@@ -2045,28 +2045,26 @@ enum e_status_calc_opt {
//Required because players have two of these, one in status_data
//and another for their left hand weapon.
typedef struct weapon_atk {
- unsigned short atk, atk2;
+ unsigned int atk, atk2;
unsigned short range;
unsigned char ele;
#ifdef RENEWAL
- unsigned short matk;
+ unsigned int matk;
unsigned char wlv;
#endif
} weapon_atk;
//For holding basic status (which can be modified by status changes)
struct status_data {
- unsigned int
+ uint32
hp, sp, // see status_cpy before adding members before hp and sp
- max_hp, max_sp;
- unsigned short
+ max_hp, max_sp,
str, agi, vit, int_, dex, luk,
batk,
matk_min, matk_max,
speed,
- amotion, adelay, dmotion;
- uint32 mode;
- short
+ amotion, adelay, dmotion,
+ mode,
hit, flee, cri, flee2,
def2, mdef2,
#ifdef RENEWAL_ASPD