diff --git a/code/__HELPERS/~bubber_helpers/lists.dm b/code/__HELPERS/~bubber_helpers/lists.dm new file mode 100644 index 00000000000..a690cb1e8d4 --- /dev/null +++ b/code/__HELPERS/~bubber_helpers/lists.dm @@ -0,0 +1,7 @@ +///Returns an assoc list in plain english as a string +/proc/english_list_assoc(list/input) + var/output + for(var/item as anything in input) + output += "[item] = [input[item]] " + + return trim_right(output) diff --git a/modular_zubbers/code/modules/storyteller/gamemode.dm b/modular_zubbers/code/modules/storyteller/gamemode.dm index a8d77991b7c..8abeb0013be 100644 --- a/modular_zubbers/code/modules/storyteller/gamemode.dm +++ b/modular_zubbers/code/modules/storyteller/gamemode.dm @@ -376,6 +376,7 @@ SUBSYSTEM_DEF(gamemode) if(storyteller_halted) message_admins("WARNING: Didn't roll roundstart events (including antagonists) due to the storyteller being halted.") return + log_dynamic("Initializing storyteller [storyteller.name] with the following multipliers! [english_list_assoc(storyteller.tag_multipliers)]") while(TRUE) if(!storyteller.handle_tracks()) break diff --git a/modular_zubbers/code/modules/storyteller/storytellers/tellers/_storyteller.dm b/modular_zubbers/code/modules/storyteller/storytellers/tellers/_storyteller.dm index 4ed75ea63aa..04054ddbb5a 100644 --- a/modular_zubbers/code/modules/storyteller/storytellers/tellers/_storyteller.dm +++ b/modular_zubbers/code/modules/storyteller/storytellers/tellers/_storyteller.dm @@ -104,7 +104,9 @@ if(event.can_spawn_event(player_pop)) valid_events[event] = event.calculated_weight if(event.roundstart) - log_dynamic("[event] added to roundstart event pool with calculated weight [event.calculated_weight].") + log_dynamic("[event] added to roundstart event pool with calculated weight [event.calculated_weight] and tags [english_list(event.tags)].") + else if(event.roundstart) + log_dynamic("[event] did not meet inclusion criteria, skipped.") ///If we didn't get any events, remove the points inform admins and dont do anything if(!length(valid_events)) message_admins("Storyteller failed to pick an event for track of [track].") @@ -131,7 +133,7 @@ message_admins("Storyteller purchased and triggered [bought_event] event, on [track] track, for [total_cost] cost.") log_admin("Storyteller purchased and triggered [bought_event] event, on [track] track, for [total_cost] cost.") if(bought_event.roundstart) - log_dynamic("Roundstart event is [bought_event] based on weighted selection.") + log_dynamic("Storyteller selected roundstart event [bought_event] based on weighted selection!") mode.TriggerEvent(bought_event) else mode.schedule_event(bought_event, (rand(3, 4) MINUTES), total_cost) diff --git a/tgstation.dme b/tgstation.dme index 38c8dbacad7..c334f0250b5 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -662,6 +662,7 @@ #include "code\__HELPERS\paths\sssp.dm" #include "code\__HELPERS\sorts\helpers.dm" #include "code\__HELPERS\sorts\sort_instance.dm" +#include "code\__HELPERS\~bubber_helpers\lists.dm" #include "code\__HELPERS\~bubber_helpers\mobs.dm" #include "code\__HELPERS\~bubber_helpers\virus.dm" #include "code\__HELPERS\~skyrat_helpers\is_helpers.dm"