anchor.diff:  
   	var/process_type //Determines what to do when process_scan() recieves a target. See process_scan() for details.
   	var/targetdirection
  -	var/amount = 10
   	var/replacetiles = 0
  -	var/eattiles = 0
  -	var/maketiles = 0
   	var/fixfloors = 0
   	var/autotile = 0
   	var/nag_on_empty = 1
  
positive.code: 				F.burnt = 0
  				F.ChangeTurf(/turf/simulated/floor/plasteel)
  				mode = BOT_IDLE
  				amount -= 1
  				update_icon()
  				anchored = 0
  				target = null
  
  /mob/living/simple_animal/bot/floorbot/proc/eattile(obj/item/stack/tile/plasteel/T)
  	if(!istype(T, /obj/item/stack/tile/plasteel))
  		return
  	visible_message("<span class='notice'>[src] begins to collect tiles.</span>")
  	mode = BOT_REPAIRING
  	spawn(20)
  		if(isnull(T))
  			target = null
  			mode = BOT_IDLE
  			return
  		if(amount + T.amount > 50)
  			var/i = 50 - amount
  			amount += i
  			T.amount -= i
  		else
  			amount += T.amount
  			qdel(T)
  		update_icon()
  		target = null
  		mode = BOT_IDLE
  
  /mob/living/simple_animal/bot/floorbot/proc/maketile(obj/item/stack/sheet/metal/M)
  	if(!istype(M, /obj/item/stack/sheet/metal))
  		return
  	visible_message("<span class='notice'>[src] begins to create tiles.</span>")
  	mode = BOT_REPAIRING
  	spawn(20)
  		if(isnull(M))
  			target = null
  			mode = BOT_IDLE
  			return
  		var/obj/item/stack/tile/plasteel/T = new /obj/item/stack/tile/plasteel
  		T.amount = 4
  		T.loc = M.loc
  		if(M.amount > 1)
  			M.amount--
  		else
  			qdel(M)
  		target = null
  		mode = BOT_IDLE
  
  /mob/living/simple_animal/bot/floorbot/update_icon()
  	if(amount > 0)
  		icon_state = "floorbot[on]"
  	else
  		icon_state = "floorbot[on]e"
  
  /mob/living/simple_animal/bot/floorbot/explode()
  	on = 0
  
negative.code: 	dat += "<TT><B>Floor Repairer Controls v1.1</B></TT><BR><BR>"
  	dat += "Status: <A href='?src=\ref[src];power=1'>[on ? "On" : "Off"]</A><BR>"
  	dat += "Maintenance panel panel is [open ? "opened" : "closed"]<BR>"
  	dat += "Behvaiour controls are [locked ? "locked" : "unlocked"]<BR>"
  	if(!locked || issilicon(user) || IsAdminGhost(user))
  		dat += "Add tiles to new hull plating: <A href='?src=\ref[src];operation=autotile'>[autotile ? "Yes" : "No"]</A><BR>"
  		dat += "Replace floor tiles: <A href='?src=\ref[src];operation=replace'>[replacetiles ? "Yes" : "No"]</A><BR>"
  		dat += "Repair damaged tiles and platings: <A href='?src=\ref[src];operation=fix'>[fixfloors ? "Yes" : "No"]</A><BR>"
  		dat += "Traction Magnets: <A href='?src=\ref[src];operation=anchor'>[anchored ? "Engaged" : "Disengaged"]</A><BR>"
  		dat += "Patrol Station: <A href='?src=\ref[src];operation=patrol'>[auto_patrol ? "Yes" : "No"]</A><BR>"
  