summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-24 01:29:00 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-24 01:29:00 +0000
commitb1bd67d1bd69026eb3621135120fe898907368e4 (patch)
tree14b68ae94aa7cab2ce12a72e22a044b0b1aa1479 /src/map
parent994c3f6cf2e8a1a5b531340df3ab713cf176b854 (diff)
downloadhercules-b1bd67d1bd69026eb3621135120fe898907368e4.tar.gz
hercules-b1bd67d1bd69026eb3621135120fe898907368e4.tar.bz2
hercules-b1bd67d1bd69026eb3621135120fe898907368e4.tar.xz
hercules-b1bd67d1bd69026eb3621135120fe898907368e4.zip
Corrected change r10051 which prevented Ice Pick from working
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10063 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/map.h12
-rw-r--r--src/map/status.c5
2 files changed, 8 insertions, 9 deletions
diff --git a/src/map/map.h b/src/map/map.h
index 561f6a7ab..49e3b362d 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -441,15 +441,15 @@ struct weapon_data {
// in status_calc_pc as well! All the following are automatically zero'ed. [Skotlex]
int overrefine;
int star;
+ int ignore_def_ele;
+ int ignore_def_race;
+ int def_ratio_atk_ele;
+ int def_ratio_atk_race;
int addele[ELE_MAX];
int addrace[RC_MAX];
int addrace2[RC_MAX];
int addsize[3];
- unsigned char ignore_def_ele;
- unsigned char ignore_def_race;
- unsigned char def_ratio_atk_ele;
- unsigned char def_ratio_atk_race;
struct drain_data {
short rate;
short per;
@@ -723,6 +723,8 @@ struct map_session_data {
int critical_def,double_rate;
int long_attack_atk_rate; //Long range atk rate, not weapon based. [Skotlex]
int near_attack_def_rate,long_attack_def_rate,magic_def_rate,misc_def_rate;
+ int ignore_mdef_ele;
+ int ignore_mdef_race;
int perfect_hit;
int perfect_hit_add;
int get_zeny_rate;
@@ -754,8 +756,6 @@ struct map_session_data {
short add_def_count,add_mdef_count;
short add_dmg_count,add_mdmg_count;
- unsigned char ignore_mdef_ele;
- unsigned char ignore_mdef_race;
// zeroed vars end here.
int castrate,delayrate,hprate,sprate,dsprate;
diff --git a/src/map/status.c b/src/map/status.c
index 58e696f37..04cc07144 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1673,6 +1673,8 @@ int status_calc_pc(struct map_session_data* sd,int first)
+ sizeof(sd->long_attack_def_rate)
+ sizeof(sd->magic_def_rate)
+ sizeof(sd->misc_def_rate)
+ + sizeof(sd->ignore_mdef_ele)
+ + sizeof(sd->ignore_mdef_race)
+ sizeof(sd->perfect_hit)
+ sizeof(sd->perfect_hit_add)
+ sizeof(sd->get_zeny_rate)
@@ -1712,9 +1714,6 @@ int status_calc_pc(struct map_session_data* sd,int first)
+ sizeof(sd->add_mdef_count)
+ sizeof(sd->add_dmg_count)
+ sizeof(sd->add_mdmg_count)
- // chars
- + sizeof(sd->ignore_mdef_ele)
- + sizeof(sd->ignore_mdef_race)
);
// Parse equipment.