27 lines
486 B
C#
27 lines
486 B
C#
public class IsPlayerMale : TargetedCompareRequirementBase
|
|
{
|
|
|
|
public override bool IsValid(MinEventParams _params)
|
|
{
|
|
if (!base.IsValid(_params))
|
|
{
|
|
return false;
|
|
}
|
|
EntityAlive me = _params.Self;
|
|
|
|
bool flag = false;
|
|
|
|
if (me.EntityClass.entityClassName == "playerMale")
|
|
{
|
|
flag = true;
|
|
}
|
|
|
|
if (!this.invert)
|
|
{
|
|
return flag;
|
|
}
|
|
return !flag;
|
|
}
|
|
|
|
}
|