promethean fixes and QoLs

This commit is contained in:
Seris02
2022-11-08 23:22:24 +08:00
parent d45fa8b492
commit 4bc513b3ce
9 changed files with 56 additions and 15 deletions
@@ -236,9 +236,15 @@
return TOPIC_REFRESH
else if(href_list["custom_base"])
var/list/choices = GLOB.custom_species_bases
if(pref.species != SPECIES_CUSTOM)
choices = (choices | pref.species)
var/list/choices
var/datum/species/spec = GLOB.all_species[pref.species]
if (spec.selects_bodytype == SELECTS_BODYTYPE_SHAPESHIFTER && istype(spec, /datum/species/shapeshifter))
var/datum/species/shapeshifter/spec_shifter = spec
choices = spec_shifter.valid_transform_species
else
choices = GLOB.custom_species_bases
if(pref.species != SPECIES_CUSTOM)
choices = (choices | pref.species)
var/text_choice = tgui_input_list(usr, "Pick an icon set for your species:","Icon Base", choices)
if(text_choice in choices)
pref.custom_base = text_choice