mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
Limb regrowth delay increase as well as visible messages
This commit is contained in:
@@ -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 << "<span class='warning'>You cannot regenerate missing limbs in your current state.</span>"
|
||||
@@ -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("<span class='notice'>[src] begins to hold still and concentrate on their missing [limb_select]...</span>", "<span class='notice'>You begin to focus on regrowing your missing [limb_select]... (This will take [round(regrowthdelay/10)] seconds)</span>")
|
||||
if(do_after(src, regrowthdelay, needhand=0))
|
||||
if(stat || paralysis || stunned || weakened)
|
||||
src << "<span class='warning'>You cannot regenerate missing limbs in your current state.</span>"
|
||||
return
|
||||
@@ -482,6 +483,7 @@
|
||||
updatehealth()
|
||||
UpdateDamageIcon()
|
||||
nutrition -= hungercost
|
||||
visible_message("<span class='notice'>[src] finishes regrowing their missing [limb_select]!</span>", "<span class='notice'>You finish regrowing your [limb_select]</span>")
|
||||
else
|
||||
src << "<span class='warning'>You need to hold still in order to regrow a limb!</span>"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user