anchor.diff:  	if(!bayonet)
   		return
   	bayonet = null
  -	if(knife_overlay)
  -		cut_overlay(knife_overlay, TRUE)
  -		knife_overlay = null
  +	update_icon()
   	return TRUE
   
   /obj/item/gun/proc/clear_gunlight()
  
positive.code: 			return
  		to_chat(user, "<span class='notice'>You attach [K] to [src]'s bayonet lug.</span>")
  		bayonet = K
  		var/state = "bayonet"							//Generic state.
  		if(bayonet.icon_state in icon_states('icons/obj/guns/bayonets.dmi'))		//Snowflake state?
  			state = bayonet.icon_state
  		var/icon/bayonet_icons = 'icons/obj/guns/bayonets.dmi'
  		knife_overlay = mutable_appearance(bayonet_icons, state)
  		knife_overlay.pixel_x = knife_x_offset
  		knife_overlay.pixel_y = knife_y_offset
  		add_overlay(knife_overlay, TRUE)
  	else
  		return ..()
  
  
negative.code: 
  	var/can_flashlight = FALSE //if a flashlight can be added or removed if it already has one.
  	var/obj/item/flashlight/seclite/gun_light
  	var/datum/action/item_action/toggle_gunlight/alight
  	var/gunlight_state = "flight"
  
  	var/can_bayonet = FALSE //if a bayonet can be added or removed if it already has one.
  	var/obj/item/kitchen/knife/bayonet
  	var/knife_x_offset = 0
  	var/knife_y_offset = 0
  
  