diff --git a/code/controllers/configuration/config_entry.dm b/code/controllers/configuration/config_entry.dm index 5b20f27b3e..36faa61759 100644 --- a/code/controllers/configuration/config_entry.dm +++ b/code/controllers/configuration/config_entry.dm @@ -194,17 +194,18 @@ continue_check_value = new_value if(VALUE_MODE_NUM_LIST) // this is all copy+pasted from number list up there, but it's super basic so I don't see it being changed soon - new_value = list() + var/list/new_list var/list/values = splittext(str_val," ") for(var/I in values) var/temp = text2num(I) if(isnull(temp)) log_admin("invalid number list entry in [key_name]: [I]") return FALSE - new_value += temp - if(!new_value.len) + new_list += temp + if(!(new_list.len)) // log_admin("empty number list for [key_name]") return FALSE + new_value = new_list if(continue_check_value && continue_check_key && ValidateListEntry(new_key, new_value)) config_entry_value[new_key] = new_value return TRUE diff --git a/code/controllers/configuration/entries/game_options.dm b/code/controllers/configuration/entries/game_options.dm index 98dcb45401..3438dfb7a9 100644 --- a/code/controllers/configuration/entries/game_options.dm +++ b/code/controllers/configuration/entries/game_options.dm @@ -384,3 +384,7 @@ /datum/config_entry/keyed_list/dynamic_requirements key_mode = KEY_MODE_TEXT value_mode = VALUE_MODE_NUM_LIST + +/datum/config_entry/keyed_list/dynamic_high_population_requirement + key_mode = KEY_MODE_TEXT + value_mode = VALUE_MODE_NUM