mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
[Rules] Add rule to configure max number of procs per round Combat:MaxProcs (#3640)
This commit is contained in:
+5
-1
@@ -288,8 +288,11 @@ Mob::Mob(
|
||||
|
||||
feigned = false;
|
||||
|
||||
int max_procs = MAX_PROCS;
|
||||
m_max_procs = std::min(RuleI(Combat, MaxProcs), max_procs);
|
||||
|
||||
// clear the proc arrays
|
||||
for (int j = 0; j < MAX_PROCS; j++) {
|
||||
for (int j = 0; j < m_max_procs; j++) {
|
||||
PermaProcs[j].spellID = SPELL_UNKNOWN;
|
||||
PermaProcs[j].chance = 0;
|
||||
PermaProcs[j].base_spellID = SPELL_UNKNOWN;
|
||||
@@ -511,6 +514,7 @@ Mob::Mob(
|
||||
SetCanOpenDoors(true);
|
||||
|
||||
is_boat = IsBoat();
|
||||
|
||||
}
|
||||
|
||||
Mob::~Mob()
|
||||
|
||||
Reference in New Issue
Block a user