Skip to content

Commit

Permalink
Tent Quickfix
Browse files Browse the repository at this point in the history
To prevent noise spam
  • Loading branch information
ghostsheet committed Aug 3, 2023
1 parent b054a79 commit cf5133f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/tents/deployed_tents.dm
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@

/obj/structure/tent/attackby(obj/item/item, mob/user)
var/obj/item/tool/shovel/shovel = item
if(!istype(shovel) || shovel.folded)
if(!istype(shovel) || shovel.folded || user.action_busy)
return
visible_message(SPAN_HIGHDANGER("[user] is trying to tear down the [src]"))
playsound(src, 'sound/items/paper_ripped.ogg', 25, 1)

if(user.action_busy || !do_after(user, 150, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_HOSTILE, src) || QDELETED(src))
if(!do_after(user, 150, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_HOSTILE, src) || QDELETED(src))
return

visible_message(SPAN_HIGHDANGER("[user] tears down the [src]"))
Expand Down

0 comments on commit cf5133f

Please sign in to comment.