Adds action button for nian wings (#31563)

This commit is contained in:
PollardTheDragon
2026-03-02 19:02:56 +00:00
committed by GitHub
parent d1f4af2703
commit b0ee52c693
@@ -82,6 +82,8 @@
..()
var/datum/action/innate/cocoon/cocoon = new()
cocoon.Grant(H)
var/datum/action/innate/toggle_wings/wings_toggle = new()
wings_toggle.Grant(H)
RegisterSignal(H, COMSIG_LIVING_FIRE_TICK, PROC_REF(check_burn_wings))
RegisterSignal(H, COMSIG_LIVING_AHEAL, PROC_REF(on_aheal))
RegisterSignal(H, COMSIG_HUMAN_CHANGE_BODY_ACCESSORY, PROC_REF(on_change_body_accessory))
@@ -91,6 +93,8 @@
..()
for(var/datum/action/innate/cocoon/cocoon in H.actions)
cocoon.Remove(H)
for(var/datum/action/innate/toggle_wings/wings_toggle in H.actions)
wings_toggle.Remove(H)
UnregisterSignal(H, COMSIG_LIVING_FIRE_TICK)
UnregisterSignal(H, COMSIG_LIVING_AHEAL)
UnregisterSignal(H, COMSIG_HUMAN_CHANGE_BODY_ACCESSORY)
@@ -194,6 +198,16 @@
else
to_chat(H, SPAN_WARNING("You need to hold still in order to weave a cocoon!"))
/datum/action/innate/toggle_wings
name = "Toggle Wings"
desc = "Open or close your wings! While your wings are open, you can fly in pressurized 0G environments!"
check_flags = AB_CHECK_RESTRAINED | AB_CHECK_STUNNED | AB_CHECK_CONSCIOUS
button_icon = 'icons/mob/sprite_accessories/moth/moth_wings.dmi'
button_icon_state = "monarch_BEHIND"
/datum/action/innate/toggle_wings/Activate()
owner.emote("wings")
/**
* Removes moth from cocoon, restores burnt wings
*/