Skip to content

Commit

Permalink
Add rule Combat:LevelToStopDamageCaps
Browse files Browse the repository at this point in the history
Setting this to 1 will effectively disable damage caps
Setting this to 20 will give similar results to old incorrect default rules
  • Loading branch information
mackal committed Jan 15, 2017
1 parent 7e49a21 commit c030e1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/ruletypes.h
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions zone/attack.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit c030e1c

Please sign in to comment.