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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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