예제 #1
0
        protected override bool Allow(SimDescription sim)
        {
            if (sim.Household != null)
            {
                IncStat("Immigrant");
                return(false);
            }

            Household house = GetData <StoredNetWorthSimData>(sim).Household;

            if ((house != null) && (house.IsSpecialHousehold))
            {
                IncStat("Service");
                return(false);
            }
            else if (Deaths.WasCleansed(sim))
            {
                IncStat("Cleansed");
                return(false);
            }

            return(base.Allow(sim));
        }