Skip to content

Commit

Permalink
Remove lights from highsec doors (#873)
Browse files Browse the repository at this point in the history
## About The Pull Request
fix good
  • Loading branch information
larentoun authored Dec 15, 2024
1 parent 8d48296 commit 73048f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modular_bandastation/aesthetics/airlocks/code/airlock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
doorClose = 'modular_bandastation/aesthetics/airlocks/sound/close.ogg'
boltUp = 'modular_bandastation/aesthetics/airlocks/sound/bolts_up.ogg'
boltDown = 'modular_bandastation/aesthetics/airlocks/sound/bolts_down.ogg'

var/has_open_lights = TRUE

/obj/machinery/door/airlock/update_overlays()
. = ..()
if(!lights || !hasPower())
if(!has_open_lights || !lights || !hasPower())
return
var/light_state
switch(airlock_state)
Expand All @@ -28,3 +28,6 @@
if(!light_state)
return
. += get_airlock_overlay("lights_[light_state]", overlays_file, src, em_block = FALSE)

/obj/machinery/door/airlock/highsecurity
has_open_lights = FALSE

0 comments on commit 73048f9

Please sign in to comment.