Exemplo n.º 1
0
        // Function from file: air.dm
        public void process_hotspots(  )
        {
            Obj_Effect_Hotspot H = null;


            foreach (dynamic _a in Lang13.Enumerate(this.hotspots, typeof(Obj_Effect_Hotspot)))
            {
                H = _a;

                H.process();
            }
            return;
        }
Exemplo n.º 2
0
        // Function from file: effects_smoke.dm
        public void Chilled(dynamic A = null)
        {
            dynamic            T       = null;
            GasMixture         G       = null;
            Obj_Effect_Hotspot H       = null;
            ByTable            G_gases = null;
            Obj_Machinery_Atmospherics_Components_Unary U = null;
            Mob_Living L    = null;
            Obj_Item   Item = null;


            if (A is Tile_Simulated)
            {
                T = A;

                if (Lang13.Bool(T.air))
                {
                    G = T.air;

                    if (Map13.GetDistance(T, this.location) < 2)
                    {
                        G.temperature = 2;
                    }
                    ((Tile)T).air_update_turf();

                    foreach (dynamic _a in Lang13.Enumerate(T, typeof(Obj_Effect_Hotspot)))
                    {
                        H = _a;

                        GlobalFuncs.qdel(H);
                        G_gases = G.gases;

                        if (Lang13.Bool(G_gases["plasma"]))
                        {
                            G.assert_gas("n2");
                            G_gases["n2"][1]    += G_gases["plasma"][1];
                            G_gases["plasma"][1] = 0;
                            G.garbage_collect();
                        }
                    }
                }

                foreach (dynamic _b in Lang13.Enumerate(T, typeof(Obj_Machinery_Atmospherics_Components_Unary)))
                {
                    U = _b;


                    if (!(U.welded == null) && !(U.welded == true))
                    {
                        U.welded = true;
                        U.update_icon();
                        U.visible_message("<span class='danger'>" + U + " was frozen shut!</span>");
                    }
                }

                foreach (dynamic _c in Lang13.Enumerate(T, typeof(Mob_Living)))
                {
                    L = _c;

                    L.ExtinguishMob();
                }

                foreach (dynamic _d in Lang13.Enumerate(T, typeof(Obj_Item)))
                {
                    Item = _d;

                    Item.extinguish();
                }
            }
            return;
        }