Example #1
0
        public override bool Run() // Run
        {
            try
            {
                if (Target.Service is GrimReaper)
                {
                    if (Simulator.CheckYieldingContext(false) && !NFinalizeDeath.CheckAccept("Warning: Add Active Family " + Target.Name + "?"))
                    {
                        return(false);
                    }
                    //{
                    //if (Target.SimDescription.Household != null)
                    //{
                    //    Target.SimDescription.Household.Remove(this.Target.SimDescription);
                    //}
                    //Household.ActiveHousehold.AddSim(this.Target);

                    //this.Target.RequestWalkStyle(Sim.WalkStyle.DeathWalk);
                    //GrimReaper.kDelayBeforeLeaving = uint.MaxValue;
                    //GrimReaper.kCheckTime = uint.MaxValue;
                    //return NFinalizeDeath.Household_Add(Household.ActiveHousehold, Target.SimDescription);
                    //}
                    return(NFinalizeDeath.Household_Add(Household.ActiveHousehold, Target.SimDescription, false));
                    //return false;
                }
                //if (Target.SimDescription.Household != null)
                //{
                //    Target.SimDescription.Household.Remove(this.Target.SimDescription);
                //}
                //Household.ActiveHousehold.AddSim(this.Target);
                return(NFinalizeDeath.Household_Add(Household.ActiveHousehold, Target.SimDescription, false));
            }
            catch (ResetException)
            { throw; }
            catch { return(false); }
        }