mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 23:29:10 +01:00
[MIRROR] Alternate base sprites for zorren (#11284)
Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
SatinIsle
Kashargul
parent
5e008dd083
commit
caf8ef88a4
@@ -28,6 +28,9 @@
|
||||
choices = GLOB.custom_species_bases.Copy()
|
||||
if(new_species != SPECIES_CUSTOM)
|
||||
choices = (choices | new_species)
|
||||
else if (spec.selects_bodytype == SELECTS_BODYTYPE_ZORREN)
|
||||
choices = list(SPECIES_ZORREN_HIGH,SPECIES_ZORREN_DARK)
|
||||
choices = choices.Copy()
|
||||
return choices
|
||||
|
||||
/datum/category_item/player_setup_item/general/traits/proc/get_pref_choice_from_trait(var/mob/user, var/datum/trait/trait, var/preference)
|
||||
@@ -154,10 +157,10 @@
|
||||
var/datum/species/selected_species = GLOB.all_species[pref.species]
|
||||
if(selected_species.selects_bodytype)
|
||||
if (!(pref.custom_base in pref.get_custom_bases_for_species()))
|
||||
pref.custom_base = SPECIES_HUMAN
|
||||
pref.custom_base = selected_species.default_custom_base
|
||||
//otherwise, allowed!
|
||||
else if(!pref.custom_base || !(pref.custom_base in GLOB.custom_species_bases))
|
||||
pref.custom_base = SPECIES_HUMAN
|
||||
pref.custom_base = selected_species.default_custom_base
|
||||
|
||||
|
||||
/datum/category_item/player_setup_item/general/traits/copy_to_mob(var/mob/living/carbon/human/character)
|
||||
|
||||
Reference in New Issue
Block a user