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 )
RULE_INT ( Character, MaxLevel, 65 )
RULE_INT ( Character, DeathExpLossLevel, 10 )
RULE_INT ( Character, DeathItemLossLevel, 10 )
RULE_INT ( Character, CorpseDecayTimeMS, 10800000 )
RULE_BOOL( Character, LeaveCorpses, false )
RULE_BOOL( Character, LeaveNakedCorpses, false )
RULE_REAL( Character, ExpMultiplier, 1.0 )
RULE_INT ( Character, AutosaveIntervalS, 300 )	//0=disabled
RULE_INT ( Character, HPRegenMultiplier, 100)
RULE_INT ( Character, ManaRegenMultiplier, 100)
RULE_INT ( Character, EnduranceRegenMultiplier, 100)
RULE_INT ( Character, ConsumptionMultiplier, 100) //item's hunger restored = this value * item's food level, 100 = normal, 50 = people eat 2x as fast, 200 = people eat 2x as slow
RULE_BOOL( Character, HealOnLevel, false)
RULE_BOOL( Character, FeignKillsPet, false)
RULE_INT ( Character, ItemManaRegenCap, 15)
RULE_INT ( Character, ItemHealthRegenCap, 35)
RULE_INT ( Character, ItemShieldingCap, 30)
RULE_CATEGORY_END()
 
In attack.cpp  change the following line from the void Mob::MeleeMitigation function
CHANGE 
	Code:
	totalMit += (defender->spellbonuses.MeleeMitigation + defender->itembonuses.MeleeMitigation);
 TO 
	Code:
		int itemMit = (RuleI(Character, ItemShieldingCap) < defender->itembonuses.MeleeMitigation) ? RuleI(Character, ItemShieldingCap) : defender->itembonuses.MeleeMitigation ;	
	totalMit += (defender->spellbonuses.MeleeMitigation + itemMit);
 This will prevent players from getting a shielding too high and reduce nearly all damage.   It can now be capped like on live.
--
Pyronis / kahel
Dev - Jest 3 Server