mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Drunk alert
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user