Makes xenochimera able to select "Xenochimera"

This commit is contained in:
Cameron Lennox
2017-12-02 19:08:12 -05:00
parent 755f8828a6
commit 4856786ceb
2 changed files with 13 additions and 3 deletions
@@ -73,7 +73,7 @@
if(!(path in negative_traits))
pref.neg_traits -= path
if(!pref.custom_base || !(pref.custom_base in playable_species - whitelisted_species))
if(!pref.custom_base || (pref.custom_base != "Xenochimera" && !(pref.custom_base in playable_species - whitelisted_species)))
pref.custom_base = "Human"
/datum/category_item/player_setup_item/vore/traits/copy_to_mob(var/mob/living/carbon/human/character)
@@ -98,10 +98,14 @@
. += "<b>Custom Species</b> "
. += "<a href='?src=\ref[src];custom_species=1'>[pref.custom_species ? pref.custom_species : "-Input Name-"]</a><br>"
if((pref.species == "Custom Species") || (pref.species == "Xenochimera"))
if(pref.species == "Custom Species")
. += "<b>Icon Base: </b> "
. += "<a href='?src=\ref[src];custom_base=1'>[pref.custom_base ? pref.custom_base : "Human"]</a><br>"
if(pref.species == "Xenochimera")
. += "<b>Icon Base: </b> "
. += "<a href='?src=\ref[src];custom_base_xenochimera=1'>[pref.custom_base ? pref.custom_base : "Human"]</a><br>"
if(pref.species == "Custom Species")
var/points_left = pref.starting_trait_points
@@ -162,6 +166,12 @@
pref.custom_base = text_choice
return TOPIC_REFRESH_UPDATE_PREVIEW
else if(href_list["custom_base_xenochimera"])
var/text_choice = input("Pick an icon set for your species:","Icon Base") in playable_species - whitelisted_species - "Custom Species" - "Promethean" + "Xenochimera"
if(text_choice in playable_species)
pref.custom_base = text_choice
return TOPIC_REFRESH_UPDATE_PREVIEW
else if(href_list["blood_color"])
var/color_choice = input("Pick a blood color (does not apply to synths)","Blood Color",pref.blood_color) as color
if(color_choice)