mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 04:11:30 +00:00
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:
parent
7e49a21b3b
commit
c030e1ce8d
@ -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)
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user