diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index 7e23e316924..69e644a2399 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -221,6 +221,21 @@ The box in your backpack has an oxygen tank and gas mask in it." or something covering your eyes." icon_state = "blind" +/obj/screen/alert/stunned + name = "Stunned" + desc = "You're temporarily stunned! You'll have trouble moving or performing actions, but it should clear up on it's own." + icon_state = "stun" + +/obj/screen/alert/paralyzed + name = "Paralyzed" + desc = "You're paralyzed! This could be due to drugs or serious injury. You'll be unable to move or perform actions." + icon_state = "paralysis" + +/obj/screen/alert/weakened + name = "Weakened" + desc = "You're weakened! This could be a temporary issue due to injury or the result of drugs or drinking." + icon_state = "weaken" + /obj/screen/alert/confused name = "Confused" desc = "You're confused, and may stumble into things! This may be from concussive effects, drugs, or dizzyness. Walking will help reduce incidents." diff --git a/code/modules/mob/living/life.dm b/code/modules/mob/living/life.dm index 7b425a18ec7..1076c1fc945 100644 --- a/code/modules/mob/living/life.dm +++ b/code/modules/mob/living/life.dm @@ -119,11 +119,17 @@ /mob/living/proc/handle_stunned() if(stunned) AdjustStunned(-1) + throw_alert("stunned", /obj/screen/alert/stunned) + else + clear_alert("stunned") return stunned /mob/living/proc/handle_weakened() if(weakened) weakened = max(weakened-1,0) + throw_alert("weakened", /obj/screen/alert/weakened) + else + clear_alert("weakened") return weakened /mob/living/proc/handle_stuttering() @@ -139,6 +145,9 @@ /mob/living/proc/handle_drugged() if(druggy) druggy = max(druggy-1, 0) + throw_alert("high", /obj/screen/alert/high) + else + clear_alert("high") return druggy /mob/living/proc/handle_slurring() @@ -149,6 +158,9 @@ /mob/living/proc/handle_paralysed() if(paralysis) AdjustParalysis(-1) + throw_alert("paralyzed", /obj/screen/alert/paralyzed) + else + clear_alert("paralyzed") return paralysis /mob/living/proc/handle_confused()