// Function from file: brain.dm
 public override dynamic Destroy(  )
 {
     if (Lang13.Bool(this.key))
     {
         if (this.stat != 2)
         {
             this.death(true);
         }
         this.ghostize();
     }
     this.container = null;
     return(base.Destroy());
 }
        // Function from file: say.dm
        public override int radio(dynamic message = null, string message_mode = null, ByTable spans = null)
        {
            Obj_Item_Device_Mmi R = null;


            if (Lang13.Bool(message_mode) && this.container is Obj_Item_Device_Mmi)
            {
                R = this.container;

                if (R.radio != null)
                {
                    R.radio.talk_into(this, message, null, spans);
                    return(3);
                }
            }
            return(0);
        }
        // Function from file: death.dm
        public override bool death(bool?gibbed = null, bool?toast = null)
        {
            Obj_Item_Device_Mmi mmi = null;


            if (this.stat == 2)
            {
                return(false);
            }
            this.stat = 2;

            if (!(gibbed == true) && this.container != null)
            {
                mmi = this.container;
                mmi.visible_message("<span class='warning'>" + this + "'s MMI flatlines!</span>", "<span class='italics'>You hear something flatline.</span>");
                mmi.update_icon();
            }
            return(base.death(gibbed, toast));
        }
Beispiel #4
0
        // Function from file: corpse.dm
        public override void createCorpse(bool death = false, string ckey = null)
        {
            dynamic A = null;
            AiLaws_Default_Asimov L = null;
            Obj_Item_Device_Mmi   B = null;
            Mob_Living_Silicon_Ai M = null;

            A = Lang13.FindIn(typeof(Mob_Living_Silicon_Ai), this.loc);

            if (Lang13.Bool(A))
            {
                return;
            }
            L            = new AiLaws_Default_Asimov();
            B            = new Obj_Item_Device_Mmi();
            M            = new Mob_Living_Silicon_Ai(this.loc, L, B, true);
            M.name       = this.name;
            M.real_name  = this.name;
            M.aiPDA.toff = true;
            M.death();
            GlobalFuncs.qdel(this);
            return;
        }