Merge pull request #5330 from CHOMPStation2/upstream-merge-14056

[MIRROR] promethean fixes and QoLs
This commit is contained in:
Nadyr
2022-12-04 18:18:56 -05:00
committed by GitHub
9 changed files with 54 additions and 15 deletions

View File

@@ -241,9 +241,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