[Rules] Add rule to configure max number of procs per round Combat:MaxProcs (#3640)

This commit is contained in:
Chris Miles
2023-10-20 13:57:50 -05:00
committed by GitHub
parent 605480f1c4
commit adc64005f1
5 changed files with 24 additions and 16 deletions
+5 -1
View File
@@ -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()