anchor.diff:  	..()
   	update_icon()
   
  -
   /obj/item/ticket_machine_ticket/Destroy()
   	if(owner && source)
   		source.ticket_holders -= owner
  
positive.code: 	to_chat(user, "<span class='notice'>You store linkage information in [I]'s buffer.</span>")
  	return TRUE
  
  /obj/machinery/ticket_machine/emag_act(mob/user) //Emag the ticket machine to dispense burning tickets, as well as randomize its customer number to destroy the HoP's mind.
  	if(obj_flags & EMAGGED)
  		return
  	to_chat(user, "<span class='warning'>You overload [src]'s bureaucratic logic circuitry to its MAXIMUM setting.</span>")
  
negative.code: /obj/machinery/ticket_machine/attack_hand(mob/living/carbon/user)
  	. = ..()
  	if(!ready)
  		to_chat(user,"You press the button, but nothing happens...")
  		return
  	if(ticket_number >= max_number)
  		to_chat(user,"Ticket supply depleted, please refill this unit with a hand labeller refill cartridge!")
  		return
  	if((user in ticket_holders) && !(obj_flags & EMAGGED))
  		to_chat(user, "You already have a ticket!")
  		return
  	playsound(src, 'sound/machines/terminal_insert_disc.ogg', 100, FALSE)
  	ticket_number ++
  	to_chat(user, "<span class='notice'>You take a ticket from [src], looks like you're ticket number #[ticket_number]...</span>")
  	var/obj/item/ticket_machine_ticket/theirticket = new /obj/item/ticket_machine_ticket(get_turf(src))
  	theirticket.name = "Ticket #[ticket_number]"
  	theirticket.maptext = "<font color='#000000'>[ticket_number]</font>"
  