Simulated to Unsimulated (#6410)

This commit is contained in:
Werner
2019-05-19 16:22:54 +02:00
committed by GitHub
parent 132825cdae
commit 6d8a94d408
55 changed files with 416 additions and 403 deletions
+4 -4
View File
@@ -79,8 +79,8 @@
return
//Drill through the flooring, if any.
if(istype(get_turf(src), /turf/simulated/floor/asteroid))
var/turf/simulated/floor/asteroid/T = get_turf(src)
if(istype(get_turf(src), /turf/unsimulated/floor/asteroid))
var/turf/unsimulated/floor/asteroid/T = get_turf(src)
if(!T.dug)
T.gets_dug()
else if(istype(get_turf(src), /turf/simulated/floor))
@@ -89,7 +89,7 @@
//Dig out the tasty ores.
if(resource_field.len)
var/turf/simulated/harvesting = pick(resource_field)
var/turf/harvesting = pick(resource_field)
while(resource_field.len && !harvesting.resources)
harvesting.has_resources = 0
@@ -295,7 +295,7 @@
var/tx = T.x - 2
var/ty = T.y - 2
var/turf/simulated/mine_turf
var/turf/mine_turf
for(var/iy = 0,iy < 5, iy++)
for(var/ix = 0, ix < 5, ix++)
mine_turf = locate(tx + ix, ty + iy, T.z)
+1 -1
View File
@@ -20,7 +20,7 @@
"exotic matter" = 0
)
for(var/turf/simulated/T in range(2, get_turf(user)))
for(var/turf/T in range(2, get_turf(user)))
if(!T.has_resources)
continue