From d247ebe9c8e28aed27d75485436c85521b4f491a Mon Sep 17 00:00:00 2001 From: S34N <12197162+S34NW@users.noreply.github.com> Date: Sat, 3 Dec 2022 13:35:39 +0000 Subject: [PATCH] new lattice (#19820) --- code/game/objects/structures/lattice.dm | 8 ++++++++ code/game/turfs/turf.dm | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm index 5020fda9c87..147fb147bf0 100644 --- a/code/game/objects/structures/lattice.dm +++ b/code/game/objects/structures/lattice.dm @@ -91,6 +91,14 @@ C.deconstruct() ..() +/obj/structure/lattice/catwalk/mining + name = "reinforced catwalk" + desc = "A heavily reinforced catwalk used to build bridges in hostile environments. It doesn't look like anything could make this budge." + resistance_flags = INDESTRUCTIBLE + +/obj/structure/lattice/catwalk/mining/deconstruction_hints(mob/user) + return + /obj/structure/lattice/catwalk/clockwork name = "clockwork catwalk" icon = 'icons/obj/smooth_structures/catwalk_clockwork.dmi' diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 88f79c93791..712e7df07ef 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -202,7 +202,7 @@ // Removes all signs of lattice on the pos of the turf -Donkieyo /turf/proc/RemoveLattice() var/obj/structure/lattice/L = locate(/obj/structure/lattice, src) - if(L) + if(L && !(L.resistance_flags & INDESTRUCTIBLE)) qdel(L) /turf/proc/dismantle_wall(devastated = FALSE, explode = FALSE)