Files
CHOMPStation2/code/modules/mob/living/silicon/robot/drone/drone_abilities.dm
CHOMPStation2StaffMirrorBot 16d5b45148 [MIRROR] intent cleanup (#9778)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-01-03 21:57:25 +01:00

36 lines
1.1 KiB
Plaintext

// DRONE ABILITIES
/mob/living/silicon/robot/drone/verb/set_mail_tag()
set name = "Set Mail Tag"
set desc = "Tag yourself for delivery through the disposals system."
set category = "Abilities.Silicon"
var/new_tag = tgui_input_list(usr, "Select the desired destination.", "Set Mail Tag", GLOB.tagger_locations)
if(!new_tag)
mail_destination = ""
return
to_chat(src, span_notice("You configure your internal beacon, tagging yourself for delivery to '[new_tag]'."))
mail_destination = new_tag
//Auto flush if we use this verb inside a disposal chute.
var/obj/machinery/disposal/D = src.loc
if(istype(D))
to_chat(src, span_notice("\The [D] acknowledges your signal."))
D.flush_count = D.flush_every_ticks
return
/mob/living/silicon/robot/drone/MouseDrop(var/atom/over_object)
var/mob/living/carbon/human/H = over_object
if(!istype(H) || !Adjacent(H))
return ..()
if(H.a_intent == I_GRAB && hat && !(H.l_hand && H.r_hand))
H.put_in_hands(hat)
H.visible_message(span_danger("\The [H] removes \the [src]'s [hat]."))
hat = null
update_icon()
return
else
return ..()