Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion code/modules/mob/living/silicon/robot/robot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down