mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Autolathe and wires panel TGUI, autolathe queueing. (#17978)
* autolathe 1 * FUCK MY LIFE * more fixes * autolathe queueing * cl * garbage collection * wire fixes * some final tweaks * on second thought this might be annoying * fix that * whoopsies * that didn't work for shit --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -197,7 +197,7 @@ var/global/list/default_interrogation_channels = list(
|
||||
return 0
|
||||
|
||||
if(b_stat)
|
||||
wires.Interact(user)
|
||||
wires.interact(user)
|
||||
|
||||
return ui_interact(user)
|
||||
|
||||
@@ -210,8 +210,8 @@ var/global/list/default_interrogation_channels = list(
|
||||
data["default_freq"] = format_frequency(default_frequency)
|
||||
data["rawfreq"] = num2text(frequency)
|
||||
|
||||
data["mic_cut"] = (wires.IsIndexCut(WIRE_TRANSMIT) || wires.IsIndexCut(WIRE_SIGNAL))
|
||||
data["spk_cut"] = (wires.IsIndexCut(WIRE_RECEIVE) || wires.IsIndexCut(WIRE_SIGNAL))
|
||||
data["mic_cut"] = (wires.is_cut(WIRE_TRANSMIT) || wires.is_cut(WIRE_SIGNAL))
|
||||
data["spk_cut"] = (wires.is_cut(WIRE_RECEIVE) || wires.is_cut(WIRE_SIGNAL))
|
||||
|
||||
var/list/chanlist = list_channels(user)
|
||||
if(islist(chanlist) && chanlist.len)
|
||||
@@ -286,7 +286,7 @@ var/global/list/default_interrogation_channels = list(
|
||||
|
||||
/obj/item/device/radio/proc/text_wires()
|
||||
if (b_stat)
|
||||
return wires.GetInteractWindow()
|
||||
return wires.get_status()
|
||||
return
|
||||
|
||||
|
||||
@@ -413,7 +413,7 @@ var/global/list/default_interrogation_channels = list(
|
||||
return FALSE
|
||||
if(!M || !message)
|
||||
return FALSE
|
||||
if(wires.IsIndexCut(WIRE_TRANSMIT)) // The device has to have all its wires and shit intact
|
||||
if(wires.is_cut(WIRE_TRANSMIT)) // The device has to have all its wires and shit intact
|
||||
return FALSE
|
||||
|
||||
if (iscarbon(M))
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
to_chat(user, "<span class='notice'>You [open_panel ? "open" : "close"] the wire panel.</span>")
|
||||
return TRUE
|
||||
else if(I.iswirecutter() || I.ismultitool() || istype(I, /obj/item/device/assembly/signaler ))
|
||||
wires.Interact(user)
|
||||
wires.interact(user)
|
||||
return TRUE
|
||||
else
|
||||
return ..()
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
user.visible_message(SPAN_WARNING("\The [user] [wires_exposed ? "exposes the wiring" : "closes the panel"] on \the [src]."), SPAN_WARNING("You [wires_exposed ? "expose the wiring" : "close the panel"] on \the [src]."), 3)
|
||||
else if(W.iswirecutter() || W.ismultitool())
|
||||
if(wires_exposed)
|
||||
wires.Interact(user)
|
||||
wires.interact(user)
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("\The [src]'s wires aren't exposed."))
|
||||
else
|
||||
|
||||
@@ -376,7 +376,7 @@
|
||||
|
||||
user.drop_from_inventory(I, src)
|
||||
|
||||
trigger_wire.Attach("red", signaler)
|
||||
trigger_wire.attach_assembly(WIRE_EXPLODE, signaler)
|
||||
|
||||
else
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user