mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
This should make sure you don't lose your hairstyle when cloned
This commit is contained in:
@@ -161,9 +161,9 @@
|
||||
H.s_tone = 35 - dna.GetUIValueRange(DNA_UI_SKIN_TONE, 220) // Value can be negative.
|
||||
|
||||
if (dna.GetUIState(DNA_UI_GENDER))
|
||||
H.change_gender(FEMALE)
|
||||
H.change_gender(FEMALE, 0)
|
||||
else
|
||||
H.change_gender(MALE)
|
||||
H.change_gender(MALE, 0)
|
||||
|
||||
//Hair
|
||||
var/hair = dna.GetUIValueRange(DNA_UI_HAIR_STYLE,hair_styles_list.len)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
reset_hair()
|
||||
return 1
|
||||
|
||||
/mob/living/carbon/human/proc/change_gender(var/gender)
|
||||
/mob/living/carbon/human/proc/change_gender(var/gender, var/update_dna = 1)
|
||||
if(src.gender == gender)
|
||||
return
|
||||
|
||||
@@ -31,7 +31,8 @@
|
||||
if(current_fhair.gender != NEUTER && current_fhair.gender != src.gender)
|
||||
reset_facial_hair()
|
||||
|
||||
update_dna()
|
||||
if(update_dna)
|
||||
update_dna()
|
||||
sync_organ_dna(assimilate = 0)
|
||||
update_body()
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user