synth alcohol immunity

This commit is contained in:
DeltaFire
2020-11-24 20:27:34 +01:00
parent abdb0de19d
commit a3208d1ac8
7 changed files with 10 additions and 5 deletions
@@ -37,6 +37,9 @@ All effects don't start immediately, but rather get worse over time; the rate is
/datum/reagent/consumable/ethanol/on_mob_life(mob/living/carbon/C)
if(HAS_TRAIT(C, TRAIT_NO_ALCOHOL))
return ..()
if(HAS_TRAIT(C, TRAIT_TOXIC_ALCOHOL))
C.adjustToxLoss((boozepwr/25)*REM,forced = TRUE)
else if(C.drunkenness < volume * boozepwr * ALCOHOL_THRESHOLD_MODIFIER)
var/booze_power = boozepwr