code/__DEFINES/actions.dm
AB_CHECK_HANDS_BLOCKED | Action button checks if hands are unusable |
---|---|
AB_CHECK_IMMOBILE | Action button checks if user is immobile |
AB_CHECK_LYING | Action button checks if user is resting |
AB_CHECK_CONSCIOUS | Action button checks if user is conscious |
AB_CHECK_INCAPACITATED | Action button checks if user is incapacitated |
AB_CHECK_PHASED | Action button checks if user is jaunting |
AB_CHECK_OPEN_TURF | Action button checks if user is not on an open turf |
TRIGGER_SECONDARY_ACTION | Action button triggered with right click |
TRIGGER_FORCE_AVAILABLE | Action triggered to ignore any availability checks |
PANEL_DISPLAY_PANEL | The stat panel the action is displayed in. |
PANEL_DISPLAY_STATUS | The status shown in the stat panel. Can be stuff like "ready", "on cooldown", "active", "charges", "charge cost", etc. |
PANEL_DISPLAY_NAME | The name shown in the stat panel. |
GRANT_ACTION | Takes in a typepath of a /datum/action and adds it to src .
Only useful if you want to add the action and never desire to reference it again ever. |
Define Details
AB_CHECK_CONSCIOUS
Action button checks if user is conscious
AB_CHECK_HANDS_BLOCKED
Action button checks if hands are unusable
AB_CHECK_IMMOBILE
Action button checks if user is immobile
AB_CHECK_INCAPACITATED
Action button checks if user is incapacitated
AB_CHECK_LYING
Action button checks if user is resting
AB_CHECK_OPEN_TURF
Action button checks if user is not on an open turf
AB_CHECK_PHASED
Action button checks if user is jaunting
GRANT_ACTION
Takes in a typepath of a /datum/action
and adds it to src
.
Only useful if you want to add the action and never desire to reference it again ever.
PANEL_DISPLAY_NAME
The name shown in the stat panel.
PANEL_DISPLAY_PANEL
The stat panel the action is displayed in.
PANEL_DISPLAY_STATUS
The status shown in the stat panel. Can be stuff like "ready", "on cooldown", "active", "charges", "charge cost", etc.
TRIGGER_FORCE_AVAILABLE
Action triggered to ignore any availability checks
TRIGGER_SECONDARY_ACTION
Action button triggered with right click