// Function from file: vent_clog.dm public override void setup(int?loop = null) { Obj_Machinery_Atmospherics_Components_Unary_VentScrubber temp_vent = null; Pipeline temp_vent_parent = null; this.endWhen = Rand13.Int(25, 100); foreach (dynamic _a in Lang13.Enumerate(GlobalVars.machines, typeof(Obj_Machinery_Atmospherics_Components_Unary_VentScrubber))) { temp_vent = _a; if (temp_vent.loc.z == 1 && !(temp_vent.welded == true)) { temp_vent_parent = temp_vent.parents[1]; if (temp_vent_parent.other_atmosmch.len > 20) { this.vents.Add(temp_vent); } } } if (!(this.vents.len != 0)) { this.kill(); return; } return; }
// Function from file: blueprints.dm public void set_area_machinery_title(Ent_Static A = null, string title = null, string oldtitle = null) { dynamic RA = null; Obj_Machinery_Airalarm M = null; Obj_Machinery_Power_Apc M2 = null; Obj_Machinery_Atmospherics_Components_Unary_VentScrubber M3 = null; Obj_Machinery_Atmospherics_Components_Unary_VentPump M4 = null; Obj_Machinery_Door M5 = null; if (!Lang13.Bool(oldtitle)) { return; } foreach (dynamic _f in Lang13.Enumerate(((dynamic)A).related)) { RA = _f; foreach (dynamic _a in Lang13.Enumerate(RA, typeof(Obj_Machinery_Airalarm))) { M = _a; M.name = GlobalFuncs.replacetext(M.name, oldtitle, title); } foreach (dynamic _b in Lang13.Enumerate(RA, typeof(Obj_Machinery_Power_Apc))) { M2 = _b; M2.name = GlobalFuncs.replacetext(M2.name, oldtitle, title); } foreach (dynamic _c in Lang13.Enumerate(RA, typeof(Obj_Machinery_Atmospherics_Components_Unary_VentScrubber))) { M3 = _c; M3.name = GlobalFuncs.replacetext(M3.name, oldtitle, title); } foreach (dynamic _d in Lang13.Enumerate(RA, typeof(Obj_Machinery_Atmospherics_Components_Unary_VentPump))) { M4 = _d; M4.name = GlobalFuncs.replacetext(M4.name, oldtitle, title); } foreach (dynamic _e in Lang13.Enumerate(RA, typeof(Obj_Machinery_Door))) { M5 = _e; M5.name = GlobalFuncs.replacetext(M5.name, oldtitle, title); } } return; }