Hunter Sharpshooting

Begin

New member
Messages
85
Points
0
Hi All,

I am having a difficulty on applying +15% damage when soul linked a Sniper.

Can you help me resolve this?

case MA_SHARPSHOOTING:
skillratio += 100 + 50 * skill_lv;
if( sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->val2 == SL_HUNTER)
skillratio += 15;
break;


When I add skillratio += 15; there is no changes. I compiled it before testing.

I am currently fixing it but if you know the answer, can you help me as I don't know how to do it correctly.

Thank you.

 
Hello @Myriad,

Here is the whole code for sharpshooting:

                case SN_SHARPSHOOTING:
                case MA_SHARPSHOOTING:
                    skillratio += 100 + 50 * skill_lv;
                if (sc && sc->data[SC_SOULLINK] && sc->data[SC_SOULLINK]->val2 == SL_HUNTER)    
                    skillratio += 10 + 10 * skill_lv;    

                    break;

the bold one is my edited line. Am I correct on the formula?

 
If you want to increase the skillratio on a linked char by 15% shouldnt it look more like this?

Code:
skillratio += 100 + 50 * skill_lv;
if( sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->val2 == SL_HUNTER)
skillratio *= 1.15;
 
Last edited by a moderator:
lol

skillratio += 15 would just add 15% to the total ratio, so if a skill had a total ratio of 300 you would only be adding 5% more damage

it would have been skillratio += skillratio * 15/100

 
Back
Top