anchor.diff:  		src.updateUsrDialog()
   		icon_state = "mixer1"
   
  -	else if(istype(B, /obj/item/weapon/storage/pill_bottle))
  +	else if(!condi && istype(B, /obj/item/weapon/storage/pill_bottle))
   
   		if(src.loaded_pill_bottle)
   			user << "A pill bottle is already loaded into the machine."
  
positive.code: /obj/machinery/chem_master/attack_hand(mob/user as mob)
  	if(stat & BROKEN)
  		return
  	user.set_machine(src)
  	var/dat = ""
  	if(!beaker)
  		dat = "Please insert beaker.<BR>"
  		if(src.loaded_pill_bottle)
  			dat += "<A href='?src=\ref[src];ejectp=1'>Eject Pill Bottle \[[loaded_pill_bottle.contents.len]/[loaded_pill_bottle.storage_slots]\]</A><BR><BR>"
  		else
  			dat += "No pill bottle inserted.<BR><BR>"
  		dat += "<A href='?src=\ref[src];close=1'>Close</A>"
  	else
  		var/datum/reagents/R = beaker:reagents
  		dat += "<A href='?src=\ref[src];eject=1'>Eject beaker and Clear Buffer</A><BR>"
  		if(src.loaded_pill_bottle)
  			dat += "<A href='?src=\ref[src];ejectp=1'>Eject Pill Bottle \[[loaded_pill_bottle.contents.len]/[loaded_pill_bottle.storage_slots]\]</A><BR><BR>"
  		else
  			dat += "No pill bottle inserted.<BR><BR>"
  		if(!R.total_volume)
  			dat += "Beaker is empty."
  		else
  			dat += "Add to buffer:<BR>"
  			for(var/datum/reagent/G in R.reagent_list)
  				dat += "[G.name] , [G.volume] Units - "
  				dat += "<A href='?src=\ref[src];analyze=1;desc=[G.description];name=[G.name]'>(Analyze)</A> "
  				dat += "<A href='?src=\ref[src];add=[G.id];amount=1'>(1)</A> "
  				dat += "<A href='?src=\ref[src];add=[G.id];amount=5'>(5)</A> "
  				dat += "<A href='?src=\ref[src];add=[G.id];amount=10'>(10)</A> "
  				dat += "<A href='?src=\ref[src];add=[G.id];amount=[G.volume]'>(All)</A> "
  				dat += "<A href='?src=\ref[src];addcustom=[G.id]'>(Custom)</A><BR>"
  
  		dat += "<HR>Transfer to <A href='?src=\ref[src];toggle=1'>[(!mode ? "disposal" : "beaker")]:</A><BR>"
  		if(reagents.total_volume)
  			for(var/datum/reagent/N in reagents.reagent_list)
  				dat += "[N.name] , [N.volume] Units - "
  				dat += "<A href='?src=\ref[src];analyze=1;desc=[N.description];name=[N.name]'>(Analyze)</A> "
  				dat += "<A href='?src=\ref[src];remove=[N.id];amount=1'>(1)</A> "
  				dat += "<A href='?src=\ref[src];remove=[N.id];amount=5'>(5)</A> "
  				dat += "<A href='?src=\ref[src];remove=[N.id];amount=10'>(10)</A> "
  				dat += "<A href='?src=\ref[src];remove=[N.id];amount=[N.volume]'>(All)</A> "
  				dat += "<A href='?src=\ref[src];removecustom=[N.id]'>(Custom)</A><BR>"
  		else
  			dat += "Empty<BR>"
  		if(!condi)
  			dat += "<HR><BR><A href='?src=\ref[src];createpill=1;many=0'>Create pill (50 units max)</A><BR>"
  			dat += "<A href='?src=\ref[src];createpill=1;many=1'>Create pills (10 pills max)</A><BR><BR>"
  			dat += "<HR><BR><A href='?src=\ref[src];createpatch=1;many=0'>Create patch (50 units max)</A><BR>"
  			dat += "<A href='?src=\ref[src];createpatch=1;many=1'>Create patches (10 patches max)</A><BR><BR>"
  			dat += "<A href='?src=\ref[src];createbottle=1'>Create bottle (30 units max)</A>"
  		else
  			dat += "<HR><BR><A href='?src=\ref[src];createpill=1'>Create pack (10 units max)</A><BR>"
  			dat += "<A href='?src=\ref[src];createbottle=1'>Create bottle (50 units max)</A>"
  	if(!condi)
  		user << browse("<TITLE>Chemmaster 3000</TITLE>Chemmaster menu:<BR><BR>[dat]", "window=chem_master;size=575x400")
  	else
  		user << browse("<TITLE>Condimaster 3000</TITLE>Condimaster menu:<BR><BR>[dat]", "window=chem_master;size=575x400")
  	onclose(user, "chem_master")
  	return
  
  /obj/machinery/chem_master/proc/isgoodnumber(var/num)
  
negative.code: 		var/datum/reagents/R = beaker:reagents
  		if (href_list["analyze"])
  			var/dat = ""
  			dat += "<B>[condi ? "Condiment" : "Chemical"] information:</B><BR><BR>"
  			dat += "<B>Name:</B><BR>[href_list["name"]]<BR><BR>"
  			dat += "<B>Description:</B><BR>[href_list["desc"]]<BR><BR><BR>"
  			dat += "<A href='?src=\ref[src];main=1'>Back</A>"
  			var/datum/browser/popup = new(usr, "chem_master", name)
  			popup.set_content(dat)
  			popup.set_title_image(usr.browse_rsc_icon(src.icon, src.icon_state))
  			popup.open(1)
  			return
  
  		else if (href_list["add"])
  