/tg/ Station 13 - Modules - TypesVar Details - Proc Details

obj

Vars

anchored_tabletop_offsetThe vertical pixel_z offset applied when the object is anchored on a tile with table Ignored when set to 0 - to avoid shifting directional wall-mounted objects above tables
bare_wound_bonusIf this attacks a human with no wound armor on the affected body part, add this to the wound mod. Some attacks may be significantly worse at wounding if there's even a slight layer of armor to absorb some of it vs bare flesh
burning_particlesParticles this obj uses when burning, if any
custom_fire_overlayCustom fire overlay icon, will just use the default overlay if this is null
demolition_modA multiplier to an object's force when used against a structure, vehicle, machine, or robot.
desc_controlsExtra examine line to describe controls, such as right-clicking, left-clicking, etc.
icon_previewIcon to use as a 32x32 preview in crafting menus and such
id_tagMap tag for something. Tired of it being used on snowflake items. Moved here for some semblance of a standard. Next pr after the network fix will have me refactor door interactions, so help me god.
no_damage_feedbackThe context returned when an attack against this object doesn't deal any traditional damage to the object.
wound_bonusHow good a given object is at causing wounds on carbons. Higher values equal better shots at creating serious wounds.

Procs

GetExplosionBlockreturns how much the object blocks an explosion. Used by subtypes.
acid_act// ACID the obj's reaction when touched by acid
acid_meltcalled when the obj is destroyed by acid.
atom_deconstructCustom behaviour per atom subtype on how they should deconstruct themselves Arguments
atom_destructionwhat happens when the obj's integrity reaches zero.
attack_tk_grabTelekinesis object grab act.
burnShould be called when the atom is destroyed by fire, comparable to acid_melt() proc
can_be_unfasten_wrenchIf we can unwrench this object; returns SUCCESSFUL_UNFASTEN and FAILED_UNFASTEN, which are both TRUE, or CANT_UNFASTEN, which isn't.
check_on_tableAdjusts the vertical pixel_z offset when the object is anchored on a tile with table
deconstructThe obj is deconstructed into pieces, whether through careful disassembly or when destroyed. Arguments
default_unfasten_wrenchTry to unwrench an object in a WONDERFUL DYNAMIC WAY
expose_reagentsHandles exposing an object to reagents.
find_and_hang_on_wall
fire_act/ FIRE Called when the obj is exposed to fire.
freezeAttempt to freeze this obj if possible. returns TRUE if it succeeded, FALSE otherwise.
gender_revealCreates an animation of the item slowly lifting up from the floor with a colored outline, then slowly drifting back down. Arguments:
handle_deconstructThe interminate proc between deconstruct() & atom_deconstruct(). By default this delegates deconstruction to atom_deconstruct if NO_DEBRIS_AFTER_DECONSTRUCTION is absent but subtypes can override this to handle NO_DEBRIS_AFTER_DECONSTRUCTION in their own unique way. Override this if for example you want to dump out important content like mobs from the atom before deconstruction regardless if NO_DEBRIS_AFTER_DECONSTRUCTION is present or not Arguments
on_object_savedA procedure for saving non-standard properties of an object. For example, saving ore into a silo, and further spavn by coordinates of metal stacks objects
pipe_ejectGeneral proc used to expel a holder's contents through src (for bins holder is also the src).
receive_signalProc for reacting to a received /datum/signal. To be implemented as needed, does nothing by default.
remove_gender_reveal_fxRemoves the non-animate effects from above proc
remove_single_mat_effectThis proc is called when the material is removed from an object specifically.
set_boundsUpdates the bounds of a rotated object This ensures that the bounds are always correct, even if the object is rotated after init.
unfasten_wrench_checkFor the do_after, this checks if unfastening conditions are still valid
unfreezeUnfreezes this obj if its frozen
zap_actCalled when the obj is hit by a tesla bolt.
zap_buckle_checkOnly tesla coils, vehicles, and grounding rods currently call this because mobs are already targeted over all other objects, but this might be useful for more things later.

Var Details

anchored_tabletop_offset

The vertical pixel_z offset applied when the object is anchored on a tile with table Ignored when set to 0 - to avoid shifting directional wall-mounted objects above tables

