i hate keyed_list, i'm not keeping it in

This commit is contained in:
SandPoot
2023-07-28 13:53:09 -03:00
parent 6896a2e481
commit bfe07112ff
4 changed files with 18 additions and 25 deletions

View File

@@ -115,6 +115,8 @@
. = ..()
SSstation.announcer = /datum/centcom_announcer/medbot
GLOBAL_LIST_INIT(randomizing_station_name_messages, world.file2list("strings/randomizing_station_name_messages.txt"))
/datum/station_trait/randomizing_station_name
name = "Randomizing station name"
show_in_report = TRUE
@@ -136,8 +138,7 @@
var/new_name = new_station_name()
var/pick_entry = pick(CONFIG_GET(keyed_list/randomizing_station_name_message))
var/centcom_announcement = CONFIG_GET(keyed_list/randomizing_station_name_message)[pick_entry]
var/centcom_announcement = pick(GLOB.randomizing_station_name_messages)
// Replace with CURRENT station name
centcom_announcement = replacetext(centcom_announcement, "%CURRENT_STATION_NAME%", station_name())