Skip to content

Commit

Permalink
Tent Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostsheet committed Jul 20, 2023
1 parent 31b30e7 commit 5f27cd2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/modules/tents/blockers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
PF.flags_can_pass_behind = NONE

/obj/structure/blocker/tent/get_projectile_hit_boolean(obj/item/projectile/P)
..()
. = ..()
return FALSE // Always fly through the tent

//Blocks all direction, basically an invisible wall
Expand Down
20 changes: 12 additions & 8 deletions code/modules/tents/deployed_tents.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,22 @@

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

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]"))
playsound(src, 'sound/items/paper_ripped.ogg', 25, 1)
qdel(src)

/obj/structure/tent/get_projectile_hit_boolean(obj/item/projectile/P)
. = ..()
return FALSE // Always fly through the tent


/// Command tent, providing basics for field command: a phone, and an overwatch console
/obj/structure/tent/cmd
icon_state = "cmd_interior"
Expand Down

0 comments on commit 5f27cd2

Please sign in to comment.