Skip to content

Commit

Permalink
Replace flamp IS_SCREWDRIVER with tool interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
out-of-phaze committed Sep 14, 2023
1 parent 3a4d725 commit affe672
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/modules/power/floorlamp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
user.drop_from_inventory(held_item, src)
update_icon(0)
return TRUE
else if(IS_SCREWDRIVER(held_item))
playsound(loc, 'sound/items/Screwdriver.ogg', 75, TRUE)
user.visible_message("<b>[user]</b> removes [src]'s lampshade.", \
SPAN_NOTICE("You remove [src]'s lampshade."), "You hear a noise.")
else if(held_item.do_tool_interaction(TOOL_SCREWDRIVER, user, src, 1 SECOND, "unscrewing", "unscrewing"))
lampshade.dropInto(loc)
lampshade = null
update_icon(0)
Expand Down

0 comments on commit affe672

Please sign in to comment.