anchor.diff:  	name = "anti-toxins pill"
   	desc = "Neutralizes many common toxins."
   	icon_state = "pill17"
  -	New()
  -		..()
  -		reagents.add_reagent("anti_toxin", 50)
  +
  +/obj/item/weapon/reagent_containers/pill/antitox/New()
  +	..()
  +	reagents.add_reagent("anti_toxin", 50)
  +
   
   /obj/item/weapon/reagent_containers/pill/tox
   	name = "toxins pill"
   	desc = "Highly toxic."
   	icon_state = "pill5"
  -	New()
  -		..()
  -		reagents.add_reagent("toxin", 50)
  +
  +/obj/item/weapon/reagent_containers/pill/tox/New()
  +	..()
  +	reagents.add_reagent("toxin", 50)
  +
   
   /obj/item/weapon/reagent_containers/pill/cyanide
   	name = "cyanide pill"
   	desc = "Don't swallow this."
   	icon_state = "pill5"
  -	New()
  -		..()
  -		reagents.add_reagent("cyanide", 50)
  +
  +/obj/item/weapon/reagent_containers/pill/cyanide/New()
  +	..()
  +	reagents.add_reagent("cyanide", 50)
  +
   
   /obj/item/weapon/reagent_containers/pill/adminordrazine
   	name = "adminordrazine pill"
   	desc = "It's magic. We don't have to explain it."
   	icon_state = "pill16"
  -	New()
  -		..()
  -		reagents.add_reagent("adminordrazine", 50)
  +
  +/obj/item/weapon/reagent_containers/pill/adminordrazine/New()
  +	..()
  +	reagents.add_reagent("adminordrazine", 50)
  +
   
   /obj/item/weapon/reagent_containers/pill/stox
   	name = "sleeping pill"
   	desc = "Commonly used to treat insomnia."
   	icon_state = "pill8"
  -	New()
  -		..()
  -		reagents.add_reagent("stoxin", 30)
  +/obj/item/weapon/reagent_containers/pill/stox/New()
  +	..()
  +	reagents.add_reagent("stoxin", 30)
  +
   
   /obj/item/weapon/reagent_containers/pill/kelotane
   	name = "kelotane pill"
   	desc = "Used to treat burns."
   	icon_state = "pill11"
  -	New()
  -		..()
  -		reagents.add_reagent("kelotane", 30)
  +
  +/obj/item/weapon/reagent_containers/pill/kelotane/New()
  +	..()
  +	reagents.add_reagent("kelotane", 30)
  +
   
   /obj/item/weapon/reagent_containers/pill/dermaline
   	name = "dermaline pill"
   	desc = "Used to treat severe burns."
   	icon_state = "pill12"
  -	New()
  -		..()
  -		reagents.add_reagent("dermaline", 30)
  +
  +/obj/item/weapon/reagent_containers/pill/dermaline/New()
  +	..()
  +	reagents.add_reagent("dermaline", 30)
  +
   
   /obj/item/weapon/reagent_containers/pill/inaprovaline
   	name = "inaprovaline pill"
   	desc = "Used to stabilize patients."
   	icon_state = "pill20"
  -	New()
  -		..()
  -		reagents.add_reagent("inaprovaline", 30)
  +
  +/obj/item/weapon/reagent_containers/pill/inaprovaline/New()
  +	..()
  +	reagents.add_reagent("inaprovaline", 30)
  +
   
   /obj/item/weapon/reagent_containers/pill/dexalin
   	name = "dexalin pill"
   	desc = "Used to treat oxygen deprivation."
   	icon_state = "pill16"
  -	New()
  -		..()
  -		reagents.add_reagent("dexalin", 30)
  +
  +/obj/item/weapon/reagent_containers/pill/dexalin/New()
  +	..()
  +	reagents.add_reagent("dexalin", 30)
  +
   
   /obj/item/weapon/reagent_containers/pill/bicaridine
   	name = "bicaridine pill"
   	desc = "Used to treat physical injuries."
   	icon_state = "pill18"
  -	New()
  -		..()
  -		reagents.add_reagent("bicaridine", 30)
  +
  +/obj/item/weapon/reagent_containers/pill/bicaridine/New()
  +	..()
  +	reagents.add_reagent("bicaridine", 30)
  +
   
   /obj/item/weapon/reagent_containers/pill/stimulant
   	name = "stimulant pill"
  
positive.code: 	name = "pill"
  	desc = "A tablet or capsule."
  	icon = 'icons/obj/chemical.dmi'
  	icon_state = null
  	item_state = "pill"
  	possible_transfer_amounts = null
  	volume = 50
  
  	New()
  		..()
  		if(!icon_state)
  			icon_state = "pill[rand(1,20)]"
  
  	attack_self(mob/user)
  		return
  
  	attack(mob/M, mob/user, def_zone)
  		if(!canconsume(M, user))
  			return 0
  
  		if(M == user)
  			M << "<span class='notice'>You swallow [src].</span>"
  			M.unEquip(src) //icon update
  			if(reagents.total_volume)
  				reagents.reaction(M, INGEST)
  				spawn(5)
  					reagents.trans_to(M, reagents.total_volume)
  					qdel(src)
  			else
  				qdel(src)
  			return 1
  
  		else if(istype(M, /mob/living/carbon/human) )
  			M.visible_message("<span class='danger'>[user] attempts to force [M] to swallow [src].</span>", \
  								"<span class='userdanger'>[user] attempts to force [M] to swallow [src].</span>")
  
  			if(!do_mob(user, M)) return
  
  			user.unEquip(src) //icon update
  			M.visible_message("<span class='danger'>[user] forces [M] to swallow [src].</span>", \
  								"<span class='userdanger'>[user] forces [M] to swallow [src].</span>")
  
  			add_logs(user, M, "fed", object="[reagentlist(src)]")
  
  			if(reagents.total_volume)
  				reagents.reaction(M, INGEST)
  				spawn(5)
  					reagents.trans_to(M, reagents.total_volume)
  					qdel(src)
  			else
  				qdel(src)
  
  			return 1
  
  		return 0
  
  	afterattack(obj/target, mob/user , proximity)
  		if(!proximity) return
  		if(target.is_open_container() != 0 && target.reagents)
  			if(!target.reagents.total_volume)
  				user << "<span class='notice'>[target] is empty. There's nothing to dissolve [src] in.</span>"
  				return
  			user << "<span class='notice'>You dissolve [src] in [target].</span>"
  			for(var/mob/O in viewers(2, user))	//viewers is necessary here because of the small radius
  				O << "<span class='warning'>[user] slips something into [target].</span>"
  			reagents.trans_to(target, reagents.total_volume)
  			spawn(5)
  				qdel(src)
  
  
  ////////////////////////////////////////////////////////////////////////////////
  
negative.code: 	..()
  	reagents.add_reagent("hyperzine", 10)
  	reagents.add_reagent("ethylredoxrazine", 10)
  	reagents.add_reagent("coffee", 30)