Add rule Combat:LevelToStopDamageCaps

Setting this to 1 will effectively disable damage caps
Setting this to 20 will give similar results to old incorrect default rules
This commit is contained in:
Michael Cook (mackal) 2017-01-15 15:39:12 -05:00
parent 7e49a21b3b
commit c030e1ce8d
2 changed files with 4 additions and 0 deletions

View File

@ -492,6 +492,7 @@ RULE_INT(Combat, NPCAssistCap, 5) // Maxiumium number of NPCs that will assist a
RULE_INT(Combat, NPCAssistCapTimer, 6000) // Time in milliseconds a NPC will take to clear assist aggro cap space
RULE_BOOL(Combat, UseRevampHandToHand, false) // use h2h revamped dmg/delays I believe this was implemented during SoF
RULE_BOOL(Combat, ClassicMasterWu, false) // classic master wu uses a random special, modern doesn't
RULE_INT(Combat, LevelToStopDamageCaps, 0) // 1 will effectively disable them, 20 should give basically same results as old incorrect system
RULE_CATEGORY_END()
RULE_CATEGORY(NPC)

View File

@ -1107,6 +1107,9 @@ int Client::DoDamageCaps(int base_damage)
{
// this is based on a client function that caps melee base_damage
auto level = GetLevel();
auto stop_level = RuleI(Combat, LevelToStopDamageCaps);
if (stop_level && stop_level <= level)
return base_damage;
int cap = 0;
if (level >= 125) {
cap = 7 * level;