anchor.diff:  	..()
   
   	//Sprite update for when a parrot gets pulled
  -	if(pulledby && stat == CONSCIOUS)
  +	if(pulledby && !stat && parrot_state != PARROT_WANDER)
  +		if(buckled)
  +			buckled.unbuckle_mob(src, TRUE)
  +			buckled = null
   		icon_state = icon_living
  -		if(!client)
  -			parrot_state = PARROT_WANDER
  +		parrot_state = PARROT_WANDER
  +		pixel_x = initial(pixel_x)
  +		pixel_y = initial(pixel_y)
   		return
   
   
  
positive.code: 	if(!H)
  		return
  	forceMove(get_turf(H))
  	H.buckle_mob(src, force=1)
  	pixel_y = 9
  	pixel_x = pick(-8,8) //pick left or right shoulder
  	icon_state = icon_sit
  	parrot_state = PARROT_PERCH
  	to_chat(src, "<span class='notice'>You sit on [H]'s shoulder.</span>")
  
  
  /mob/living/simple_animal/parrot/proc/toggle_mode()
  
negative.code: 				if(istype(AM, perch_path))
  					src.forceMove(AM.loc)
  					icon_state = icon_sit
  					parrot_state = PARROT_PERCH
  					return
  	to_chat(src, "<span class='warning'>There is no perch nearby to sit on!</span>")
  	return
  
  /mob/living/simple_animal/parrot/Moved(oldLoc, dir)
  	. = ..()
  	if(. && !stat && client && parrot_state == PARROT_PERCH)
  		parrot_state = PARROT_WANDER
  		icon_state = icon_living
  		pixel_x = initial(pixel_x)
  		pixel_y = initial(pixel_y)
  
  /mob/living/simple_animal/parrot/proc/perch_mob_player()
  	set name = "Sit on Human's Shoulder"
  