Exemplo n.º 1
0
        protected bool HouseholdHasAgelessBaby(Household house)
        {
            if (house == null)
            {
                return(false);
            }

            foreach (SimDescription sim in HouseholdsEx.All(house))
            {
                if ((sim.ToddlerOrBelow) && (!Sims.AllowAging(this, sim)))
                {
                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 2
0
        protected override void PrivatePerform(SimDescription sim, SimData data, ScenarioFrame frame)
        {
            if (SimTypes.InServicePool(sim, ServiceType.GrimReaper))
            {
                IncStat("Service");
                return;
            }
            else if ((sim.IsDeer) || (sim.IsRaccoon))
            {
                IncStat("Deer or Raccoon");
                return;
            }

            bool bAging = Sims.AllowAging(this, sim);

            if ((!bAging) && (sim.AgingEnabled != bAging))
            {
                AgingManager.Singleton.CancelAgingAlarmsForSim(sim.AgingState);
            }

            sim.AgingEnabled = bAging;
        }