diff options
author | Dastgir Pojee <dastgirp@gmail.com> | 2016-10-03 19:45:00 +0530 |
---|---|---|
committer | hemagx <ibrahem.h.basyone@gmail.com> | 2016-10-22 02:22:15 +0200 |
commit | 6b1fea716f09d316fe6d475114d4a08f8e112580 (patch) | |
tree | 18341aa7664247a4837ec881cba290153d49156e /src/map/status.c | |
parent | 7bc9190ea332ff88d7c6f4ef46c6a618d48c9cb8 (diff) | |
download | hercules-6b1fea716f09d316fe6d475114d4a08f8e112580.tar.gz hercules-6b1fea716f09d316fe6d475114d4a08f8e112580.tar.bz2 hercules-6b1fea716f09d316fe6d475114d4a08f8e112580.tar.xz hercules-6b1fea716f09d316fe6d475114d4a08f8e112580.zip |
Implemented SC_SHRIMP.
Increases BaseAtk and MAtk by 10%
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 d6aecdbd7..643401109 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4961,6 +4961,9 @@ unsigned short status_calc_batk(struct block_list *bl, struct status_change *sc, if (sc->data[SC_STEAMPACK]) batk += sc->data[SC_STEAMPACK]->val1; + if (sc->data[SC_SHRIMP]) + batk += batk * sc->data[SC_SHRIMP]->val2 / 100; + return (unsigned short)cap_value(batk,0,USHRT_MAX); } @@ -5080,6 +5083,8 @@ unsigned short status_calc_ematk(struct block_list *bl, struct status_change *sc matk += 40 + 30 * sc->data[SC_ODINS_POWER]->val1; //70 lvl1, 100lvl2 if(sc->data[SC_IZAYOI]) matk += 25 * sc->data[SC_IZAYOI]->val1; + if (sc->data[SC_SHRIMP]) + matk += matk * sc->data[SC_SHRIMP]->val2 / 100; return (unsigned short)cap_value(matk,0,USHRT_MAX); #else return 0; @@ -9828,6 +9833,9 @@ int status_change_start(struct block_list *src, struct block_list *bl, enum sc_t val4 = tick / 1000; tick_time = 1000; break; + case SC_SHRIMP: + val2 = 10; // BATK%, MATK% + break; default: if (calc_flag == SCB_NONE && status->dbs->SkillChangeTable[type] == 0 && status->dbs->IconChangeTable[type] == 0) { //Status change with no calc, no icon, and no skill associated...? |