Issue Information
-
#004070
-
0 - None Assigned
-
Needs More Info
Issue Confirmations
-
Yes (1)No (0)
Originally posted by Inquisetor90
http://www.eathena.w...er&showbug=4070
This existed in the function
static struct Damage battle_calc_weapon_attack(struct block_list *src,struct block_list *target,int skill_num,int skill_lv,int wflag)
where skillratio was defined as 100 (or 100% atk) initially.
I didn't test in-game but I used this formula to calculate what would happen:
Without a bow RG_BACKSTAP does
Level 1 - 340%
Level 2 - 380%
Level 3 - 420%
Level 4 - 460%
Level 5 - 500%
Level 6 - 540%
Level 7 - 580%
Level 8 - 620%
Level 9 - 660%
Level 10 - 700%
With a bow RG_BACKSTAP currently does
Level 1 - 270%
Level 2 - 290%
Level 3 - 310%
Level 4 - 330%
Level 5 - 350%
Level 6 - 370%
Level 7 - 390%
Level 8 - 410%
Level 9 - 430%
Level 10 - 450%
With a bow RG_BACKSTAP is meant to deal half the damage i.e.
Level 1 - 170%
Level 2 - 190%
Level 3 - 210%
Level 4 - 230%
Level 5 - 250%
Level 6 - 270%
Level 7 - 290%
Level 8 - 310%
Level 9 - 330%
Level 10 - 350%
A remodified code could be
This post has been edited by Inquisetor90: Feb 24 2010, 11:25 PM
http://www.eathena.w...er&showbug=4070
CODE
case RG_BACKSTAP:
if(sd && sd->status.weapon == W_BOW && battle_config.backstab_bow_penalty)
skillratio += (200+40*skill_lv)/2;
else
skillratio += 200+40*skill_lv;
break;
if(sd && sd->status.weapon == W_BOW && battle_config.backstab_bow_penalty)
skillratio += (200+40*skill_lv)/2;
else
skillratio += 200+40*skill_lv;
break;
This existed in the function
static struct Damage battle_calc_weapon_attack(struct block_list *src,struct block_list *target,int skill_num,int skill_lv,int wflag)
where skillratio was defined as 100 (or 100% atk) initially.
I didn't test in-game but I used this formula to calculate what would happen:
Without a bow RG_BACKSTAP does
Level 1 - 340%
Level 2 - 380%
Level 3 - 420%
Level 4 - 460%
Level 5 - 500%
Level 6 - 540%
Level 7 - 580%
Level 8 - 620%
Level 9 - 660%
Level 10 - 700%
With a bow RG_BACKSTAP currently does
Level 1 - 270%
Level 2 - 290%
Level 3 - 310%
Level 4 - 330%
Level 5 - 350%
Level 6 - 370%
Level 7 - 390%
Level 8 - 410%
Level 9 - 430%
Level 10 - 450%
With a bow RG_BACKSTAP is meant to deal half the damage i.e.
Level 1 - 170%
Level 2 - 190%
Level 3 - 210%
Level 4 - 230%
Level 5 - 250%
Level 6 - 270%
Level 7 - 290%
Level 8 - 310%
Level 9 - 330%
Level 10 - 350%
A remodified code could be
CODE
case RG_BACKSTAP:
skillratio += 200+40*skill_lv;
if(sd && sd->status.weapon == W_BOW && battle_config.backstab_bow_penalty)
skillratio = skillratio/2;
break;
skillratio += 200+40*skill_lv;
if(sd && sd->status.weapon == W_BOW && battle_config.backstab_bow_penalty)
skillratio = skillratio/2;
break;
This post has been edited by Inquisetor90: Feb 24 2010, 11:25 PM