示例#1
0
        protected override bool TargetAllow(SimDescription sim)
        {
            SimPersonality clan = Manager as SimPersonality;

            if (sim.ToddlerOrBelow)
            {
                IncStat("Too Young");
                return(false);
            }
            else if (GetData(sim).IsClan(clan))
            {
                IncStat("Already Clan");
                return(false);
            }
            else if (!clan.CanAdd(this, sim, mAllowSteal))
            {
                IncStat("Opposing");
                return(false);
            }
            else if (!clan.TestMemberRetention(sim))
            {
                IncStat("Retention Fail");
                return(false);
            }

            return(base.TargetAllow(sim));
        }