mannequin fix for lizard people (#40308)

* mannequin fix for lizard people

Just a small sequence problem with the race default features being loaded after setting them and tail not being set to update.

* Mannequin Fix for Lizard People

Just a small sequence problem with the race default features being loaded after setting them and tail not being set to update.

This would lead to the mannequin just having a smooth tail and no spines the default setting for a lizard tail.
This commit is contained in:
Fluffy Sensation
2018-09-17 20:25:26 -04:00
committed by Jordan Brown
parent e06f32b14d
commit 9605695596
+6 -2
View File
@@ -1509,8 +1509,6 @@ GLOBAL_LIST_EMPTY(preferences_datums)
character.backbag = backbag
character.dna.features = features.Copy()
character.dna.real_name = character.real_name
var/datum/species/chosen_species
if(!roundstart_checks || (pref_species.id in GLOB.roundstart_races))
chosen_species = pref_species.type
@@ -1518,7 +1516,13 @@ GLOBAL_LIST_EMPTY(preferences_datums)
chosen_species = /datum/species/human
pref_species = new /datum/species/human
save_character()
character.set_species(chosen_species, icon_update = FALSE, pref_load = TRUE)
character.dna.features = features.Copy()
character.dna.real_name = character.real_name
if("tail_lizard" in pref_species.default_features)
character.dna.species.mutant_bodyparts |= "tail_lizard"
if(icon_updates)
character.update_body()