mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
[TM prolly] Some init optimisationss (#23800)
* [TM prolly] Some init optimisationss * Do this as well * Sod it some runtime optimisations as well
This commit is contained in:
@@ -214,7 +214,7 @@
|
||||
H.ha_style = "None"
|
||||
update_head_accessory()
|
||||
|
||||
/mob/living/carbon/human/proc/change_eye_color(colour = "#000000", update_dna = TRUE)
|
||||
/mob/living/carbon/human/proc/change_eye_color(colour = "#000000", update_dna = TRUE, skip_icons = FALSE)
|
||||
// Update the main DNA datum, then sync the change across the organs
|
||||
var/obj/item/organ/internal/eyes/eyes_organ = get_int_organ(/obj/item/organ/internal/eyes)
|
||||
if(eyes_organ)
|
||||
@@ -227,9 +227,11 @@
|
||||
|
||||
if(update_dna)
|
||||
update_dna()
|
||||
|
||||
sync_organ_dna(assimilate = FALSE)
|
||||
update_eyes()
|
||||
update_body()
|
||||
if(!skip_icons)
|
||||
update_eyes()
|
||||
update_body()
|
||||
return TRUE
|
||||
|
||||
/mob/living/carbon/human/proc/get_eye_color()
|
||||
|
||||
@@ -1450,10 +1450,9 @@
|
||||
|
||||
if(!delay_icon_update)
|
||||
UpdateAppearance()
|
||||
|
||||
overlays.Cut()
|
||||
update_mutantrace()
|
||||
regenerate_icons()
|
||||
overlays.Cut()
|
||||
update_mutantrace()
|
||||
regenerate_icons()
|
||||
|
||||
if(dna.species)
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user