Пример #1
0
        protected override bool Allow(Household house)
        {
            if (house.InWorld)
            {
                IncStat("Resident");
                return(false);
            }
            else if (HasActiveRelation(house))
            {
                IncStat("Relation Save");
                return(false);
            }
            else if (HouseholdsEx.IsActiveDaycare(house))
            {
                IncStat("Active Daycare");
                return(false);
            }
            else if (HouseholdsEx.IsPassport(house))
            {
                IncStat("Passport");
                return(false);
            }
            else if (HouseholdsEx.IsRole(house))
            {
                IncStat("Role House");
                return(false);
            }
            else if (HouseholdsEx.IsLunarCycleZombie(house))
            {
                IncStat("Zombie House");
                return(false);
            }
            else if (HouseholdsEx.IsActiveCoworker(house))
            {
                IncStat("Active Coworker");
                return(false);
            }
            else if (SimTypes.IsSpecial(house))
            {
                IncStat("Special");
                return(false);
            }

            return(base.Allow(house));
        }