diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-25 16:24:25 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-25 16:24:25 +0000 |
commit | 685eebb38664db365324b0ab8375b08df4e74c3c (patch) | |
tree | b6a1c57def55f7bcb1cdfc5ef80be460df1e3a18 /src/map/status.c | |
parent | 3b580431e8bd0adec1c8fa87abbc2e3c75f3faca (diff) | |
download | hercules-685eebb38664db365324b0ab8375b08df4e74c3c.tar.gz hercules-685eebb38664db365324b0ab8375b08df4e74c3c.tar.bz2 hercules-685eebb38664db365324b0ab8375b08df4e74c3c.tar.xz hercules-685eebb38664db365324b0ab8375b08df4e74c3c.zip |
Added new bonus for RE cards 'bonus bWeaponMatk,<value>;'
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15269 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 7662d2770..23ddf4826 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2163,6 +2163,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first) + sizeof(sd->magic_sp_gain_value) + sizeof(sd->sp_vanish_rate) + sizeof(sd->sp_vanish_per) + + sizeof(sd->sp_weapon_matk) + sizeof(sd->unbreakable) + sizeof(sd->unbreakable_equip) + sizeof(sd->unstripable_equip) @@ -2279,6 +2280,14 @@ int status_calc_pc_(struct map_session_data* sd, bool first) memset(sd->param_bonus, 0, sizeof(sd->param_bonus)); status->def += (refinedef+50)/100; + + #if REMODE + /** + * in RE matk_max is used as the weapon's matk. + * sp_weapon_matk is 'bonus bWeaponMatk,<boost>' + **/ + status->matk_max += sd->sp_weapon_matk; + #endif //Parse Cards for(i=0;i<EQI_MAX-1;i++) { |