Horizon operations storage will now spawn cargo correctly.

This commit is contained in:
mikomyazaki
2022-02-19 19:30:27 +00:00
parent 105b513cca
commit 235dca7820
5 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ var/list/global/random_stock_large = list()
/datum/cargospawner/New()
//First lets get the reference to our warehouse
for(var/areapath in typesof(/area/quartermaster/storage))
for(var/areapath in typesof(current_map.warehouse_basearea))
warehouse = locate(areapath)
if (warehouse)
for (var/turf/simulated/floor/T in warehouse)
@@ -134,7 +134,7 @@ var/list/global/random_stock_large = list()
tables |= B
/datum/cargospawner/proc/start()
if (!warehouse || !warehouseturfs.len)
if (!current_map.warehouse_basearea || !warehouse || !warehouseturfs.len)
admin_notice("<span class='danger'>ERROR: Cargo spawner failed to locate warehouse. Terminating.</span>", R_DEBUG)
qdel(src)
return
+2 -1
View File
@@ -109,8 +109,9 @@
var/list/planet_size //dimensions of planet zlevel, defaults to world size. Due to how maps are generated, must be (2^n+1) e.g. 17,33,65,129 etc. Map will just round up to those if set to anything other.
var/min_offmap_players = 0
var/away_site_budget = 0
var/allow_borgs_to_leave = FALSE //this controls if borgs can leave the station or ship without exploding
var/area/warehouse_basearea //this controls where the cargospawner tries to populate warehouse items
/datum/map/New()
if(!map_levels)
+2
View File
@@ -90,6 +90,8 @@
/datum/shuttle/autodock/multi/merc_aurora_elite
)
warehouse_basearea = /area/quartermaster/storage
/datum/map/aurora/generate_asteroid()
// Create the chasms.
new /datum/random_map/automata/cave_system/chasms(null,0,0,3,255,255)
+2
View File
@@ -69,6 +69,8 @@
/datum/shuttle/autodock/ferry/merchant/exodus
)
warehouse_basearea = /area/quartermaster/storage
/datum/map/exodus/generate_asteroid()
new /datum/random_map/automata/cave_system(null, 13, 32, 5, 217, 223)
new /datum/random_map/noise/ore(null, 13, 32, 5, 217, 223)
+2
View File
@@ -114,6 +114,8 @@
allow_borgs_to_leave = TRUE
warehouse_basearea = /area/operations/storage
/datum/map/sccv_horizon/finalize_load()
// generate an empty space Z
world.maxz++