Skip to content

Commit

Permalink
[MIRROR] Fixes hardsuit flash and pipe placing
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelbassil authored and SierraHelper committed Jan 7, 2024
1 parent a7b0e91 commit e37a714
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/machinery/pipe/construction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Buildable meters

//called when a turf is attacked with a pipe item
/obj/item/pipe/use_after(atom/target, mob/living/user, click_parameters)
if (istype(target))
if (istype(target, /turf/simulated/floor))
user.unEquip(src, target)
return TRUE

Expand Down
4 changes: 4 additions & 0 deletions code/modules/atmospherics/pipes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
. = ..()

/obj/machinery/atmospherics/pipe/use_tool(obj/item/W, mob/living/user, list/click_params)
if (istype(W, /obj/item/pipe))
user.unEquip(W, loc)
return TRUE

if (!isWrench(W))
return ..()

Expand Down
2 changes: 1 addition & 1 deletion code/modules/clothing/spacesuits/rig/modules/combat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
if(!target.Adjacent(holder.wearer) || !ismob(target))
return 0

var/resolved = target.attackby(device,holder.wearer)
var/resolved = device.resolve_attackby(target,holder.wearer)
if(resolved)
holder.cell.use(use_power_cost * CELLRATE)
return resolved
Expand Down

0 comments on commit e37a714

Please sign in to comment.