From 223f19cd98a1c32b1238f74aacc583039fc1f61b Mon Sep 17 00:00:00 2001 From: NovaZure Date: Fri, 25 Mar 2022 14:29:31 -0400 Subject: [PATCH] Fixes borg lamp replacement Replacing a borg's bulb actually makes its lamp functional --- code/modules/mob/living/silicon/robot/robot.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index 165f2beec1b7..2524eff70b87 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -594,13 +594,14 @@ return if(!opened) to_chat(user, span_warning("You need to open the panel to repair the headlamp!")) - else if(lamp_cooldown <= world.time) + else if(lamp_cooldown <= world.time && lamp_functional) to_chat(user, span_warning("The headlamp is already functional!")) else if(!user.temporarilyRemoveItemFromInventory(B)) to_chat(user, span_warning("[B] seems to be stuck to your hand. You'll have to find a different light.")) return lamp_cooldown = 0 + lamp_functional = TRUE qdel(B) to_chat(user, span_notice("You replace the headlamp bulb.")) //yogs end else