silly errors

This commit is contained in:
Putnam
2019-10-22 20:07:26 -07:00
parent bc79aeb541
commit 9dd4d6a93c
2 changed files with 8 additions and 3 deletions
@@ -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
@@ -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