anchor.diff:  	icon_state = "synthtongue"
   	hitsound = 'sound/effects/attackblob.ogg'
   	cleanspeed = 80
  +	var/status = 0
   
   /obj/item/soap/tongue/scrubpup
   	cleanspeed = 25 //slightly faster than a mop.
  
positive.code: 
  /obj/item/soap/tongue/attack_self(mob/user)
  	var/mob/living/silicon/robot.R = user
  	if(R.emagged)
  		name = "hacked tongue of doom"
  		desc = "Your tongue has been upgraded successfully. Congratulations."
  		icon = 'icons/mob/dogborg.dmi'
  		icon_state = "syndietongue"
  		cleanspeed = 10 //(nerf'd)tator soap stat
  	else
  		name = "synthetic tongue"
  		desc = "Useful for slurping mess off the floor before affectionally licking the crew members in the face."
  		icon = 'icons/mob/dogborg.dmi'
  		icon_state = "synthtongue"
  		cleanspeed = initial(cleanspeed)
  	update_icon()
  
  /obj/item/soap/tongue/afterattack(atom/target, mob/user, proximity)
  
negative.code: 	else if(isobj(target)) //hoo boy. danger zone man
  		if(istype(target,/obj/item/trash))
  			R.visible_message("[R] nibbles away at \the [target.name].", "<span class='warning'>You begin to nibble away at \the [target.name]...</span>")
  			if(!do_after(R, src.cleanspeed, target = target))
  				return //If they moved away, you can't eat them.
  			to_chat(R, "<span class='notice'>You finish off \the [target.name].</span>")
  			qdel(target)
  			R.cell.give(250)
  			return
  		if(istype(target,/obj/item/stock_parts/cell))
  			R.visible_message("[R] begins cramming \the [target.name] down its throat.", "<span class='warning'>You begin cramming \the [target.name] down your throat...</span>")
  			if(!do_after(R, 50, target = target))
  				return //If they moved away, you can't eat them.
  			to_chat(R, "<span class='notice'>You finish off \the [target.name].</span>")
  			var/obj/item/stock_parts/cell.C = target
  			R.cell.charge = R.cell.charge + (C.charge / 3) //Instant full cell upgrades op idgaf
  			qdel(target)
  			return
  		var/obj/item/I = target //HAHA FUCK IT, NOT LIKE WE ALREADY HAVE A SHITTON OF WAYS TO REMOVE SHIT
  		if(!I.anchored && R.emagged)
  			R.visible_message("[R] begins chewing up \the [target.name]. Looks like it's trying to loophole around its diet restriction!", "<span class='warning'>You begin chewing up \the [target.name]...</span>")
  			if(!do_after(R, 100, target = I)) //Nerf dat time yo
  				return //If they moved away, you can't eat them.
  			visible_message("<span class='warning'>[R] chews up \the [target.name] and cleans off the debris!</span>")
  			to_chat(R, "<span class='notice'>You finish off \the [target.name].</span>")
  			qdel(I)
  			R.cell.give(500)
  			return
  		R.visible_message("[R] begins to lick \the [target.name] clean...", "<span class='notice'>You begin to lick \the [target.name] clean...</span>")
  	else if(ishuman(target))
  		var/mob/living/L = target
  		if(status == 0 && check_zone(R.zone_selected) == "head")
  			R.visible_message("<span class='warning'>\the [R] affectionally licks \the [L]'s face!</span>", "<span class='notice'>You affectionally lick \the [L]'s face!</span>")
  			playsound(src.loc, 'sound/effects/attackblob.ogg', 50, 1)
  			if(istype(L) && L.fire_stacks > 0)
  				L.adjust_fire_stacks(-10)
  			return
  		else if(status == 0)
  			R.visible_message("<span class='warning'>\the [R] affectionally licks \the [L]!</span>", "<span class='notice'>You affectionally lick \the [L]!</span>")
  			playsound(src.loc, 'sound/effects/attackblob.ogg', 50, 1)
  			if(istype(L) && L.fire_stacks > 0)
  				L.adjust_fire_stacks(-10)
  			return
  		else
  			if(R.cell.charge <= 800)
  				to_chat(R, "Insufficent Power!")
  				return
  			L.Stun(4) // normal stunbaton is force 7 gimme a break good sir!
  			L.Knockdown(80)
  			L.apply_effect(EFFECT_STUTTER, 4)
  			L.visible_message("<span class='danger'>[R] has shocked [L] with its tongue!</span>", \
  								"<span class='userdanger'>[R] has shocked you with its tongue!</span>")
  			playsound(loc, 'sound/weapons/Egloves.ogg', 50, 1, -1)
  			R.cell.use(666)
  			log_combat(R, L, "tongue stunned")
  
  	else if(istype(target, /obj/structure/window))
  		R.visible_message("[R] begins to lick \the [target.name] clean...", "<span class='notice'>You begin to lick \the [target.name] clean...</span>")
  		if(do_after(user, src.cleanspeed, target = target))
  			to_chat(user, "<span class='notice'>You clean \the [target.name].</span>")
  			target.remove_atom_colour(WASHABLE_COLOUR_PRIORITY)
  			target.set_opacity(initial(target.opacity))
  	else
  		R.visible_message("[R] begins to lick \the [target.name] clean...", "<span class='notice'>You begin to lick \the [target.name] clean...</span>")
  		if(do_after(user, src.cleanspeed, target = target))
  			to_chat(user, "<span class='notice'>You clean \the [target.name].</span>")
  			var/obj/effect/decal/cleanable/C = locate() in target
  			qdel(C)
  			target.remove_atom_colour(WASHABLE_COLOUR_PRIORITY)
  			SEND_SIGNAL(target, COMSIG_COMPONENT_CLEAN_ACT, CLEAN_MEDIUM)
  			target.wash_cream()
  	return
  
  
  