/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/tools.dm

TOOL_RUSTSCRAPERCan be used to scrape rust off an any atom; which will result in the Rust Component being qdel'd
MIN_TOOL_SOUND_DELAYIf delay between the start and the end of tool operation is less than MIN_TOOL_SOUND_DELAY, tool sound is only played when op is started. If not, it's played twice.
MIN_TOOL_OPERATING_DELAYMinimum delay for operating sound. Prevent overlaps and overhand sound.
ITEM_INTERACT_SUCCESSReturn when an item interaction is successful. This cancels the rest of the chain entirely and indicates success.
ITEM_INTERACT_BLOCKINGReturn to prevent the rest of the attack chain from being executed / preventing the item user from thwacking the target. Similar to ITEM_INTERACT_SUCCESS, but does not necessarily indicate success.
ITEM_INTERACT_FAILUREOnly for people who get confused by the naming scheme
ITEM_INTERACT_SKIP_TO_ATTACKReturn to skip the rest of the interaction chain, going straight to attack.
ITEM_INTERACT_ANY_BLOCKERCombination flag for any item interaction that blocks the rest of the attack chain
SHOULD_SKIP_INTERACTIONA helper for checking if an item interaction should be skipped. This is only used explicitly because some interactions may not want to ever be skipped.
DECAL_INFO_ICON_STATEIcon state to paint
DECAL_INFO_COLORColor to paint the decal with
DECAL_INFO_DIRDir of the decal sprite
DECAL_INFO_ALPHAAlpha of the decal

Define Details

DECAL_INFO_ALPHA

Alpha of the decal

DECAL_INFO_COLOR

Color to paint the decal with

DECAL_INFO_DIR

Dir of the decal sprite

DECAL_INFO_ICON_STATE

Icon state to paint

ITEM_INTERACT_ANY_BLOCKER

Combination flag for any item interaction that blocks the rest of the attack chain

ITEM_INTERACT_BLOCKING

Return to prevent the rest of the attack chain from being executed / preventing the item user from thwacking the target. Similar to ITEM_INTERACT_SUCCESS, but does not necessarily indicate success.

ITEM_INTERACT_FAILURE

Only for people who get confused by the naming scheme

ITEM_INTERACT_SKIP_TO_ATTACK

Return to skip the rest of the interaction chain, going straight to attack.

ITEM_INTERACT_SUCCESS

Return when an item interaction is successful. This cancels the rest of the chain entirely and indicates success.

MIN_TOOL_OPERATING_DELAY

Minimum delay for operating sound. Prevent overlaps and overhand sound.

MIN_TOOL_SOUND_DELAY

If delay between the start and the end of tool operation is less than MIN_TOOL_SOUND_DELAY, tool sound is only played when op is started. If not, it's played twice.

SHOULD_SKIP_INTERACTION

A helper for checking if an item interaction should be skipped. This is only used explicitly because some interactions may not want to ever be skipped.

TOOL_RUSTSCRAPER

Can be used to scrape rust off an any atom; which will result in the Rust Component being qdel'd