Skip to content

Commit

Permalink
Fixed Taekwon Ranker HP/SP bonus (fixes #982)
Browse files Browse the repository at this point in the history
* The HP/SP bonus will now be applied to the base HP/SP similar to the 25% HP/SP bonus for Trans classes
* HP/SP rate increase items it will now give the full HP/SP percent bonus rather than just a third
* Fixed HP/SP increase items will no longer give triple the amount they should
  • Loading branch information
Playtester committed Feb 24, 2016
1 parent 473e7f8 commit 7273b4d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/map/status.c
Expand Up @@ -2785,10 +2785,6 @@ static int status_get_hpbonus(struct block_list *bl, enum e_status_bonus type) {
struct map_session_data *sd = map_id2sd(bl->id);
bonus += sd->hprate;
bonus -= 100; //Default hprate is 100, so it should be add 0%

//+200% for top ranking Taekwons over level 90.
if (pc_is_taekwon_ranker(sd))
bonus += 200;
}

//Bonus by SC
Expand Down Expand Up @@ -2901,10 +2897,6 @@ static int status_get_spbonus(struct block_list *bl, enum e_status_bonus type) {
bonus += i;
if((i = pc_checkskill(sd,HW_SOULDRAIN)) > 0)
bonus += 2 * i;

//+200% for top ranking Taekwons over level 90.
if (pc_is_taekwon_ranker(sd))
bonus += 200;
}

//Bonus by SC
Expand Down Expand Up @@ -2950,12 +2942,12 @@ static unsigned int status_calc_maxhpsp_pc(struct map_session_data* sd, unsigned
level = umax(sd->status.base_level,1);

if (isHP) { //Calculates MaxHP
dmax = job_info[idx].base_hp[level-1] * (1 + (umax(stat,1) * 0.01)) * ((sd->class_&JOBL_UPPER)?1.25:1);
dmax = job_info[idx].base_hp[level-1] * (1 + (umax(stat,1) * 0.01)) * ((sd->class_&JOBL_UPPER)?1.25:(pc_is_taekwon_ranker(sd))?3:1);
dmax += status_get_hpbonus(&sd->bl,STATUS_BONUS_FIX);
dmax += (int64)(dmax * status_get_hpbonus(&sd->bl,STATUS_BONUS_RATE) / 100); //Aegis accuracy
}
else { //Calculates MaxSP
dmax = job_info[idx].base_sp[level-1] * (1 + (umax(stat,1) * 0.01)) * ((sd->class_&JOBL_UPPER)?1.25:1);
dmax = job_info[idx].base_sp[level-1] * (1 + (umax(stat,1) * 0.01)) * ((sd->class_&JOBL_UPPER)?1.25:(pc_is_taekwon_ranker(sd))?3:1);
dmax += status_get_spbonus(&sd->bl,STATUS_BONUS_FIX);
dmax += (int64)(dmax * status_get_spbonus(&sd->bl,STATUS_BONUS_RATE) / 100); //Aegis accuracy
}
Expand Down

0 comments on commit 7273b4d

Please sign in to comment.