SevySevy Posted July 21, 2020 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 03/30/20 Last Seen: October 17, 2022 Share Posted July 21, 2020 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? Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted July 21, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 21 hours ago Share Posted July 21, 2020 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); 1 Quote Link to comment Share on other sites More sharing options...
0 SevySevy Posted July 21, 2020 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 03/30/20 Last Seen: October 17, 2022 Author Share Posted July 21, 2020 (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); 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 July 21, 2020 by SevySevy Quote Link to comment Share on other sites More sharing options...
Question
SevySevy
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.