organs NEW to INIT (#17050)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Kashargul
2025-02-07 12:30:20 -05:00
committed by GitHub
co-authored by Cameron Lennox
parent 71627d97ce
commit bb6a263e2f
12 changed files with 143 additions and 117 deletions
+8 -6
View File
@@ -44,10 +44,12 @@
/obj/item/organ/internal/kidneys/grey
icon_state = "kidneys_grey"
/obj/item/organ/internal/kidneys/grey/colormatch/New()
/obj/item/organ/internal/kidneys/grey/colormatch/Initialize(mapload, internal)
..()
var/mob/living/carbon/human/H = null
spawn(15)
if(ishuman(owner))
H = owner
color = H.species.blood_color
return INITIALIZE_HINT_LATELOAD
/obj/item/organ/internal/kidneys/grey/colormatch/LateInitialize()
. = ..()
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
color = H.species.blood_color