Files
Bubberstation/code/datums/actions/items/vortex_recall.dm
SkyratBot 15faaa54f5 [MIRROR] Rewrites how action buttons icons are generated, makes them layer nicer. Allows observers to see a mob's action buttons. [MDB IGNORE] (#17907)
* Rewrites how action buttons icons are generated, makes them layer nicer. Allows observers to see a mob's action buttons.

* conflicts

* Modular!

* update modular

* icon icon icon icon icon

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com>
Co-authored-by: Funce <funce.973@gmail.com>
2022-12-16 16:01:41 +00:00

16 lines
648 B
Plaintext

/datum/action/item_action/vortex_recall
name = "Vortex Recall"
desc = "Recall yourself, and anyone nearby, to an attuned hierophant beacon at any time.<br>If the beacon is still attached, will detach it."
button_icon = 'icons/mob/actions/actions_items.dmi'
button_icon_state = "vortex_recall"
/datum/action/item_action/vortex_recall/IsAvailable(feedback = FALSE)
var/area/current_area = get_area(target)
if(!current_area || current_area.area_flags & NOTELEPORT)
return FALSE
if(istype(target, /obj/item/hierophant_club))
var/obj/item/hierophant_club/teleport_stick = target
if(teleport_stick.teleporting)
return FALSE
return ..()