Ejemplo n.º 1
0
        // Function from file: xenobio_camera.dm
        public override void Activate(int?forced_state = null)
        {
            dynamic C                  = null;
            Obj     remote_eye         = null;
            dynamic X                  = null;
            Mob_Living_Carbon_Monkey M = null;


            if (!Lang13.Bool(this.target) || !(this.owner is Mob_Living_Carbon_Human))
            {
                return;
            }
            C          = this.owner;
            remote_eye = C.remote_control;
            X          = this.target;

            if (GlobalVars.cameranet.checkTurfVis(remote_eye.loc))
            {
                foreach (dynamic _a in Lang13.Enumerate(remote_eye.loc, typeof(Mob_Living_Carbon_Monkey)))
                {
                    M = _a;


                    if (M.stat != 0)
                    {
                        M.visible_message("" + M + " vanishes as they are reclaimed for recycling!");
                        X.monkeys += 0.2;
                        GlobalFuncs.qdel(M);
                    }
                }
            }
            return;
        }