diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-25 16:41:04 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-25 16:41:04 +0000 |
commit | 59b53e53d28961eb88e8f4c8e5764c3465f7ab64 (patch) | |
tree | 087ed8720b857f329197638cb34802723954037f /src/map/status.c | |
parent | 685eebb38664db365324b0ab8375b08df4e74c3c (diff) | |
download | hercules-59b53e53d28961eb88e8f4c8e5764c3465f7ab64.tar.gz hercules-59b53e53d28961eb88e8f4c8e5764c3465f7ab64.tar.bz2 hercules-59b53e53d28961eb88e8f4c8e5764c3465f7ab64.tar.xz hercules-59b53e53d28961eb88e8f4c8e5764c3465f7ab64.zip |
Follow up r15269, fixed a few typos and a test entry that wasn't meant to be submitted.
- Added new item bonus 'bonus bMatk,<value>';
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15270 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index 23ddf4826..54a971dff 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2164,6 +2164,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first) + sizeof(sd->sp_vanish_rate) + sizeof(sd->sp_vanish_per) + sizeof(sd->sp_weapon_matk) + + sizeof(sd->sp_base_matk) + sizeof(sd->unbreakable) + sizeof(sd->unbreakable_equip) + sizeof(sd->unstripable_equip) @@ -2529,6 +2530,13 @@ int status_calc_pc_(struct map_session_data* sd, bool first) //Equipment modifiers for misc settings if(sd->matk_rate < 0) sd->matk_rate = 0; +#if REMODE + /** + * in RE matk_min is used as character's base matk + * sp_base_matk is 'bonus bMatk,<boost>' + **/ + status->matk_min += sd->sp_base_matk; +#endif if(sd->matk_rate != 100){ status->matk_max = status->matk_max * sd->matk_rate/100; status->matk_min = status->matk_min * sd->matk_rate/100; |