Ejemplo n.º 1
0
            protected override bool Allow(SimDescription sim)
            {
                if (sim.CreatedSim == null)
                {
                    IncStat("Hibernating");
                    return(false);
                }
                else if (sim.CreatedSim.InteractionQueue == null)
                {
                    IncStat("No Queue");
                }
                else if (!Deaths.Allow(this, sim))
                {
                    IncStat("User Denied");
                    return(false);
                }
                else if (Sim.CreatedSim.LotCurrent.IsWorldLot)
                {
                    IncStat("In Transit");
                    return(false);
                }
                else if (sim.CreatedSim.InteractionQueue.HasInteractionOfType(Urnstone.KillSim.Singleton))
                {
                    IncStat("Dying");
                    return(false);
                }
                else if (!Deaths.IsDying(sim))
                {
                    IncStat("Saved");
                    return(false);
                }

                return(base.Allow(sim));
            }
Ejemplo n.º 2
0
        protected override bool Allow(SimDescription sim)
        {
            if (!Deaths.Allow(this, sim))
            {
                IncStat("User Denied");
                return(false);
            }

            return(base.Allow(sim));
        }
Ejemplo n.º 3
0
        protected override bool TargetAllow(SimDescription sim)
        {
            if (!Households.AllowGuardian(sim))
            {
                IncStat("Age Denied");
                return(false);
            }
            else if (!Deaths.Allow(this, sim))
            {
                IncStat("Deaths Denied");
                return(false);
            }
            else if (!Situations.Allow(this, sim))
            {
                IncStat("Situations Denied");
                return(false);
            }

            return(base.TargetAllow(sim));
        }