How to cap Long Range Resist

wallaby

New member
Messages
78
Points
0
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.

 
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
Code:
damage -= damage * min(tsd->bonus.long_attack_def_rate,85) / 100;
85 = max value(cap rate)Change according to your needs

 
Last edited by a moderator:
Thank you Dastgir for taking the time to answer this. Really Appreciate it a lot
default_smile.png


 
Back
Top