Right now I am working on putting clothing my NPCs during runtime. More specifically, during world/New(). Is there any way to make sure that an object is fully created before the mob/New() calls on my NPCs? Right now I create a shirt for my NPCs during world/New() like so...
npc_shirt = new /obj/item/shirt(null)
var/icon/i = npc_shirt.icon
i += rgb(175,0,0)
npc_shirt.icon = i
...and then in my mob/npc/New() I have...
src.overlays += npc_shirt
However, this only works if I put a spawn() delay before adding the shirt overlay because the problem is that the NPC is getting the overlay BEFORE the npc_shirt object is created. What I want to do is make sure the shirt object is fully created before my NPC object is created :\