コード例 #1
0
        protected bool TargetDead(SimDescription sim)
        {
            if (sim == null)
            {
                return(false);
            }

            if ((sim != mSuspendedSim) &&
                ((TargetObject == null) || ((TargetObject as Sim).SimDescription != sim)))
            {
                return(false);
            }

            mKilled = true;

            Assassination skill = Assassination.EnsureSkill(Actor);

            if (skill != null)
            {
                skill.AddActualKill(sim, skill.IsPotential(sim), false);
            }

            mbTargetDeleted = true;
            return(true);
        }