mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 20:06:28 +01:00
Ports the TG globals controller and converts globals. (#18057)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Generates cave systems for the asteroid, and places ore tiles.
|
||||
var/global/list/random_maps = list()
|
||||
var/global/list/map_count = list()
|
||||
GLOBAL_LIST_EMPTY(random_maps)
|
||||
GLOBAL_LIST_EMPTY(map_count)
|
||||
|
||||
/datum/random_map
|
||||
|
||||
@@ -38,12 +38,12 @@ var/global/list/map_count = list()
|
||||
/datum/random_map/New(var/seed, var/tx, var/ty, var/tz, var/tlx, var/tly, var/do_not_apply, var/do_not_announce, var/never_be_priority = 0, var/used_area)
|
||||
|
||||
// Store this for debugging.
|
||||
if(!map_count[descriptor])
|
||||
map_count[descriptor] = 1
|
||||
if(!GLOB.map_count[descriptor])
|
||||
GLOB.map_count[descriptor] = 1
|
||||
else
|
||||
map_count[descriptor]++
|
||||
name = "[descriptor] #[map_count[descriptor]]"
|
||||
if(preserve_map) random_maps[name] = src
|
||||
GLOB.map_count[descriptor]++
|
||||
name = "[descriptor] #[GLOB.map_count[descriptor]]"
|
||||
if(preserve_map) GLOB.random_maps[name] = src
|
||||
|
||||
// Get origins for applying the map later.
|
||||
set_origins(tx, ty, tz)
|
||||
|
||||
Reference in New Issue
Block a user