Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 9719b2c

Browse files
oops
1 parent d04c9f6 commit 9719b2c

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

code/game/machinery/decontamination.dm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
max_integrity = 300
99
circuit = /obj/item/circuitboard/machine/decontamination_unit
1010
layer = OBJ_LAYER
11+
interaction_flags_machine = INTERACT_MACHINE_ALLOW_SILICON | INTERACT_MACHINE_OPEN | INTERACT_MACHINE_OFFLINE
1112
// if you add more storage slots, update cook() to clear their radiation too.
1213

1314
var/max_n_of_items = 53
@@ -390,6 +391,8 @@
390391
locked = !locked
391392
. = TRUE
392393
if("uv")
394+
if(!is_operational())
395+
return
393396
var/mob/living/mob_occupant = occupant
394397
if(!occupant && !contents.len)
395398
return
@@ -472,6 +475,9 @@
472475
if(panel_open)
473476
to_chat(user, span_warning("Close the panel first!"))
474477
return
478+
if(locked)
479+
to_chat(user, span_warning("It's locked!"))
480+
return
475481
if(uv)
476482
to_chat(user, span_warning("You cannot open the gate while the cycle is running!"))
477483
return

code/game/machinery/suit_storage_unit.dm

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
density = TRUE
88
max_integrity = 250
99
circuit = /obj/item/circuitboard/machine/suit_storage_unit
10+
interaction_flags_machine = INTERACT_MACHINE_ALLOW_SILICON | INTERACT_MACHINE_OPEN | INTERACT_MACHINE_OFFLINE
1011

1112
var/obj/item/clothing/suit/space/suit = null
1213
var/obj/item/clothing/head/helmet/space/helmet = null
@@ -137,13 +138,6 @@
137138
storage = new storage_type(src)
138139
update_appearance(UPDATE_ICON)
139140

140-
/obj/machinery/suit_storage_unit/Destroy()
141-
QDEL_NULL(suit)
142-
QDEL_NULL(helmet)
143-
QDEL_NULL(mask)
144-
QDEL_NULL(storage)
145-
return ..()
146-
147141
/obj/machinery/suit_storage_unit/update_overlays()
148142
. = ..()
149143

@@ -443,6 +437,8 @@
443437
locked = !locked
444438
. = TRUE
445439
if("uv")
440+
if(!is_operational())
441+
return
446442
var/mob/living/mob_occupant = occupant
447443
if(!helmet && !mask && !suit && !storage && !occupant)
448444
return
@@ -479,6 +475,9 @@
479475
if(panel_open)
480476
to_chat(user, span_warning("Close the panel first!"))
481477
return
478+
if(locked)
479+
to_chat(user, span_warning("It's locked!"))
480+
return
482481
if(uv)
483482
to_chat(user, span_warning("You cannot open the gate while the cycle is running!"))
484483
return

0 commit comments

Comments
 (0)