Jump to content
  • 0

how to add or have Race resistance capping?


Question

Posted

Hello everyone, I want to have a 90% race resistance capping.

ex.

Even if a player has over 100+% Demihuman Resistance because of cards,equips,etc. it will be capped to only 90%.

Is it possible to have this option available?

2 answers to this question

Recommended Posts

  • 0
Posted

Try use cap_value on item bonus or somewhere that calculate those bonuses.

---

Not sure this is correct way to fix but you can try

Go to \src\map\pc.cpp Line 3725

Add 

sd->subrace[type2]  = cap_value(sd->subrace[type2], 0, 90);

image.png.0e591834fdb4a579f2737a16e8c5fafd.png

  • Upvote 1
  • 0
Posted (edited)
10 hours ago, Start_ said:

Try use cap_value on item bonus or somewhere that calculate those bonuses.

---

Not sure this is correct way to fix but you can try

Go to \src\map\pc.cpp Line 3725

Add 


sd->subrace[type2]  = cap_value(sd->subrace[type2], 0, 90);

image.png.0e591834fdb4a579f2737a16e8c5fafd.png

well test this out, ill give feedback afterwards. thank you!

 

EDIT: Tested this out, its not working . I already recompiled after adding the script above to the line in pc.cpp ..people are still can reach upto 100+% resistance.

Edited by SevySevy

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...