code/__DEFINES/dcs/flags.dm ![code/__DEFINES/dcs/flags.dm0](git.png)
COMPONENT_INCOMPATIBLE | Return this from /datum/component/Initialize or datum/component/OnTransfer to have the component be deleted if it's applied to an incorrect type.
parent must not be modified if this is to be returned.
This will be noted in the runtime logs |
---|---|
COMPONENT_NOTRANSFER | Returned in PostTransfer to prevent transfer, similar to COMPONENT_INCOMPATIBLE |
ELEMENT_INCOMPATIBLE | Return value to cancel attaching |
ELEMENT_DETACH | Causes the detach proc to be called when the host object is being deleted |
ELEMENT_BESPOKE | Only elements created with the same arguments given after id_arg_index share an element instance
The arguments are the same when the text and number values are the same and all other values have the same ref |
COMPONENT_DUPE_HIGHLANDER | old component is deleted (default) |
COMPONENT_DUPE_ALLOWED | duplicates allowed |
COMPONENT_DUPE_UNIQUE | new component is deleted |
COMPONENT_DUPE_UNIQUE_PASSARGS | old component is given the initialization args of the new |
COMPONENT_DUPE_SELECTIVE | each component of the same type is consulted as to whether the duplicate should be allowed |
ID_COMPONENT_DEL_ON_IDENTIFY | / Identification //// Delete on successful broad identification (so the main way we "uncover" how an object works, since this won't be on it to obfuscate it) |
ID_COMPONENT_DECONSTRUCTOR_DEEPSCANNED | We've already been successfully deepscanned by a deconstructive analyzer |
ID_COMPONENT_EFFECT_NO_ACTIONS | Block user from getting actions if they don't know how to use this. Triggered on equip. |
ID_COMPONENT_IDENTIFY_WITH_DECONSTRUCTOR | Can be identified in a deconstructive analyzer |
ID_COMPONENT_KNOWLEDGE_NONE | Has no knowledge, default |
ID_COMPONENT_KNOWLEDGE_FULL | Has full knowledge |
COMBAT_MODE_TOGGLED | The user wants combat mode on |
COMBAT_MODE_ACTIVE | combat mode is active. |
COMBAT_MODE_INACTIVE | combat mode is not active |
UPDATE_NAME | Update the atom's name |
UPDATE_DESC | Update the atom's desc |
UPDATE_ICON_STATE | Update the atom's icon state |
UPDATE_OVERLAYS | Update the atom's overlays |
UPDATE_GREYSCALE | Update the atom's greyscaling |
UPDATE_SMOOTHING | Update the atom's smoothing. (More accurately, queue it for an update) |
UPDATE_ICON | Update the atom's icon |
Define Details
COMBAT_MODE_ACTIVE ![code/__DEFINES/dcs/flags.dm 83](git.png)
combat mode is active.
COMBAT_MODE_INACTIVE ![code/__DEFINES/dcs/flags.dm 85](git.png)
combat mode is not active
COMBAT_MODE_TOGGLED ![code/__DEFINES/dcs/flags.dm 81](git.png)
The user wants combat mode on
COMPONENT_DUPE_ALLOWED ![code/__DEFINES/dcs/flags.dm 24](git.png)
duplicates allowed
COMPONENT_DUPE_HIGHLANDER ![code/__DEFINES/dcs/flags.dm 22](git.png)
old component is deleted (default)
COMPONENT_DUPE_SELECTIVE ![code/__DEFINES/dcs/flags.dm 30](git.png)
each component of the same type is consulted as to whether the duplicate should be allowed
COMPONENT_DUPE_UNIQUE ![code/__DEFINES/dcs/flags.dm 26](git.png)
new component is deleted
COMPONENT_DUPE_UNIQUE_PASSARGS ![code/__DEFINES/dcs/flags.dm 28](git.png)
old component is given the initialization args of the new
COMPONENT_INCOMPATIBLE ![code/__DEFINES/dcs/flags.dm 4](git.png)
Return this from /datum/component/Initialize
or datum/component/OnTransfer
to have the component be deleted if it's applied to an incorrect type.
parent
must not be modified if this is to be returned.
This will be noted in the runtime logs
COMPONENT_NOTRANSFER ![code/__DEFINES/dcs/flags.dm 6](git.png)
Returned in PostTransfer to prevent transfer, similar to COMPONENT_INCOMPATIBLE
ELEMENT_BESPOKE ![code/__DEFINES/dcs/flags.dm 18](git.png)
Only elements created with the same arguments given after id_arg_index
share an element instance
The arguments are the same when the text and number values are the same and all other values have the same ref
ELEMENT_DETACH ![code/__DEFINES/dcs/flags.dm 13](git.png)
Causes the detach proc to be called when the host object is being deleted
ELEMENT_INCOMPATIBLE ![code/__DEFINES/dcs/flags.dm 9](git.png)
Return value to cancel attaching
ID_COMPONENT_DECONSTRUCTOR_DEEPSCANNED ![code/__DEFINES/dcs/flags.dm 63](git.png)
We've already been successfully deepscanned by a deconstructive analyzer
ID_COMPONENT_DEL_ON_IDENTIFY ![code/__DEFINES/dcs/flags.dm 61](git.png)
/ Identification //// Delete on successful broad identification (so the main way we "uncover" how an object works, since this won't be on it to obfuscate it)
ID_COMPONENT_EFFECT_NO_ACTIONS ![code/__DEFINES/dcs/flags.dm 67](git.png)
Block user from getting actions if they don't know how to use this. Triggered on equip.
ID_COMPONENT_IDENTIFY_WITH_DECONSTRUCTOR ![code/__DEFINES/dcs/flags.dm 71](git.png)
Can be identified in a deconstructive analyzer
ID_COMPONENT_KNOWLEDGE_FULL ![code/__DEFINES/dcs/flags.dm 77](git.png)
Has full knowledge
ID_COMPONENT_KNOWLEDGE_NONE ![code/__DEFINES/dcs/flags.dm 75](git.png)
Has no knowledge, default
UPDATE_DESC ![code/__DEFINES/dcs/flags.dm 91](git.png)
Update the atom's desc
UPDATE_GREYSCALE ![code/__DEFINES/dcs/flags.dm 97](git.png)
Update the atom's greyscaling
UPDATE_ICON ![code/__DEFINES/dcs/flags.dm 101](git.png)
Update the atom's icon
UPDATE_ICON_STATE ![code/__DEFINES/dcs/flags.dm 93](git.png)
Update the atom's icon state
UPDATE_NAME ![code/__DEFINES/dcs/flags.dm 89](git.png)
Update the atom's name
UPDATE_OVERLAYS ![code/__DEFINES/dcs/flags.dm 95](git.png)
Update the atom's overlays
UPDATE_SMOOTHING ![code/__DEFINES/dcs/flags.dm 99](git.png)
Update the atom's smoothing. (More accurately, queue it for an update)