mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Fixes Antihol 2: Electric Boogaloo (#17955)
* unboozening * unboozening 2: electric boogalo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user