Aut'akh Integrated Ethanol Burner Augment (#17643)

This commit is contained in:
Geeves
2023-11-01 21:39:33 +00:00
committed by GitHub
parent 265c02eda1
commit ccc2bd6ce2
5 changed files with 25 additions and 2 deletions
@@ -197,14 +197,20 @@
/singleton/reagent/alcohol/affect_ingest(var/mob/living/carbon/human/M, var/alien, var/removed, var/datum/reagents/holder)
if(!istype(M))
return
var/has_valid_aug = FALSE
var/obj/item/organ/internal/augment/ethanol_burner/aug = M.internal_organs_by_name[BP_AUG_ETHANOL_BURNER]
if(aug && !aug.is_broken())
has_valid_aug = TRUE
var/obj/item/organ/internal/parasite/P = M.internal_organs_by_name["blackkois"]
if((alien == IS_VAURCA) || (istype(P) && P.stage >= 3))//Vaurca are damaged instead of getting nutrients, but they can still get drunk
if(!has_valid_aug && (alien == IS_VAURCA || (istype(P) && P.stage >= 3)))//Vaurca are damaged instead of getting nutrients, but they can still get drunk
M.adjustToxLoss(1.5 * removed * (strength / 100))
else
M.adjustNutritionLoss(-nutriment_factor * removed)
M.adjustHydrationLoss(-hydration_factor * removed)
if (alien == IS_UNATHI)//unathi are poisoned by alcohol as well
if (!has_valid_aug && alien == IS_UNATHI)//unathi are poisoned by alcohol as well
M.adjustToxLoss(1.5 * removed * (strength / 100))
..()