Jump to content
  • 0
wallaby

How to cap Long Range Resist

Question

Hi, I've tried searching on the forums for this but I cannot seem to find the right lead to what I have in mind.

 

There's always this concern on SHR servers - long range resists reaching 100%, thus making certain classes rendered useless like magic based chars and archers, what not.

 

Is it possible to change the source so that I can cap long range resist to 85% (for example), no matter what they use it'll not go more than 85%. Where do I change this?

 

Thanks a lot for your time.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

battle.c

Find all lines containing

*something here*long_attack_def_rate

Replace with

min(*something here*long_attack_def_rate, 85);

 

e.g:

damage -= damage * tsd->bonus.long_attack_def_rate / 100;
To
damage -= damage * min(tsd->bonus.long_attack_def_rate,85) / 100;
85 = max value(cap rate)

Change according to your needs

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...

×
×
  • Create New...

Important Information

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