Files
BatrachophrenoandGitHub 5277251959 Tool behaviors port (#21663)
For a robust crafting system, I need a new materials framework.
For a new materials framework, I need to clean up reagents.
To clean up reagents, I need to pare down foods from reagent holders.
To pare down foods from reagent holders, I need to port edibility
components.
To port edibility components, I need to port processing components.
To port processing components, I need to port tool behaviors.

This is all back-end code, no new features or functionality from this.
2026-01-27 08:44:49 +00:00

15 lines
777 B
Plaintext

// Notifies tools that something is happening.
// Successful actions against an atom.
///Called from /atom/proc/tool_act (atom)
#define COMSIG_TOOL_ATOM_ACTED_PRIMARY(tooltype) "tool_atom_acted_[tooltype]"
///Called from /atom/proc/tool_act (atom)
#define COMSIG_TOOL_ATOM_ACTED_ALT(tooltype) "tool_atom_acted_[tooltype]"
//Called when a tool attempts to pry open an airlock. Called from /obj/machinery/door/airlock/try_to_crowbar
#define COMSIG_TOOL_FORCE_OPEN_AIRLOCK "tool_force_open_airlock"
//If this value is returned, prevents the airlock from being forced open.
#define COMPONENT_TOOL_DO_NOT_ALLOW_FORCE_OPEN (1<<0)
//If this value is returned, it means the tool successfully opened the airlock without interruption
#define COMPONENT_TOOL_ALLOW_FORCE_OPEN (1<<1)