From 90cc925f780a45690e533bcda464f5faabc039f8 Mon Sep 17 00:00:00 2001 From: Markolie Date: Sat, 20 Dec 2014 17:56:47 +0100 Subject: [PATCH] Didn't quite work --- code/modules/reagents/Chemistry-Reagents.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/modules/reagents/Chemistry-Reagents.dm b/code/modules/reagents/Chemistry-Reagents.dm index 1d33f80d597..b0886e4bb9c 100644 --- a/code/modules/reagents/Chemistry-Reagents.dm +++ b/code/modules/reagents/Chemistry-Reagents.dm @@ -2662,6 +2662,18 @@ datum ..() return + Del() + if (istype(holder.my_atom,/mob/living)) + var/mob/living/M as mob + var/to_remove = 0 + if (holder.has_reagent("anti_toxin")) + to_remove = min(holder.get_reagent_amount("anti_toxin"),data) + holder.remove_reagent("anti_toxin", to_remove, 0) + data -= to_remove + if(M) + M.adjustToxLoss((data-1)*rand(2,4)) + ..() + psilocybin name = "Psilocybin" id = "psilocybin"