Fixes the setup button

This commit is contained in:
Verkister
2021-01-29 20:03:31 +02:00
parent ed960e0024
commit ac93d0e6cd
2 changed files with 34 additions and 3 deletions
@@ -14,7 +14,7 @@
S["vore_egg_type"] << pref.vore_egg_type
/datum/category_item/player_setup_item/vore/egg/sanitize_character()
pref.vore_egg_type = sanitize_inlist(pref.vore_egg_type, tf_vore_egg_types, initial(pref.vore_egg_type))
pref.vore_egg_type = sanitize_inlist(pref.vore_egg_type, global_vore_egg_types, initial(pref.vore_egg_type))
/datum/category_item/player_setup_item/vore/egg/copy_to_mob(var/mob/living/carbon/human/character)
character.vore_egg_type = pref.vore_egg_type
@@ -28,10 +28,10 @@
return TOPIC_NOACTION
else if(href_list["vore_egg_type"])
var/list/vore_egg_types = tf_vore_egg_types
var/list/vore_egg_types = global_vore_egg_types
var/selection = input(user, "Choose your character's egg type:", "Character Preference", pref.vore_egg_type) as null|anything in vore_egg_types
if(selection)
pref.vore_egg_type = vore_egg_types[selection]
pref.vore_egg_type = selection
return TOPIC_REFRESH
else
return