Jump to content
  • 0
Sign in to follow this  
Begin

Hunter Sharpshooting

Question

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.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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

skillratio += 100 + 50 * skill_lv;
if( sd->sc.data[SC_SOULLINK] && sd->sc.data[SC_SOULLINK]->val2 == SL_HUNTER)
skillratio *= 1.15;

 

Edited by Winterfox

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.