ACR_BuilderPlugin.CreatureHelper.GetIsUndead C# (CSharp) Méthode

GetIsUndead() public static méthode

public static GetIsUndead ( NWN2CreatureTemplate creature ) : bool
creature NWN2CreatureTemplate
Résultat bool
        public static bool GetIsUndead(NWN2CreatureTemplate creature)
        {
            if (creature.Variables.GetVariable("ACR_CRE_ISUNDEAD").ValueInt == 1) return true;
            if (creature.Variables.GetVariable("ACR_CRE_ISUNDEAD").ValueInt == 2) return false;
            if (creature.Race.Row == 24) return true;
            if (creature.GetStatsCore().GetHasClass(19) == 1) return true;
            return false;
        }
    }