29 lines
557 B
C#
29 lines
557 B
C#
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;
|
|
}
|
|
|
|
}
|