Makes storyteller changing actually work.

This commit is contained in:
Putnam
2020-04-21 21:33:03 -07:00
parent 44925da1d8
commit 2ac9c70763
+2 -1
View File
@@ -227,9 +227,10 @@ GLOBAL_VAR_INIT(dynamic_storyteller_type, /datum/dynamic_storyteller/classic)
for(var/T in config.storyteller_cache)
var/datum/dynamic_storyteller/S = T
choices[initial(S.name)] = T
var/selected_storyteller = input("Select storyteller:", "Storyteller", storyteller.name) as null|anything in choices
var/selected_storyteller = choices[input("Select storyteller:", "Storyteller", storyteller.name) as null|anything in choices]
storyteller = new selected_storyteller
storyteller.on_start()
message_admins("[key_name(usr)] changed the storyteller to [storyteller].", 1)
admin_panel() // Refreshes the window