// Function from file: holder.dm public bool process_activation(Obj_Item_Device_Assembly D = null, bool?normal = null, bool?special = null) { normal = normal ?? true; special = special ?? true; if (!(D != null)) { return(false); } if (normal == true && Lang13.Bool(this.a_right) && Lang13.Bool(this.a_left)) { if (this.a_right != D) { ((Obj_Item_Device_Assembly)this.a_right).pulsed(false); } if (this.a_left != D) { ((Obj_Item_Device_Assembly)this.a_left).pulsed(false); } } if (Lang13.Bool(this.master)) { this.master.receive_signal(); } return(true); }
// Function from file: holder.dm public void assemble(Obj_Item_Device_Assembly A = null, dynamic A2 = null, dynamic user = null) { this.attach(A, user); this.attach(A2, user); this.name = "" + A.name + "-" + A2.name + " assembly"; this.update_icon(); GlobalFuncs.feedback_add_details("assembly_made", "" + A.name + "-" + A2.name); return; }
// Function from file: wires.dm public int?pulse_assembly(Obj_Item_Device_Assembly S = null) { dynamic color = null; foreach (dynamic _a in Lang13.Enumerate(this.assemblies)) { color = _a; if (S == this.assemblies[color]) { this.pulse_color(color); return(GlobalVars.TRUE); } } return(null); }