Add forced blood replacement option.

This commit is contained in:
Mari the Deer 2023-01-26 19:49:41 +01:00
commit 21662d7bee
6 changed files with 8 additions and 8 deletions

View file

@ -676,8 +676,8 @@ extend Class SWWMHandler
return;
}
}
// only replace vanilla blood if no other gore mod is doing it
if ( (((e.Replacee == "Blood") && (!e.Replacement || e.Replacement == "Blood")) || (bludtypes.Find(e.Replacee.GetClassName()) < bludtypes.Size())) && swwm_blood ) e.Replacement = "mkBlood";
// only replace vanilla blood if no other gore mod is doing it (unless swwm_blood is set to 2)
if ( (((e.Replacee == "Blood") && (!e.Replacement || (e.Replacement == "Blood") || (swwm_blood >= 2))) || (bludtypes.Find(e.Replacee.GetClassName()) < bludtypes.Size())) && swwm_blood ) e.Replacement = "mkBlood";
else if ( e.Replacee is 'ItemFog' ) e.Replacement = 'SWWMItemFog';
else if ( e.Replacee is 'TeleportFog' ) e.Replacement = 'SWWMTeleportFog';
else if ( (e.Replacee is 'CommanderKeen') && (!e.Replacement || (e.Replacement == 'CommanderKeen')) )