Adding a Item Shielding Cap Rule
This will add a rule to cap Item Shielding to the amount needed . I think live capped it at 30. This is the default value.
In ruletypes.h add the bold line to the Character category Code:
RULE_CATEGORY( Character ) In attack.cpp change the following line from the void Mob::MeleeMitigation function CHANGE Code:
totalMit += (defender->spellbonuses.MeleeMitigation + defender->itembonuses.MeleeMitigation); Code:
int itemMit = (RuleI(Character, ItemShieldingCap) < defender->itembonuses.MeleeMitigation) ? RuleI(Character, ItemShieldingCap) : defender->itembonuses.MeleeMitigation ; -- Pyronis / kahel Dev - Jest 3 Server |
Item Avoidance Cap
Here the code to add a cap to Item Avoidance bonus .
Add the blod line to ruletypes.h Code:
RULE_INT ( Character, ItemManaRegenCap, 15) Change Code:
bonus = defender->spellbonuses.AvoidMeleeChance + defender->itembonuses.AvoidMeleeChance; Code:
int itemAvoidance = (RuleI(Character,ItemAvoidanceCap) < defender->itembonuses.AvoidMeleeChance) ? RuleI(Character,ItemAvoidanceCap) : defender->itembonuses.AvoidMeleeChance; |
Nice work! I was hoping to see something like this soon. Hope it makes it into the next release :)
This and your lore aug fix would both be great things to see in a future update :D |
Awesome! I hope this goes in on the next patch as well. I have been looking for a way to cap my shielding and didn't really want to go through so many items to make sure players weren't mitigating too much damage. Awesome work!
|
We at Jest Server are trying to help out best we can.
We're also very lucky to have Pyronis on our development team. |
All times are GMT -4. The time now is 07:11 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.