More work on pods, added personnel pod.

This commit is contained in:
Zuhayr
2015-08-03 06:50:49 +09:30
parent 31ffc91d47
commit 1b840a6efc
7 changed files with 353 additions and 121 deletions

View File

@@ -17,6 +17,7 @@ var/global/list/map_count = list()
var/limit_x = 128 // Default x size.
var/limit_y = 128 // Default y size.
var/auto_apply = 1
var/preserve_map = 1
// Turf paths.
var/wall_type = /turf/simulated/wall
@@ -38,7 +39,7 @@ var/global/list/map_count = list()
else
map_count[descriptor]++
name = "[descriptor] #[map_count[descriptor]]"
random_maps[name] = src
if(preserve_map) random_maps[name] = src
// Get origins for applying the map later.
set_origins(tx, ty, tz)
@@ -168,9 +169,12 @@ var/global/list/map_count = list()
var/newpath = get_appropriate_path(map[current_cell])
if(newpath)
T.ChangeTurf(newpath)
get_additional_spawns(map[current_cell],T)
get_additional_spawns(map[current_cell],T,get_spawn_dir(x, y))
return T
/datum/random_map/proc/get_spawn_dir()
return 0
/datum/random_map/proc/get_appropriate_path(var/value)
switch(value)
if(FLOOR_CHAR)