diff --git a/code/_onclick/hud/alert.dm b/code/_onclick/hud/alert.dm index a07a29ccc53..35c250abc32 100644 --- a/code/_onclick/hud/alert.dm +++ b/code/_onclick/hud/alert.dm @@ -269,9 +269,9 @@ or something covering your eyes." desc = "Whoa man, you're tripping balls! Careful you don't get addicted... if you aren't already." icon_state = "high" -/obj/screen/alert/drunk //Not implemented +/obj/screen/alert/drunk name = "Drunk" - desc = "All that alcohol you've been drinking is impairing your speech, motor skills, and mental cognition. Make sure to act like it." + desc = "All that alcohol you've been drinking is impairing your speech, motor skills, and mental cognition." icon_state = "drunk" /obj/screen/alert/embeddedobject diff --git a/code/modules/mob/living/status_procs.dm b/code/modules/mob/living/status_procs.dm index e23baf18489..d4cca1b985d 100644 --- a/code/modules/mob/living/status_procs.dm +++ b/code/modules/mob/living/status_procs.dm @@ -364,6 +364,11 @@ /mob/living/SetSlur(amount) slurring = max(amount, 0) + if(slurring && drunk) + throw_alert("drunk", /obj/screen/alert/drunk) + else + clear_alert("drunk") + /mob/living/AdjustSlur(amount, bound_lower = 0, bound_upper = INFINITY) var/new_value = directional_bounded_sum(slurring, amount, bound_lower, bound_upper) SetSlur(new_value)