Goonstation 13 - Modules - TypesDefine Details

_std/macros/flags.dm

HAS_FLAGchecks if a flags variable (x) has a specific bitflag
ADD_FLAGadds a flag to a flags variable (x). if the flag is already added, nothing happens
REMOVE_FLAGremoves a flag from a flags variable (x). if the flag is not in the flags variable, nothing happens
TOGGLE_FLAGtoggles a flag in a flags variable (x)

Define Details

ADD_FLAG

adds a flag to a flags variable (x). if the flag is already added, nothing happens

HAS_FLAG

checks if a flags variable (x) has a specific bitflag

REMOVE_FLAG

removes a flag from a flags variable (x). if the flag is not in the flags variable, nothing happens

TOGGLE_FLAG

toggles a flag in a flags variable (x)