Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Multi-Z Cable Fixes #3062

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading