From b95969475cfade26aaa1b6bb0c814ad90159613d Mon Sep 17 00:00:00 2001 From: BordListian Date: Sun, 4 Mar 2018 00:36:50 +0100 Subject: [PATCH] - Introduces a non-linear component to liver damage from alcohol so weak alcohol doesn't kill you instantly. (#36089) --- code/modules/reagents/chemistry/reagents/alcohol_reagents.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm b/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm index fc606a9e920..9ada644e591 100644 --- a/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm @@ -1,5 +1,6 @@ #define ALCOHOL_THRESHOLD_MODIFIER 0.05 //Greater numbers mean that less alcohol has greater intoxication potential #define ALCOHOL_RATE 0.005 //The rate at which alcohol affects you +#define ALCOHOL_EXPONENT 1.6 //The exponent applied to boozepwr to make higher volume alcohol atleast a little bit damaging. ////////////// I don't know who made this header before I refactored alcohols but I'm going to fucking strangle them because it was so ugly, holy Christ // ALCOHOLS // @@ -42,7 +43,7 @@ All effects don't start immediately, but rather get worse over time; the rate is booze_power *= 0.7 H.drunkenness = max((H.drunkenness + (sqrt(volume) * booze_power * ALCOHOL_RATE)), 0) //Volume, power, and server alcohol rate effect how quickly one gets drunk var/obj/item/organ/liver/L = H.getorganslot(ORGAN_SLOT_LIVER) - H.applyLiverDamage((max(sqrt(volume) * booze_power * L.alcohol_tolerance, 0))/4) + H.applyLiverDamage((max(sqrt(volume) * (boozepwr ** ALCOHOL_EXPONENT) * L.alcohol_tolerance, 0))/150) return ..() || . /datum/reagent/consumable/ethanol/reaction_obj(obj/O, reac_volume)