mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-27 18:41:59 +00:00
Crusher Fixes (#2205)
Fixes the icons of the neighbouring piston-bases not updating if a linked piston base is destroyed Fixed a few runtimes
This commit is contained in:
@@ -94,16 +94,19 @@
|
||||
|
||||
|
||||
/datum/nano_module/program/crushercontrol/proc/airlock_open()
|
||||
for(var/obj/machinery/door/airlock/arlk in airlocks)
|
||||
arlk.unlock()
|
||||
arlk.open()
|
||||
arlk.lock()
|
||||
for(var/thing in airlocks)
|
||||
var/obj/machinery/door/airlock/arlk = thing
|
||||
if (!arlk.cur_command)
|
||||
// Not using do_command so that the command queuer works.
|
||||
arlk.cur_command = "secure_open"
|
||||
arlk.execute_current_command()
|
||||
|
||||
/datum/nano_module/program/crushercontrol/proc/airlock_close()
|
||||
for(var/obj/machinery/door/airlock/arlk in airlocks)
|
||||
arlk.unlock()
|
||||
arlk.close()
|
||||
arlk.lock()
|
||||
for(var/thing in airlocks)
|
||||
var/obj/machinery/door/airlock/arlk = thing
|
||||
if (!arlk.cur_command)
|
||||
arlk.cur_command = "secure_close"
|
||||
arlk.execute_current_command()
|
||||
|
||||
/datum/nano_module/program/crushercontrol/proc/crush_start()
|
||||
for(var/obj/machinery/crusher_base/pstn in pistons)
|
||||
|
||||
Reference in New Issue
Block a user