From 23f2885c013b63e553e43afb928e87fe822026fd Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Mon, 9 Jun 2014 01:54:03 -0400 Subject: [PATCH] Moar addiction fixuns --- code/modules/reagents/Chemistry-Reagents.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/reagents/Chemistry-Reagents.dm b/code/modules/reagents/Chemistry-Reagents.dm index b7f0ce3cd0c..32e772fd671 100644 --- a/code/modules/reagents/Chemistry-Reagents.dm +++ b/code/modules/reagents/Chemistry-Reagents.dm @@ -67,12 +67,16 @@ datum M.reagents.add_reagent(self.id,self.volume/2) - if(method == INGEST) + if(method == INGEST && istype(M, /mob/living/carbon)) if(prob(1 * self.addictiveness)) if(prob(5 * volume)) var/datum/disease/addiction/A = new /datum/disease/addiction A.addicted_to = self - M.contract_disease(A,0,1) + A.name = "[self.name] Addiction" + A.cure = self.id + M.viruses += A + A.affected_mob = M + A.holder = M return 1 reaction_obj(var/obj/O, var/volume) //By default we transfer a small part of the reagent to the object