From c340f22125848ee8cdb7ed393b1b5033b1957663 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Wed, 2 Oct 2024 11:17:37 -0400 Subject: [PATCH] blackbox: Record ghost role spawns. (#26906) --- code/datums/spawners_menu.dm | 3 ++- .../awaymissions/mission_code/ghost_role_spawners/golems.dm | 1 + code/modules/awaymissions/mob_spawn.dm | 2 ++ code/modules/ruins/lavalandruin_code/seed_vault.dm | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/code/datums/spawners_menu.dm b/code/datums/spawners_menu.dm index 83c2b9ef7b2..41a05be0952 100644 --- a/code/datums/spawners_menu.dm +++ b/code/datums/spawners_menu.dm @@ -57,5 +57,6 @@ owner.forceMove(get_turf(MS)) . = TRUE if("spawn") - MS.attack_ghost(owner) + if(MS.attack_ghost(owner)) + SSblackbox.record_feedback("tally", "ghost_spawns", 1, "[MS.assignedrole]") . = TRUE diff --git a/code/modules/awaymissions/mission_code/ghost_role_spawners/golems.dm b/code/modules/awaymissions/mission_code/ghost_role_spawners/golems.dm index 81b51ad36e9..bc23091f65c 100644 --- a/code/modules/awaymissions/mission_code/ghost_role_spawners/golems.dm +++ b/code/modules/awaymissions/mission_code/ghost_role_spawners/golems.dm @@ -208,3 +208,4 @@ mob_name = "a free golem" can_transfer = FALSE mob_species = /datum/species/golem/adamantine + assignedrole = "Free Golem" diff --git a/code/modules/awaymissions/mob_spawn.dm b/code/modules/awaymissions/mob_spawn.dm index 1741cdb69f1..4e2f23fe7bc 100644 --- a/code/modules/awaymissions/mob_spawn.dm +++ b/code/modules/awaymissions/mob_spawn.dm @@ -55,6 +55,8 @@ return create(ckey = user.ckey, user = user) + return TRUE + /obj/effect/mob_spawn/Initialize(mapload) . = ..() if(instant || roundstart) //at some point we should probably re-introduce the (ticker && ticker.current_state > GAME_STATE_SETTING_UP) portion of this check, but for now it was preventing the corpses from spawning at roundstart and resulting in ghost role spawners that made dead bodies. diff --git a/code/modules/ruins/lavalandruin_code/seed_vault.dm b/code/modules/ruins/lavalandruin_code/seed_vault.dm index 261c22ef488..bbedf920162 100644 --- a/code/modules/ruins/lavalandruin_code/seed_vault.dm +++ b/code/modules/ruins/lavalandruin_code/seed_vault.dm @@ -22,7 +22,7 @@ flavour_text = "You are a sentient ecosystem, an example of the mastery over life that your creators possessed. Your masters, benevolent as they were, created uncounted \ seed vaults and spread them across the universe to every planet they could chart. You are in one such seed vault. Your goal is to cultivate and spread life wherever it will go while waiting \ for contact from your creators. Estimated time of last contact: Deployment, 5x10^3 millennia ago." - assignedrole = "Lifebringer" + assignedrole = "Seed Vault Diona" /obj/effect/mob_spawn/human/alive/seed_vault/special(mob/living/new_spawn) var/plant_name = pick("Tomato", "Potato", "Broccoli", "Carrot", "Ambrosia", "Pumpkin", "Ivy", "Kudzu", "Banana", "Moss", "Flower", "Bloom", "Root", "Bark", "Glowshroom", "Petal", "Leaf", \