Fixes Antihol 2: Electric Boogaloo (#17955)

* unboozening

* unboozening 2: electric boogalo
This commit is contained in:
Mitchs98
2022-06-13 12:27:33 +01:00
committed by GitHub
parent af5ac7ebcc
commit 0931e7ee32
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -697,10 +697,10 @@
// Switch between how we check the reagent type
if(strict)
if(R.type == reagent_type)
matches = FALSE
matches = TRUE
else
if(istype(R, reagent_type))
matches = FALSE
matches = TRUE
// We found a match, proceed to remove the reagent. Keep looping, we might find other reagents of the same type.
if(matches)
// Have our other proc handle removement
@@ -855,8 +855,8 @@
/datum/reagent/medicine/antihol/on_mob_life(mob/living/M)
var/update_flags = STATUS_UPDATE_NONE
M.SetSlur(0)
M.AdjustDrunk(-4)
M.reagents.remove_all_type(/datum/reagent/consumable/ethanol, 8, 0, 1)
M.AdjustDrunk(-8 SECONDS)
M.reagents.remove_all_type(/datum/reagent/consumable/ethanol, 8)
if(M.getToxLoss() <= 25)
update_flags |= M.adjustToxLoss(-2.0, FALSE)
return ..() | update_flags