summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-04 16:38:36 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-04 16:38:36 +0000
commitc3c4b55d56bc72a77df54990832029a3280a72d2 (patch)
treed14d4bb48a5ea0b6957838017d878e6da1e23e79 /src/map/status.c
parent869b3c9303a403b8c50f68202c61a96c6d9b9332 (diff)
downloadhercules-c3c4b55d56bc72a77df54990832029a3280a72d2.tar.gz
hercules-c3c4b55d56bc72a77df54990832029a3280a72d2.tar.bz2
hercules-c3c4b55d56bc72a77df54990832029a3280a72d2.tar.xz
hercules-c3c4b55d56bc72a77df54990832029a3280a72d2.zip
- Added structure s_addeffect to handle status change additions. Cleaned up relevant code. It is now possible to specify ANY status change, not just the basic ones.
- Added support for bonus3 bAddEff/bAddEffWhenHit as follows: bonus3 bAddEff/bAddEffWhenHit, <SC value>, <rate>, <target flag>. Target flag is 0: Self. 1: Enemy. 2: Both. - Added these descriptions to doc/item_bonus.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7514 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 07e12d548..8d7acaf93 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1504,8 +1504,6 @@ int status_calc_pc(struct map_session_data* sd,int first)
+ sizeof(sd->subrace)
+ sizeof(sd->subrace2)
+ sizeof(sd->subsize)
- + sizeof(sd->addeff)
- + sizeof(sd->addeff2)
+ sizeof(sd->reseff)
+ sizeof(sd->weapon_coma_ele)
+ sizeof(sd->weapon_coma_race)
@@ -1514,16 +1512,12 @@ int status_calc_pc(struct map_session_data* sd,int first)
+ sizeof(sd->arrow_addele)
+ sizeof(sd->arrow_addrace)
+ sizeof(sd->arrow_addsize)
- + sizeof(sd->arrow_addeff)
- + sizeof(sd->arrow_addeff2)
+ sizeof(sd->magic_addele)
+ sizeof(sd->magic_addrace)
+ sizeof(sd->magic_addsize)
+ sizeof(sd->critaddrace)
+ sizeof(sd->expaddrace)
+ sizeof(sd->itemhealrate)
- + sizeof(sd->addeff3)
- + sizeof(sd->addeff3_type)
+ sizeof(sd->sp_gain_race)
);
@@ -1552,6 +1546,8 @@ int status_calc_pc(struct map_session_data* sd,int first)
//zero up structures...
memset(&sd->autospell,0,sizeof(sd->autospell)
+ sizeof(sd->autospell2)
+ + sizeof(sd->addeff)
+ + sizeof(sd->addeff2)
+ sizeof(sd->skillatk)
+ sizeof(sd->skillblown)
+ sizeof(sd->add_def)