Merge pull request #1222 from Datraen/XenoarchSpawnFix

[XENOARCH] Checks to see if the turf is a floor before spawning artifacts.
This commit is contained in:
EmperorJon
2016-03-22 22:34:52 +00:00
2 changed files with 10 additions and 1 deletions
@@ -9,9 +9,12 @@
#define ARTIFACTSPAWNNUM_LOWER 6
#define ARTIFACTSPAWNNUM_UPPER 12
datum/controller/game_controller/proc/SetupXenoarch()
/datum/controller/game_controller/proc/SetupXenoarch()
//create digsites
for(var/turf/simulated/mineral/M in block(locate(1,1,1), locate(world.maxx, world.maxy, world.maxz)))
if(M.density)
continue
if(isnull(M.geologic_data))
M.geologic_data = new/datum/geosample(M)