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:
Matt Atlas
2023-12-21 11:40:49 +00:00
committed by GitHub
co-authored by Matt Atlas
parent 8b48ee0be2
commit 23c0fd7b4f
64 changed files with 1839 additions and 1184 deletions
@@ -67,7 +67,7 @@
/mob/living/silicon/robot/handle_regular_status_updates()
if(camera && !scrambled_codes)
if(stat == DEAD || wires.IsIndexCut(BORG_WIRE_CAMERA))
if(stat == DEAD || wires.is_cut(WIRE_CAMERA))
camera.set_status(0)
else
camera.set_status(1)
@@ -169,7 +169,7 @@
camera.replace_networks(list(NETWORK_STATION, NETWORK_ROBOTS))
else
camera.replace_networks(list(NETWORK_MERCENARY))
if(wires.IsIndexCut(BORG_WIRE_CAMERA))
if(wires.is_cut(WIRE_CAMERA))
camera.status = FALSE
init()
@@ -659,7 +659,7 @@
to_chat(user, SPAN_NOTICE("You close \the [src]'s maintenance hatch."))
opened = FALSE
handle_panel_overlay()
else if(wires_exposed && wires.IsAllCut())
else if(wires_exposed && wires.is_all_cut())
//Cell is out, wires are exposed, remove MMI, produce damaged chassis, baleet original mob.
if(!mmi)
to_chat(user, SPAN_WARNING("\The [src] has no brain to remove.")) // me irl - geeves
@@ -742,7 +742,7 @@
handle_panel_overlay()
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."))
return