diff options
author | KeiKun <the.keikun@gmail.com> | 2020-07-21 13:10:42 +0800 |
---|---|---|
committer | KeiKun <the.keikun@gmail.com> | 2020-07-22 02:26:42 +0800 |
commit | a3d01fb73ed82710fa72f76c8c898300f1eb7c39 (patch) | |
tree | 469c66ed480d07080e233894888191b9332cc092 | |
parent | 1dfebbd4966310387357cbddae600418a56df658 (diff) | |
download | hercules-a3d01fb73ed82710fa72f76c8c898300f1eb7c39.tar.gz hercules-a3d01fb73ed82710fa72f76c8c898300f1eb7c39.tar.bz2 hercules-a3d01fb73ed82710fa72f76c8c898300f1eb7c39.tar.xz hercules-a3d01fb73ed82710fa72f76c8c898300f1eb7c39.zip |
Added Renewal formula which forces RG_SNATCHER to have a max of 20% when all both TF_STEAL and RG_SNATCHER itself are on max level.
-rw-r--r-- | src/map/skill.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 17721caff..c2a336d7e 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1649,11 +1649,15 @@ static int skill_additional_effect(struct block_list *src, struct block_list *bl if( pc_iswug(sd) && (temp=pc->checkskill(sd,RA_WUGSTRIKE)) > 0 && rnd()%1000 <= sstatus->luk*3 ) skill->castend_damage_id(src,bl,RA_WUGSTRIKE,temp,tick,0); // Gank - if(dstmd && sd->weapontype != W_BOW && - (temp=pc->checkskill(sd,RG_SNATCHER)) > 0 && - (temp*15 + 55) + pc->checkskill(sd,TF_STEAL)*10 > rnd()%1000) { - if(pc->steal_item(sd,bl,pc->checkskill(sd,TF_STEAL))) - clif->skill_nodamage(src,bl,TF_STEAL,temp,1); + if (dstmd && sd->weapontype != W_BOW && + (temp = pc->checkskill(sd, RG_SNATCHER)) > 0 && +#ifdef RENEWAL + (temp * 10) + pc->checkskill(sd, TF_STEAL) * 10 > rnd() % 1000) { +#else + (temp * 15 + 55) + pc->checkskill(sd, TF_STEAL) * 10 > rnd() % 1000) { +#endif + if (pc->steal_item(sd, bl, pc->checkskill(sd, TF_STEAL))) + clif->skill_nodamage(src, bl, TF_STEAL, temp, 1); else clif->skill_fail(sd, RG_SNATCHER, USESKILL_FAIL_LEVEL, 0, 0); } |