Skip to content

Commit

Permalink
Prevent drones from interacting with fireaxe cabinets. fixes #4901 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
flleeppyy authored Jan 16, 2025
1 parent 3896874 commit dad39c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions monkestation/code/game/objects/structures/fireaxe.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/obj/structure/fireaxecabinet/attackby(obj/item/attacking_item, mob/living/user, params)
if (isdrone(user) && attacking_item.tool_behaviour == TOOL_MULTITOOL)
to_chat(src, span_warning("Using [src] could break your laws."))
return
. = ..()

/obj/structure/fireaxecabinet/attack_hand(mob/user, list/modifiers)
if (isdrone(user))
to_chat(src, span_warning("Using [src] could break your laws."))
return
. = ..()
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6169,6 +6169,7 @@
#include "monkestation\code\game\objects\items\storage\boxes\boxes.dm"
#include "monkestation\code\game\objects\items\storage\boxes\security_boxes.dm"
#include "monkestation\code\game\objects\structures\elevation.dm"
#include "monkestation\code\game\objects\structures\fireaxe.dm"
#include "monkestation\code\game\objects\structures\gravestones.dm"
#include "monkestation\code\game\objects\structures\tables_racks.dm"
#include "monkestation\code\game\objects\structures\trash_pile.dm"
Expand Down

0 comments on commit dad39c0

Please sign in to comment.