mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Fix genetics console's ability to update head and eye attributes. (#32476)
This commit is contained in:
@@ -133,7 +133,7 @@
|
|||||||
// Simpler. Don't specify UI in order for the mob to use its own.
|
// Simpler. Don't specify UI in order for the mob to use its own.
|
||||||
/mob/proc/UpdateAppearance(list/UI = null)
|
/mob/proc/UpdateAppearance(list/UI = null)
|
||||||
if(ishuman(src)) // WHY?!
|
if(ishuman(src)) // WHY?!
|
||||||
if(UI!=null)
|
if(UI != null)
|
||||||
dna.UI = UI
|
dna.UI = UI
|
||||||
dna.UpdateUI()
|
dna.UpdateUI()
|
||||||
dna.check_integrity()
|
dna.check_integrity()
|
||||||
@@ -212,6 +212,10 @@
|
|||||||
// This proc applies the DNA's information to the given head
|
// This proc applies the DNA's information to the given head
|
||||||
/datum/dna/proc/write_head_attributes(obj/item/organ/external/head/head_organ)
|
/datum/dna/proc/write_head_attributes(obj/item/organ/external/head/head_organ)
|
||||||
|
|
||||||
|
head_organ.dna.UI = UI
|
||||||
|
head_organ.dna.UpdateUI()
|
||||||
|
head_organ.dna.check_integrity()
|
||||||
|
|
||||||
//Hair
|
//Hair
|
||||||
var/hair = GetUIValueRange(DNA_UI_HAIR_STYLE,length(GLOB.hair_styles_full_list))
|
var/hair = GetUIValueRange(DNA_UI_HAIR_STYLE,length(GLOB.hair_styles_full_list))
|
||||||
if((hair > 0) && (hair <= length(GLOB.hair_styles_full_list)))
|
if((hair > 0) && (hair <= length(GLOB.hair_styles_full_list)))
|
||||||
@@ -254,6 +258,9 @@
|
|||||||
|
|
||||||
// This proc gives the DNA info for eye color to the given eyes
|
// This proc gives the DNA info for eye color to the given eyes
|
||||||
/datum/dna/proc/write_eyes_attributes(obj/item/organ/internal/eyes/eyes_organ)
|
/datum/dna/proc/write_eyes_attributes(obj/item/organ/internal/eyes/eyes_organ)
|
||||||
|
eyes_organ.dna.UI = UI
|
||||||
|
eyes_organ.dna.UpdateUI()
|
||||||
|
eyes_organ.dna.check_integrity()
|
||||||
eyes_organ.eye_color = rgb(eyes_organ.dna.GetUIValueRange(DNA_UI_EYES_R, 255), eyes_organ.dna.GetUIValueRange(DNA_UI_EYES_G, 255), eyes_organ.dna.GetUIValueRange(DNA_UI_EYES_B, 255))
|
eyes_organ.eye_color = rgb(eyes_organ.dna.GetUIValueRange(DNA_UI_EYES_R, 255), eyes_organ.dna.GetUIValueRange(DNA_UI_EYES_G, 255), eyes_organ.dna.GetUIValueRange(DNA_UI_EYES_B, 255))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user