From f04a318dfdfe638a415a3115a4aaa35b9f2362cd Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Mon, 24 Jul 2023 11:11:59 +0200 Subject: [PATCH] Floodlights can now only be turned on if they are anchored (#21680) * aight we ball * Sirryan review * Lewcc review --- code/game/machinery/floodlight.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/machinery/floodlight.dm b/code/game/machinery/floodlight.dm index 6bb1f59537b0..707ca5bde409 100644 --- a/code/game/machinery/floodlight.dm +++ b/code/game/machinery/floodlight.dm @@ -71,6 +71,9 @@ if(cell.charge <= 0) to_chat(user, "[src] hardly glows at all! Seems like the power cell is empty.") return + if(!anchored) + to_chat(user, "[src] must be anchored first!") + return on = TRUE to_chat(user, "You turn on the light.") set_light(brightness_on) @@ -140,6 +143,8 @@ . = TRUE if(!I.tool_use_check(user, 0)) return + if(anchored) + extinguish_light() default_unfasten_wrench(user, I) /obj/machinery/floodlight/extinguish_light(force = FALSE)