[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:
AffectedArc07
2024-02-04 21:17:50 +00:00
committed by GitHub
parent d10e1adcae
commit 3ab2a08d86
9 changed files with 54 additions and 23 deletions
@@ -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