Jump to content
  • 0

how to add or have Race resistance capping?


SevySevy

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  03/30/20
  • Last Seen:  

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?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   166
  • Joined:  04/05/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  03/30/20
  • Last Seen:  

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
Link to comment
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.   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.

×
×
  • Create New...