From 4005de8e7dc59d65d69a1982bd779dbcbf06c9f4 Mon Sep 17 00:00:00 2001 From: Crazylemon Date: Tue, 2 Feb 2016 18:10:51 -0800 Subject: [PATCH] Limb regrowth delay increase as well as visible messages --- code/modules/mob/living/carbon/human/species/station.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/species/station.dm b/code/modules/mob/living/carbon/human/species/station.dm index 6665700c11f..c1a92a1d6d1 100644 --- a/code/modules/mob/living/carbon/human/species/station.dm +++ b/code/modules/mob/living/carbon/human/species/station.dm @@ -411,7 +411,6 @@ H.r_skin = new_color_list[1] H.g_skin = new_color_list[2] H.b_skin = new_color_list[3] - world << "[world.time % 200]" if(world.time % 200 > 180) // Once every 20 seconds - update_body is expensive // The weird time shenanigans are because reagents update only every 2 seconds for(var/organname in H.organs_by_name) @@ -428,6 +427,7 @@ var/const/hungercost = 125 var/const/minhunger = 300 + var/const/regrowthdelay = 450 // 45 seconds if(stat || paralysis || stunned || weakened) src << "You cannot regenerate missing limbs in your current state." @@ -456,7 +456,8 @@ var/limb_select = input(src, "Choose a limb to regrow", "Limb Regrowth") as null|anything in missing_limbs var/chosen_limb = missing_limbs[limb_select] - if(do_after(src, 200, needhand=0)) + visible_message("[src] begins to hold still and concentrate on their missing [limb_select]...", "You begin to focus on regrowing your missing [limb_select]... (This will take [round(regrowthdelay/10)] seconds)") + if(do_after(src, regrowthdelay, needhand=0)) if(stat || paralysis || stunned || weakened) src << "You cannot regenerate missing limbs in your current state." return @@ -482,6 +483,7 @@ updatehealth() UpdateDamageIcon() nutrition -= hungercost + visible_message("[src] finishes regrowing their missing [limb_select]!", "You finish regrowing your [limb_select]") else src << "You need to hold still in order to regrow a limb!" return