Makes Mugwort Tea remove harmful chems (#15651)

* Mugwort

Mugwort is a common name for several species of aromatic flowering plants in the genus Artemisia. In Europe, mugwort most often refers to the species Artemisia vulgaris, or common mugwort.

* I am very smart
This commit is contained in:
SabreML
2021-03-07 12:24:25 +00:00
committed by GitHub
parent fdc6ab2211
commit 0fdcd9ca8f
@@ -591,15 +591,18 @@
reagent_state = LIQUID
color = "#21170E"
taste_description = "tea"
harmless = TRUE
/datum/reagent/consumable/mugwort/on_mob_life(mob/living/M)
var/update_flags = STATUS_UPDATE_NONE
if(ishuman(M) && M.mind)
if(M.mind.special_role == SPECIAL_ROLE_WIZARD)
update_flags |= M.adjustToxLoss(-1*REAGENTS_EFFECT_MULTIPLIER, FALSE)
update_flags |= M.adjustOxyLoss(-1*REAGENTS_EFFECT_MULTIPLIER, FALSE)
update_flags |= M.adjustBruteLoss(-1*REAGENTS_EFFECT_MULTIPLIER, FALSE)
update_flags |= M.adjustFireLoss(-1*REAGENTS_EFFECT_MULTIPLIER, FALSE)
if(ishuman(M) && M.mind?.special_role == SPECIAL_ROLE_WIZARD)
update_flags |= M.adjustToxLoss(-1 * REAGENTS_EFFECT_MULTIPLIER, FALSE)
update_flags |= M.adjustOxyLoss(-1 * REAGENTS_EFFECT_MULTIPLIER, FALSE)
update_flags |= M.adjustBruteLoss(-1 * REAGENTS_EFFECT_MULTIPLIER, FALSE)
update_flags |= M.adjustFireLoss(-1 * REAGENTS_EFFECT_MULTIPLIER, FALSE)
for(var/datum/reagent/R in M.reagents.reagent_list)
if(!R.harmless)
M.reagents.remove_reagent(R.id, 5) // purge those meme chems
return ..() | update_flags
/datum/reagent/consumable/porktonium