summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-16 02:01:19 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-16 02:01:19 +0000
commit5c10ad80c373bef3cc2417742787e68b231ab5e9 (patch)
tree27cc898d9e20892b6901afb3743f3cba2736ace7 /src/map/status.c
parenteb8c83dd3d39ffeb3b7d8455d1f4c4c0b9f7a84c (diff)
downloadhercules-5c10ad80c373bef3cc2417742787e68b231ab5e9.tar.gz
hercules-5c10ad80c373bef3cc2417742787e68b231ab5e9.tar.bz2
hercules-5c10ad80c373bef3cc2417742787e68b231ab5e9.tar.xz
hercules-5c10ad80c373bef3cc2417742787e68b231ab5e9.zip
Follow-up to r14456. Default initialize atk_rate to 0 instead of 100 to match new effect of bonus bAtkRate.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14464 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 3b34d0e53..95d7f3796 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1721,13 +1721,13 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
sd->dsprate=100;
sd->hprecov_rate = 100;
sd->sprecov_rate = 100;
- sd->atk_rate = sd->matk_rate = 100;
+ sd->matk_rate = 100;
sd->critical_rate = sd->hit_rate = sd->flee_rate = sd->flee2_rate = 100;
sd->def_rate = sd->def2_rate = sd->mdef_rate = sd->mdef2_rate = 100;
sd->regen.state.block = 0;
- // zeroed arrays, order follows the order in map.h.
- // add new arrays to the end of zeroed area in map.h (see comments) and size here. [zzo]
+ // zeroed arrays, order follows the order in pc.h.
+ // add new arrays to the end of zeroed area in pc.h (see comments) and size here. [zzo]
memset (sd->param_bonus, 0, sizeof(sd->param_bonus)
+ sizeof(sd->param_equip)
+ sizeof(sd->subele)
@@ -1805,7 +1805,8 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
);
// vars zeroing. ints, shorts, chars. in that order.
- memset (&sd->arrow_atk, 0,sizeof(sd->arrow_atk)
+ memset (&sd->atk_rate, 0,sizeof(sd->atk_rate)
+ + sizeof(sd->arrow_atk)
+ sizeof(sd->arrow_ele)
+ sizeof(sd->arrow_cri)
+ sizeof(sd->arrow_hit)