Skip to content

Commit

Permalink
[MIRROR] Multi-Z Cable Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SierraKomodo authored and SierraHelper committed Jan 1, 2025
1 parent 6eca3af commit 864cd50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 2 additions & 7 deletions code/datums/extensions/support_lattice.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@

if(isCoil(C))
var/obj/item/stack/cable_coil/coil = C
var/obj/structure/lattice/L = locate(/obj/structure/lattice, T)
if(L)
coil.PlaceCableOnTurf(T, user)
return TRUE
else
to_chat(user, SPAN_WARNING("The cable needs something to be secured to."))
return TRUE
coil.PlaceCableOnTurf(T, user)
return TRUE

return FALSE
4 changes: 4 additions & 0 deletions code/modules/power/cable_coil.dm
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ GLOBAL_LIST_INIT(cable_default_colors, list(
if (!can_use(2))
to_chat(user, SPAN_WARNING("You don't have enough cable to hang a wire down."))
return
var/turf/below = GetBelow(target)
if (!below.is_plating())
USE_FEEDBACK_FAILURE("\The [below] below needs to have its tiling removed before you can lay a cable.")
return
to_dir = DOWN
var/from_dir = user.dir
if (user.loc != target)
Expand Down

0 comments on commit 864cd50

Please sign in to comment.