protected override bool CommonAllow(SimDescription sim)
        {
            if (!Friends.Allow(this, sim))
            {
                IncStat("User Denied");
                return(false);
            }

            return(base.CommonAllow(sim));
        }
Exemple #2
0
        protected override bool CommonAllow(SimDescription sim)
        {
            if (!Friends.Allow(this, sim, AllowActive ? Managers.Manager.AllowCheck.None : Managers.Manager.AllowCheck.Active))
            {
                IncStat("User Denied");
                return(false);
            }
            else if (SimTypes.IsDead(sim))
            {
                IncStat("Dead");
                return(false);
            }

            return(base.CommonAllow(sim));
        }
Exemple #3
0
        protected virtual bool IsValid(Career job, SimDescription sim, bool checkExisting)
        {
            if (sim == null)
            {
                IncStat("Valid:Null");
                return(false);
            }
            else if (job.OwnerDescription == sim)
            {
                IncStat("Valid:Me");
                return(false);
            }
            else if ((!SimTypes.IsSelectable(sim)) && (!Friends.Allow(this, job.OwnerDescription, Managers.Manager.AllowCheck.None)))
            {
                IncStat("Valid:Me User Denied");
                return(false);
            }
            else if (!sim.IsValidDescription)
            {
                IncStat("Valid:Invalid");
                return(false);
            }
            else if (SimTypes.IsDead(sim))
            {
                IncStat("Valid:Dead");
                return(false);
            }
            else if (sim.CareerManager == null)
            {
                IncStat("Valid:No Manager");
                return(false);
            }
            else if ((checkExisting) && (job.Coworkers != null) && (job.Coworkers.Contains(sim)))
            {
                IncStat("Valid:Already");
                return(false);
            }
            else if ((!SimTypes.IsSelectable(job.OwnerDescription)) && (!Friends.Allow(this, sim, Managers.Manager.AllowCheck.None)))
            {
                IncStat("Valid:Them User Denied");
                return(false);
            }

            return(true);
        }
        protected override bool CommonAllow(SimDescription sim)
        {
            if (!Friends.Allow(this, sim))
            {
                IncStat("User Denied");
                return(false);
            }
            else if (AddScoring("Popularity", sim) <= 0)
            {
                IncStat("Unpopular");
                return(false);
            }
            else if (AddScoring("Friendly", sim) <= 0)
            {
                IncStat("Score Fail");
                return(false);
            }

            return(base.CommonAllow(sim));
        }
Exemple #5
0
        protected override bool CommonAllow(SimDescription sim)
        {
            if (!Friends.Allow(this, sim))
            {
                IncStat("User Denied");
                return(false);
            }
            else if (sim.ToddlerOrBelow)
            {
                IncStat("Too Young");
                return(false);
            }
            else if (SimTypes.IsDead(sim))
            {
                IncStat("Dead");
                return(false);
            }

            return(base.CommonAllow(sim));
        }