Fixes for the asteroid turf post-changes.

This commit is contained in:
Zuhayr
2015-12-21 04:59:32 +10:30
parent a3a35c922b
commit 6faeea5462
4 changed files with 46 additions and 12 deletions
+2 -2
View File
@@ -114,8 +114,8 @@
build_cost = 5
build_type = (!canRwall && W.reinf_material) ? null : "wall"
build_turf = /turf/simulated/floor
else if(istype(T,/turf/simulated/floor))
var/turf/simulated/floor/F = T
else if(istype(T,/turf/simulated/floor) || (istype(T,/turf/simulated/mineral) && !T.density))
var/turf/simulated/F = T
build_delay = deconstruct ? 50 : 20
build_cost = deconstruct ? 10 : 3
build_type = deconstruct ? "floor" : "wall"
+4 -3
View File
@@ -10,10 +10,11 @@
/obj/structure/lattice/New() //turf/simulated/floor/asteroid
..()
///// Z-Level Stuff
if(!(istype(src.loc, /turf/space) || istype(src.loc, /turf/simulated/open) || istype(src.loc, /turf/simulated/mineral/floor)))
///// Z-Level Stuff
if(!(istype(src.loc, /turf/space) || istype(src.loc, /turf/simulated/open) || istype(src.loc, /turf/simulated/mineral)))
qdel(src)
return
for(var/obj/structure/lattice/LAT in src.loc)
if(LAT != src)
qdel(LAT)