Skip to content

Commit

Permalink
Makes wooden fences need a crowbar to deconstruct (#2906)
Browse files Browse the repository at this point in the history
* Makes wooden fences need a crowbar to deconstruct

* Update fencing.dm

Co-authored-by: Bloop <[email protected]>
Co-authored-by: Iajret <[email protected]>
  • Loading branch information
3 people authored Apr 16, 2024
1 parent 848dba3 commit 30bcf27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modular_nova/modules/primitive_structures/code/fencing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,16 @@
transfer_fingerprints_to(plank)

// formerly NO_DECONSTRUCTION
/obj/structure/railing/wirecutter_act(mob/living/user, obj/item/I)
/obj/structure/railing/wirecutter_act(mob/living/user, obj/item/tool)
return NONE

/obj/structure/railing/crowbar_act(mob/living/user, obj/item/tool)
. = ..()
to_chat(user, span_warning("You pry apart the railing."))
tool.play_tool_sound(src, 100)
deconstruct()
return TRUE

// Fence gates for the above mentioned fences

/obj/structure/railing/wooden_fencing/gate
Expand Down

0 comments on commit 30bcf27

Please sign in to comment.