Gambling with what breaks and how badly is our pasttime now (#16079)

This commit is contained in:
Fluffy
2023-03-23 23:58:38 +01:00
committed by GitHub
parent f996a324dc
commit 478fe120b2
5 changed files with 58 additions and 4 deletions
+8 -4
View File
@@ -26,12 +26,16 @@
/obj/structure/lattice/Initialize()
. = ..()
// TG does not have this, and it seems to trigger on the horizon, I do not know what this is supposed to do, perhaps we could get rid of it?
if (restrict_placement)
if(!(istype(loc, /turf/space) || isopenturf(loc) || istype(loc, /turf/unsimulated/floor/asteroid)))
return INITIALIZE_HINT_QDEL
for(var/obj/structure/lattice/LAT in loc)
if(LAT != src)
qdel(LAT)
if(LAT == src)
continue
stack_trace("multiple lattices found in ([loc.x], [loc.y], [loc.z])")
return INITIALIZE_HINT_QDEL
if(isturf(loc))
var/turf/turf = loc
turf.is_hole = FALSE
@@ -136,7 +140,7 @@
damaged = TRUE
/obj/structure/lattice/catwalk/indoor/grate/damaged/Initialize()
.=..()
. = ..()
icon_state = "[base_icon_state]_dam[rand(0,3)]"
/obj/structure/lattice/catwalk/indoor/grate/light
@@ -152,7 +156,7 @@
damaged = TRUE
/obj/structure/lattice/catwalk/indoor/grate/light/damaged/Initialize()
.=..()
. = ..()
icon_state = "[base_icon_state]_dam[rand(0,3)]"
/obj/structure/lattice/catwalk/indoor/grate/attackby(obj/item/C, mob/user)