Added a rule to enable multiple procs from the same weapon's other slots if a proc is deemed to trigger, Defaults to true.

This commit is contained in:
SecretsOTheP
2014-04-05 17:18:19 -04:00
parent 628a5764cc
commit 35fad4d5a7
4 changed files with 12 additions and 1 deletions
+4
View File
@@ -4085,6 +4085,10 @@ void Mob::TryWeaponProc(const ItemInst *inst, const Item_Struct *weapon, Mob *on
}
}
}
//If OneProcPerWeapon is not enabled, we reset the try for that weapon regardless of if we procced or not.
//This is for some servers that may want to have as many procs triggering from weapons as possible in a single round.
if(!RuleB(Combat, OneProcPerWeapon))
proced = false;
if (!proced && inst) {
for (int r = 0; r < MAX_AUGMENT_SLOTS; r++) {