Paradise Station 13 - Modules - TypesDefine Details

code/__HELPERS/traits.dm

ADD_TRAITAdds a status trait to the target datum.
REMOVE_TRAITRemoves a status trait from a target datum.
REMOVE_TRAITS_NOT_INRemoves all status traits from a target datum which were NOT added by sources.
REMOVE_TRAITS_INRemoves all status traits from a target datum which were added by sources.
TRAIT_SHOW_WIRE_INFOShow what machine/door wires do when held.
TRAIT_SURGICALA surgical tool; when in hand in help intent (and with a surgery in progress) won't attack the user
TRAIT_ADVANCED_SURGICALAn advanced surgical tool. If a surgical tool has this flag, it will be able to automatically repeat steps until they succeed.
TRAIT_KNOCKEDOUTForces the user to stay unconscious.
TRAIT_IMMOBILIZEDPrevents voluntary movement.
TRAIT_FLOOREDPrevents voluntary standing or staying up on its own.
TRAIT_HANDS_BLOCKEDPrevents usage of manipulation appendages (picking, holding or using items, manipulating storage).
TRAIT_UI_BLOCKEDInability to access UI hud elements.
TRAIT_CANNOT_PULLInability to pull things.
TRAIT_RESTRAINEDAbstract condition that prevents movement if being pulled and might be resisted against. Handcuffs and straight jackets, basically.

Define Details

ADD_TRAIT

Adds a status trait to the target datum.

Arguments: (All Required)

REMOVE_TRAIT

Removes a status trait from a target datum.

ROUNDSTART_TRAIT traits can't be removed without being specified in sources. Arguments:

REMOVE_TRAITS_IN

Removes all status traits from a target datum which were added by sources.

Arguments:

REMOVE_TRAITS_NOT_IN

Removes all status traits from a target datum which were NOT added by sources.

Arguments:

TRAIT_ADVANCED_SURGICAL

An advanced surgical tool. If a surgical tool has this flag, it will be able to automatically repeat steps until they succeed.

TRAIT_CANNOT_PULL

Inability to pull things.

TRAIT_FLOORED

Prevents voluntary standing or staying up on its own.

TRAIT_HANDS_BLOCKED

Prevents usage of manipulation appendages (picking, holding or using items, manipulating storage).

TRAIT_IMMOBILIZED

Prevents voluntary movement.

TRAIT_KNOCKEDOUT

Forces the user to stay unconscious.

TRAIT_RESTRAINED

Abstract condition that prevents movement if being pulled and might be resisted against. Handcuffs and straight jackets, basically.

TRAIT_SHOW_WIRE_INFO

Show what machine/door wires do when held.

TRAIT_SURGICAL

A surgical tool; when in hand in help intent (and with a surgery in progress) won't attack the user

TRAIT_UI_BLOCKED

Inability to access UI hud elements.