anchor.diff:  //This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31
   
  -var/global/list/autolathe_recipes = list( \
  -		/* screwdriver removed*/ \
  -		new /obj/item/weapon/reagent_containers/glass/bucket(), \
  -		new /obj/item/weapon/crowbar(), \
  -		new /obj/item/device/flashlight(), \
  -		new /obj/item/weapon/extinguisher(), \
  -		new /obj/item/device/multitool(), \
  -		new /obj/item/device/analyzer(), \
  -		new /obj/item/device/t_scanner(), \
  -		new /obj/item/weapon/weldingtool(), \
  -		new /obj/item/weapon/screwdriver(), \
  -		new /obj/item/weapon/wirecutters(), \
  -		new /obj/item/weapon/wrench(), \
  -		new /obj/item/clothing/head/welding(), \
  -		new /obj/item/weapon/stock_parts/console_screen(), \
  -		new /obj/item/weapon/airlock_electronics(), \
  -		new /obj/item/weapon/airalarm_electronics(), \
  -		new /obj/item/weapon/firealarm_electronics(), \
  -		new /obj/item/device/pipe_painter(), \
  -		new /obj/item/stack/sheet/metal(), \
  -		new /obj/item/stack/sheet/glass(), \
  -		new /obj/item/stack/sheet/rglass(), \
  -		new /obj/item/stack/rods(), \
  -		new /obj/item/weapon/rcd_ammo(), \
  -		new /obj/item/weapon/kitchenknife(), \
  -		new /obj/item/weapon/scalpel(), \
  -		new /obj/item/weapon/circular_saw(), \
  -		new /obj/item/weapon/surgicaldrill(),\
  -		new /obj/item/weapon/retractor(),\
  -		new /obj/item/weapon/cautery(),\
  -		new /obj/item/weapon/hemostat(),\
  -		new /obj/item/weapon/reagent_containers/glass/beaker(), \
  -		new /obj/item/weapon/reagent_containers/glass/beaker/large(), \
  -		new /obj/item/ammo_casing/shotgun/beanbag(), \
  -		new /obj/item/ammo_box/c38(), \
  -		new /obj/item/device/taperecorder/empty(), \
  -		new /obj/item/device/tape(), \
  -		new /obj/item/device/assembly/igniter(), \
  -		new /obj/item/device/assembly/signaler(), \
  -		new /obj/item/device/radio/headset(), \
  -		new /obj/item/device/radio/off(), \
  -		new /obj/item/device/assembly/infra(), \
  -		new /obj/item/device/assembly/timer(), \
  -		new /obj/item/device/assembly/voice(), \
  -		new /obj/item/weapon/light/tube(), \
  -		new /obj/item/weapon/light/bulb(), \
  -		new /obj/item/weapon/camera_assembly(), \
  -		new /obj/item/newscaster_frame(), \
  -		new /obj/item/weapon/reagent_containers/syringe(), \
  -		new /obj/item/device/assembly/prox_sensor(), \
  -	)
  -
  -var/global/list/autolathe_recipes_hidden = list( \
  -		new /obj/item/weapon/flamethrower/full(), \
  -		new /obj/item/weapon/rcd(), \
  -		new /obj/item/device/electropack(), \
  -		new /obj/item/device/radio/security(), \
  -		new /obj/item/weapon/weldingtool/largetank(), \
  -		new /obj/item/weapon/restraints/handcuffs(), \
  -		new /obj/item/ammo_box/a357(), \
  -		new /obj/item/ammo_casing/shotgun(), \
  -		new /obj/item/ammo_casing/shotgun/buckshot(), \
  -		new /obj/item/ammo_casing/shotgun/dart(), \
  -		new /obj/item/ammo_casing/shotgun/incendiary(), \
  -		/* new /obj/item/weapon/shield/riot(), */ \
  +var/global/list/autolathe_category_list = list( \
  +		"Tools"=list( \
  +			new /obj/item/weapon/reagent_containers/glass/bucket(), \
  +			new /obj/item/weapon/crowbar(), \
  +			new /obj/item/device/flashlight(), \
  +			new /obj/item/weapon/extinguisher(), \
  +			new /obj/item/device/multitool(), \
  +			new /obj/item/device/analyzer(), \
  +			new /obj/item/device/t_scanner(), \
  +			new /obj/item/weapon/weldingtool(), \
  +			new /obj/item/weapon/screwdriver(), \
  +			new /obj/item/weapon/wirecutters(), \
  +			new /obj/item/weapon/wrench(), \
  +			new /obj/item/device/pipe_painter(), \
  +		), \
  +		"Wearable"=list( \
  +			new /obj/item/clothing/head/welding(), \
  +			new /obj/item/device/radio/headset(), \
  +		), \
  +		"Electronics / Parts"=list( \
  +			new /obj/item/weapon/stock_parts/console_screen(), \
  +			new /obj/item/weapon/airlock_electronics(), \
  +			new /obj/item/weapon/airalarm_electronics(), \
  +			new /obj/item/weapon/firealarm_electronics(), \
  +			new /obj/item/newscaster_frame(), \
  +			new /obj/item/weapon/camera_assembly(), \
  +			new /obj/item/device/taperecorder/empty(), \
  +			new /obj/item/device/assembly/igniter(), \
  +			new /obj/item/device/assembly/signaler(), \
  +			new /obj/item/device/radio/off(), \
  +			new /obj/item/device/assembly/infra(), \
  +			new /obj/item/device/assembly/timer(), \
  +			new /obj/item/device/assembly/voice(), \
  +			new /obj/item/device/assembly/prox_sensor(), \
  +		), \
  +		"Medical"=list( \
  +			new /obj/item/weapon/scalpel(), \
  +			new /obj/item/weapon/circular_saw(), \
  +			new /obj/item/weapon/surgicaldrill(),\
  +			new /obj/item/weapon/retractor(),\
  +			new /obj/item/weapon/cautery(),\
  +			new /obj/item/weapon/hemostat(),\
  +			new /obj/item/weapon/reagent_containers/syringe(), \
  +		), \
  +		"Science"=list( \
  +			new /obj/item/weapon/reagent_containers/glass/beaker(), \
  +			new /obj/item/weapon/reagent_containers/glass/beaker/large(), \
  +		), \
  +		"Culinary"=list( \
  +			new /obj/item/weapon/kitchenknife(), \
  +		), \
  +		"Consumables / Ammo"=list( \
  +			new /obj/item/weapon/rcd_ammo(), \
  +			new /obj/item/ammo_casing/shotgun/beanbag(), \
  +			new /obj/item/ammo_box/c38(), \
  +			new /obj/item/device/tape(), \
  +			new /obj/item/weapon/light/tube(), \
  +			new /obj/item/weapon/light/bulb(), \
  +		), \
  +		"Raw Materials"=list( \
  +			new /obj/item/stack/sheet/metal(), \
  +			new /obj/item/stack/sheet/glass(), \
  +			new /obj/item/stack/sheet/rglass(), \
  +			new /obj/item/stack/rods(), \
  +		), \
  +		"Sh0#t~cIR$&It... Err"=list( \
  +			new /obj/item/weapon/flamethrower/full(), \
  +			new /obj/item/weapon/rcd(), \
  +			new /obj/item/device/electropack(), \
  +			new /obj/item/device/radio/security(), \
  +			new /obj/item/weapon/weldingtool/largetank(), \
  +			new /obj/item/weapon/restraints/handcuffs(), \
  +			new /obj/item/ammo_box/a357(), \
  +			new /obj/item/ammo_casing/shotgun(), \
  +			new /obj/item/ammo_casing/shotgun/buckshot(), \
  +			new /obj/item/ammo_casing/shotgun/dart(), \
  +			new /obj/item/ammo_casing/shotgun/incendiary(), \
  +			/* new /obj/item/weapon/shield/riot(), */ \
  +		)
   	)
   
   /obj/machinery/autolathe
  
positive.code: 		prod_coeff += M.rating - 1
  
  /obj/machinery/autolathe/proc/regular_win(mob/user)
  	var/dat
  	if(!panel_open)
  		var/coeff = 2 ** prod_coeff
  		dat = "<div class='statusDisplay'><b>Metal amount:</b> [src.m_amount] / [max_m_amount] cm<sup>3</sup><br>"
  		dat += "<b>Glass amount:</b> [src.g_amount] / [max_g_amount] cm<sup>3</sup><hr>"
  		var/list/objs = list()
  		objs += src.L
  		if(src.hacked)
  			objs += src.LL
  		for(var/obj/t in objs)
  			if(disabled || m_amount<t.m_amt || g_amount<t.g_amt)
  				dat += replacetext("<span class='linkOff'>[t]</span>", "The ", "")
  			else
  				dat += replacetext("<a href='?src=\ref[src];make=\ref[t]'>[t]</a>", "The ", "")
  
  			if(istype(t, /obj/item/stack))
  				var/obj/item/stack/S = t
  				var/max_multiplier = min(S.max_amount, S.m_amt?round(m_amount/S.m_amt):INFINITY, S.g_amt?round(g_amount/S.g_amt):INFINITY)
  				if (max_multiplier>10 && !disabled)
  					dat += " <a href='?src=\ref[src];make=\ref[t];multiplier=[10]'>x[10]</a>"
  				if (max_multiplier>25 && !disabled)
  					dat += " <a href='?src=\ref[src];make=\ref[t];multiplier=[25]'>x[25]</a>"
  				if (max_multiplier>1 && !disabled)
  					dat += " <a href='?src=\ref[src];make=\ref[t];multiplier=[max_multiplier]'>x[max_multiplier]</a>"
  				dat += " [t.m_amt] m / [t.g_amt] g"
  			else
  				dat += " [t.m_amt/coeff] m / [t.g_amt/coeff] g"
  			dat += "<br>"
  		dat += "</span>"
  	else
  		dat = wires.GetInteractWindow()
  
  
negative.code: 	var/busy = 0
  	var/prod_coeff
  	var/datum/wires/autolathe/wires = null
  	var/dat
  	var/category = null
  
  /obj/machinery/autolathe/New()
  	..()
  