From 620ac6063c517504d6d44c7cd8e99735d1595dc9 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 12 Dec 2023 03:02:26 +0100 Subject: [PATCH] [MIRROR] Blackout drunkard warning adjustment [MDB IGNORE] (#25558) * Blackout drunkard warning adjustment (#80210) ## About The Pull Request This adjusts the "you have 50 seconds before sobering up!" warning for the blackout-drunkard split personality. Originally, this message would always send when 50 seconds are left, meaning you'd get a "50 seconds left" warning every second, for the last 50 seconds. Now, instead of that, you get a warning starting at the 60 second mark, that updates you every 20 seconds. So basically, you get a warning at 60, 40, and 20 seconds left instead of every second for the last 50 seconds of drunkenness * Blackout drunkard warning adjustment --------- Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> --- code/datums/brain_damage/split_personality.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/brain_damage/split_personality.dm b/code/datums/brain_damage/split_personality.dm index 8b6436f1d15..7cbcdd6a4d8 100644 --- a/code/datums/brain_damage/split_personality.dm +++ b/code/datums/brain_damage/split_personality.dm @@ -293,8 +293,8 @@ if(duration_in_seconds <= 0) qdel(src) return - else if(duration_in_seconds <= 50) - to_chat(owner, span_warning("You have 50 seconds left before sobering up!")) + else if(duration_in_seconds <= 60 && !(duration_in_seconds % 20)) + to_chat(owner, span_warning("You have [duration_in_seconds] seconds left before sobering up!")) if(prob(10) && !HAS_TRAIT(owner, TRAIT_DISCOORDINATED_TOOL_USER)) ADD_TRAIT(owner, TRAIT_DISCOORDINATED_TOOL_USER, TRAUMA_TRAIT) owner.balloon_alert(owner, "dexterity reduced temporarily!")