Upload from upload_mods.ps1
This commit is contained in:
13
Scripts/Requirements/ZombieParticlesEnabled.cs
Normal file
13
Scripts/Requirements/ZombieParticlesEnabled.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
public class ZombieParticlesEnabled : RequirementBase
|
||||
{
|
||||
public override bool ParamsValid(MinEventParams _params)
|
||||
{
|
||||
string optionZombieParticles = RebirthVariables.customZombieParticles;
|
||||
bool isHordeNight = RebirthUtilities.IsHordeNight();
|
||||
|
||||
bool flag = optionZombieParticles == "on";
|
||||
bool flag2 = optionZombieParticles == "nohordenight" && !isHordeNight;
|
||||
|
||||
return flag || flag2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user