Пример #1
0
        // Function from file: gravitygenerator.dm
        public override void set_fix(  )
        {
            Obj_Machinery_GravityGenerator M = null;

            base.set_fix();

            foreach (dynamic _a in Lang13.Enumerate(this.parts, typeof(Obj_Machinery_GravityGenerator)))
            {
                M = _a;


                if ((M.stat & 1) != 0)
                {
                    M.set_fix();
                }
            }
            this.broken_state = 0;
            this.update_icon();
            this.set_power();
            return;
        }
Пример #2
0
        // Function from file: gravitygenerator.dm
        public override void set_broken(  )
        {
            Obj_Machinery_GravityGenerator M = null;

            base.set_broken();

            foreach (dynamic _a in Lang13.Enumerate(this.parts, typeof(Obj_Machinery_GravityGenerator)))
            {
                M = _a;


                if (!((M.stat & 1) != 0))
                {
                    M.set_broken();
                }
            }
            this.middle.overlays.Cut();
            this.charge_count = 0;
            this.breaker      = false;
            this.set_power();
            this.set_state(false);
            this.investigate_log("has broken down.", "gravity");
            return;
        }