Upload from upload_mods.ps1
This commit is contained in:
28
Scripts/Requirements/HNPTurboOn.cs
Normal file
28
Scripts/Requirements/HNPTurboOn.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
public class HNPTurboOn : TargetedCompareRequirementBase
|
||||
{
|
||||
|
||||
public override bool IsValid(MinEventParams _params)
|
||||
{
|
||||
if (!base.IsValid(_params))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool flag = false;
|
||||
|
||||
bool optionHNP = RebirthVariables.customHordeNight;
|
||||
bool optionHNPTurbo = RebirthVariables.customHordeNightTurbo;
|
||||
|
||||
if (optionHNP && optionHNPTurbo)
|
||||
{
|
||||
flag = true;
|
||||
}
|
||||
|
||||
if (!this.invert)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
return !flag;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user