new lattice (#19820)

This commit is contained in:
S34N
2022-12-03 08:35:39 -05:00
committed by GitHub
parent d95f2fd97c
commit d247ebe9c8
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -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'
+1 -1
View File
@@ -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)