Small blackout qol (#91604)

## About The Pull Request
Now when you blackout your drunk-value will be capped at 51 so that your
liver does not die while the drunkard personality is controlling the
body

## Why It's Good For The Game
I saw that liver failure has removed alot of the fun from being blackout
drunk both as the drunkard and the original personality as they die from
liver failure. There will still be consequences from having tons of
alcohol in you but at least you will feel it after the blackout, which i
think is very fitting.
This commit is contained in:
FinancialGoose
2025-06-23 19:26:19 -05:00
committed by GitHub
parent 9268061a04
commit cbeda3651e
2 changed files with 8 additions and 1 deletions
@@ -283,11 +283,15 @@
header = "Bro I'm not even drunk right now",
notify_flags = NOTIFY_CATEGORY_NOFLASH,
)
var/datum/status_effect/inebriated/inebriation = owner.has_status_effect(/datum/status_effect/inebriated)
inebriation?.iron_liver = TRUE
/datum/brain_trauma/severe/split_personality/blackout/on_lose()
. = ..()
owner.add_mood_event("hang_over", /datum/mood_event/hang_over)
UnregisterSignal(owner, COMSIG_ATOM_SPLASHED)
var/datum/status_effect/inebriated/inebriation = owner.has_status_effect(/datum/status_effect/inebriated)
inebriation?.iron_liver = FALSE
/datum/brain_trauma/severe/split_personality/blackout/proc/on_splashed()
SIGNAL_HANDLER
+4 -1
View File
@@ -18,6 +18,8 @@
alert_type = null
/// The level of drunkness we are currently at.
var/drunk_value = 0
/// If TRUE, drunk_value will be capped at 51, preventing serious damage
var/iron_liver = FALSE
/datum/status_effect/inebriated/on_creation(mob/living/new_owner, drunk_value = 0)
. = ..()
@@ -57,7 +59,8 @@
/datum/status_effect/inebriated/proc/set_drunk_value(set_to)
if(!isnum(set_to))
CRASH("[type] - invalid value passed to set_drunk_value. (Got: [set_to])")
if(iron_liver)
set_to = min(51, set_to)
drunk_value = set_to
if(drunk_value <= 0)
qdel(src)