/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/reskin.dm

APPLY_VAR_OR_RESET_INITIALSets the atom's varname to newvalue if newvalue is not null, otherwise resets it to its initial value if resetcondition is true
APPLY_VAR_OR_RESET_TOSets the atom's varname to newvalue if newvalue is not null, otherwise sets it to resetvalue if resetcondition is true
RESET_INITIAL_IF_SETResets the atom's varname to its initial value if oldvalue is not null
RESET_TO_IF_SETSets the atom's varname to resetvalue if oldvalue is not null

Define Details

APPLY_VAR_OR_RESET_INITIAL

Sets the atom's varname to newvalue if newvalue is not null, otherwise resets it to its initial value if resetcondition is true

APPLY_VAR_OR_RESET_TO

Sets the atom's varname to newvalue if newvalue is not null, otherwise sets it to resetvalue if resetcondition is true

RESET_INITIAL_IF_SET

Resets the atom's varname to its initial value if oldvalue is not null

RESET_TO_IF_SET

Sets the atom's varname to resetvalue if oldvalue is not null