Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
silicons committed Sep 29, 2023
1 parent bf07887 commit d88e4a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions code/game/machinery/pipe/construction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,6 @@ Buildable meters
else
return ..()

/obj/item/pipe/attackby(var/obj/item/W as obj, var/mob/user as mob)
if(W.is_wrench())
return wrench_act(W, user)
return ..()

/obj/item/pipe/wrench_act(obj/item/I, datum/event_args/actor/clickchain/e_args, flags, hint)
if(!isturf(loc))
return TRUE
Expand Down
4 changes: 1 addition & 3 deletions code/game/objects/items/weapons/RPD.dm
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,7 @@
playsound(src, 'sound/items/deconstruct.ogg', 50, TRUE)

/obj/item/pipe_dispenser/proc/do_wrench(var/atom/target, mob/user)
var/resolved = target.attackby(tool,user)
if(!resolved && tool && target)
tool.afterattack(target,user,1)
tool.melee_attack_chain(target, user, CLICKCHAIN_HAS_PROXIMITY)

/obj/item/pipe_dispenser/proc/mouse_wheeled(mob/user, atom/A, delta_x, delta_y, params)
SIGNAL_HANDLER
Expand Down

0 comments on commit d88e4a6

Please sign in to comment.