Debugging the mining distribution map.

This commit is contained in:
Zuhayr
2015-01-13 23:52:02 +10:30
parent da610e608b
commit b663ef64d6
2 changed files with 121 additions and 91 deletions

View File

@@ -12,9 +12,9 @@ var/global/list/random_maps = list()
new /datum/random_map/ore(input("Seed?") as text|null)
del(src)
/obj/item/test_randmap/maze/New()
new /datum/random_map/maze(input("Seed?") as text|null)
del(src)
///obj/item/test_randmap/maze/New()
// new /datum/random_map/maze(input("Seed?") as text|null)
// del(src)
/datum/random_map
var/descriptor = "debris field" // Display name.
@@ -139,6 +139,7 @@ var/global/list/random_maps = list()
if((origin_x + x) > limit_x) continue
for(var/y = 0, y < real_size, y++)
if((origin_y + y) > limit_y) continue
sleep(-1)
apply_to_turf(origin_x+x,origin_y+y)
/datum/random_map/proc/apply_to_turf(var/x,var/y)
@@ -155,4 +156,5 @@ var/global/list/random_maps = list()
T.ChangeTurf(/turf/simulated/mineral)
/datum/random_map/proc/cleanup()
sleep(-1)
return 1