summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2015-12-23 14:10:12 +0800
committerJedzkie <jedzkie13@rocketmail.com>2015-12-23 14:10:12 +0800
commit5954bf53cac41cac2fd1eb3bb3d91783f0f9644e (patch)
tree6fb8a16fbdd603372cd8934ce80c2b9f7dfd5266 /src/map/status.c
parent23b06569296e0f0f791f110df9723f27c60e65a3 (diff)
downloadhercules-5954bf53cac41cac2fd1eb3bb3d91783f0f9644e.tar.gz
hercules-5954bf53cac41cac2fd1eb3bb3d91783f0f9644e.tar.bz2
hercules-5954bf53cac41cac2fd1eb3bb3d91783f0f9644e.tar.xz
hercules-5954bf53cac41cac2fd1eb3bb3d91783f0f9644e.zip
Item Update:
- Remove the hard coded entry of Monster Transform Scrolls - Change mob names into mob constants.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 039315659..9348307b3 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3074,7 +3074,7 @@ int status_calc_pc_(struct map_session_data* sd, enum e_status_calc_opt opt) {
sd->subele[ELE_FIRE] -= i;
}
if (sc->data[SC_MTF_MLEATKED])
- sd->subele[ELE_NEUTRAL] += 2;
+ sd->subele[ELE_NEUTRAL] += sc->data[SC_MTF_MLEATKED]->val1;
if (sc->data[SC_FIRE_INSIGNIA] && sc->data[SC_FIRE_INSIGNIA]->val1 == 3)
sd->magic_addele[ELE_FIRE] += 25;
if (sc->data[SC_WATER_INSIGNIA] && sc->data[SC_WATER_INSIGNIA]->val1 == 3)
@@ -4932,7 +4932,7 @@ unsigned short status_calc_matk(struct block_list *bl, struct status_change *sc,
if (sc->data[SC_MOONLIT_SERENADE])
matk += matk * sc->data[SC_MOONLIT_SERENADE]->val2/100;
if (sc->data[SC_MTF_MATK])
- matk += matk * 25 / 100;
+ matk += matk * sc->data[SC_MTF_MATK]->val1 / 100;
if (sc->data[SC_MYSTICSCROLL])
matk += matk * sc->data[SC_MYSTICSCROLL]->val1 / 100;
@@ -5008,7 +5008,7 @@ signed short status_calc_hit(struct block_list *bl, struct status_change *sc, in
if (!viewable) {
/* some statuses that are hidden in the status window */
if (sc->data[SC_MTF_ASPD])
- hit += 5;
+ hit += sc->data[SC_MTF_ASPD]->val2;
return (short)cap_value(hit, 1, SHRT_MAX);
}
@@ -5780,7 +5780,7 @@ short status_calc_fix_aspd(struct block_list *bl, struct status_change *sc, int
if (sc->data[SC_FIGHTINGSPIRIT] && sc->data[SC_FIGHTINGSPIRIT]->val2)
aspd -= (bl->type==BL_PC?pc->checkskill((TBL_PC *)bl, RK_RUNEMASTERY):10) / 10 * 40;
if (sc->data[SC_MTF_ASPD])
- aspd -= 10;
+ aspd -= sc->data[SC_MTF_ASPD]->val1;
if (sc->data[SC_OVERED_BOOST]) // should be final and unmodifiable by any means
aspd = (200 - sc->data[SC_OVERED_BOOST]->val3) * 10;