Merge pull request #14056 from Seris02/prometheanchanges

promethean fixes and QoLs
This commit is contained in:
Heroman3003
2022-11-29 07:51:01 +10:00
committed by CHOMPStation2
parent e291c29e0f
commit 1ba39fee84
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