bare_wound_bonus

If this attacks a human with no wound armor on the affected body part, add this to the wound mod. Some attacks may be significantly worse at wounding if there's even a slight layer of armor to absorb some of it vs bare flesh

burning_particles

Particles this obj uses when burning, if any

custom_fire_overlay

Custom fire overlay icon, will just use the default overlay if this is null

demolition_mod

A multiplier to an object's force when used against a structure, vehicle, machine, or robot.

desc_controls

Extra examine line to describe controls, such as right-clicking, left-clicking, etc.

icon_preview

Icon to use as a 32x32 preview in crafting menus and such

id_tag

Map tag for something. Tired of it being used on snowflake items. Moved here for some semblance of a standard. Next pr after the network fix will have me refactor door interactions, so help me god.

no_damage_feedback

The context returned when an attack against this object doesn't deal any traditional damage to the object.

wound_bonus

How good a given object is at causing wounds on carbons. Higher values equal better shots at creating serious wounds.

Proc Details

GetExplosionBlock

returns how much the object blocks an explosion. Used by subtypes.

acid_act

// ACID the obj's reaction when touched by acid

acid_melt

called when the obj is destroyed by acid.

atom_deconstruct

Custom behaviour per atom subtype on how they should deconstruct themselves Arguments

atom_destruction

what happens when the obj's integrity reaches zero.

attack_tk_grab

Telekinesis object grab act.

burn

Should be called when the atom is destroyed by fire, comparable to acid_melt() proc

can_be_unfasten_wrench

If we can unwrench this object; returns SUCCESSFUL_UNFASTEN and FAILED_UNFASTEN, which are both TRUE, or CANT_UNFASTEN, which isn't.

check_on_table

Adjusts the vertical pixel_z offset when the object is anchored on a tile with table

deconstruct

The obj is deconstructed into pieces, whether through careful disassembly or when destroyed. Arguments

default_unfasten_wrench

Try to unwrench an object in a WONDERFUL DYNAMIC WAY

expose_reagents

Handles exposing an object to reagents.

find_and_hang_on_wall

Checks object direction and then verifies if there's a wall in that direction. Finally, applies a wall_mounted component to the object.

@param directional If TRUE, will use the direction of the object to determine the wall to attach to. If FALSE, will use the object's loc.
@param custom_drop_callback If set, will use this callback instead of the default deconstruct callback.

fire_act

/ FIRE Called when the obj is exposed to fire.

freeze

Attempt to freeze this obj if possible. returns TRUE if it succeeded, FALSE otherwise.

gender_reveal

Creates an animation of the item slowly lifting up from the floor with a colored outline, then slowly drifting back down. Arguments:

handle_deconstruct

The interminate proc between deconstruct() & atom_deconstruct(). By default this delegates deconstruction to atom_deconstruct if NO_DEBRIS_AFTER_DECONSTRUCTION is absent but subtypes can override this to handle NO_DEBRIS_AFTER_DECONSTRUCTION in their own unique way. Override this if for example you want to dump out important content like mobs from the atom before deconstruction regardless if NO_DEBRIS_AFTER_DECONSTRUCTION is present or not Arguments

on_object_saved

A procedure for saving non-standard properties of an object. For example, saving ore into a silo, and further spavn by coordinates of metal stacks objects

pipe_eject

General proc used to expel a holder's contents through src (for bins holder is also the src).

receive_signal

Proc for reacting to a received /datum/signal. To be implemented as needed, does nothing by default.

remove_gender_reveal_fx

Removes the non-animate effects from above proc

remove_single_mat_effect

This proc is called when the material is removed from an object specifically.

set_bounds

Updates the bounds of a rotated object This ensures that the bounds are always correct, even if the object is rotated after init.

unfasten_wrench_check

For the do_after, this checks if unfastening conditions are still valid

unfreeze

Unfreezes this obj if its frozen

zap_act

Called when the obj is hit by a tesla bolt.

zap_buckle_check

Only tesla coils, vehicles, and grounding rods currently call this because mobs are already targeted over all other objects, but this might be useful for more things later.