Ghost spawner UI improvements (#18398)

* 4yehdgfjh45uhjt

* 342twgrse

* 5euyhtd

---------

Co-authored-by: DreamySkrell <>
This commit is contained in:
DreamySkrell
2024-02-15 11:27:22 +00:00
committed by GitHub
co-authored by DreamySkrell <>
parent 811d08c329
commit b251af5b7b
4 changed files with 129 additions and 77 deletions
+12
View File
@@ -119,13 +119,24 @@ SUBSYSTEM_DEF(ghostroles)
var/datum/ghostspawner/G = spawners[s]
if(G.cant_see(user))
continue
var/cant_spawn = G.cant_spawn(user)
var/list/manifest = list()
if(LAZYLEN(G.spawned_mobs))
for(var/datum/weakref/mob_ref in G.spawned_mobs)
var/mob/spawned_mob = mob_ref.resolve()
if(spawned_mob)
manifest += spawned_mob.real_name
var/atom/spawn_overmap_location = null
if(SSatlas.current_map.use_overmap)
var/atom/spawner = G.select_spawnlocation(FALSE)
if(istype(spawner))
var/obj/effect/overmap/visitable/sector = GLOB.map_sectors["[spawner.z]"]
if(istype(sector))
spawn_overmap_location = sector.name
var/list/spawner = list(
"short_name" = G.short_name,
"name" = G.name,
@@ -137,6 +148,7 @@ SUBSYSTEM_DEF(ghostroles)
"enabled" = G.enabled,
"count" = G.count,
"spawn_atoms" = length(G.spawn_atoms),
"spawn_overmap_location" = spawn_overmap_location,
"max_count" = G.max_count,
"tags" = G.tags,
"spawnpoints" = G.spawnpoints,