From cb5cdf60cbc06d3c6a2d70f21842c65b81b1200f Mon Sep 17 00:00:00 2001 From: coiax Date: Mon, 4 Jul 2016 03:24:52 +0100 Subject: [PATCH] Spawn removal 4 [wi[ (#19086) * Spawn removal 4 * Code review I --- code/modules/mob/living/carbon/human/species.dm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index 50ada062f30..1089f4ccfb4 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -817,11 +817,9 @@ H.emote("collapse") if(prob(15)) if(!( H.hair_style == "Shaved") || !(H.hair_style == "Bald") || (HAIR in specflags)) - H << "Your hair starts to fall out in clumps..." - spawn(50) - H.facial_hair_style = "Shaved" - H.hair_style = "Bald" - H.update_hair() + H << "Your hair starts to \ + fall out in clumps..." + addtimer(src, "go_bald", 50, TRUE, H) if(75 to 100) if(prob(1)) @@ -832,6 +830,11 @@ return 0 return 1 +/datum/species/proc/go_bald(mob/living/carbon/human/H) + H.facial_hair_style = "Shaved" + H.hair_style = "Bald" + H.update_hair() + //////////////// // MOVE SPEED // ////////////////