mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 20:37:34 +01:00
Gambling with what breaks and how badly is our pasttime now (#16079)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user