Skip to content

Commit

Permalink
[MIRROR] Blackout drunkard warning adjustment [MDB IGNORE] (#25558)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Dec 12, 2023
1 parent 7c4c91f commit 620ac60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/datums/brain_damage/split_personality.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down

0 comments on commit 620ac60

Please sign in to comment.