/obj
Vars | |
acid_level | How much acid is on this object |
---|---|
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 |
demolition_mod | Damage multiplier against structures, machines, mechs, and to a lesser extent silicons |
icon_preview | Icon to use as a 32x32 preview in crafting menus and such |
wound_bonus | How good a given object is at causing wounds on carbons. Higher values equal better shots at creating serious wounds. |
Procs | |
GetExplosionBlock | returns how much the object blocks an explosion. Used by subtypes. |
acid_act | the obj's reaction when touched by acid |
acid_melt | called when the obj is destroyed by acid. |
acid_processing | the proc called by the acid subsystem to process the acid that's on the obj |
allowed | returns TRUE if this mob has sufficient access to use this object |
atom_destruction | what happens when the obj's integrity reaches zero. |
burn | called when the obj is destroyed by fire |
check_access | Check if an item has access to this object |
check_access_list | Check if an access list has sufficient access |
deconstruct | the obj is deconstructed into pieces, whether through careful disassembly or when destroyed. |
extinguish | Called when the obj is no longer on fire. |
find_and_hang_on_wall | |
fire_act | / FIRE Called when the obj is exposed to fire. |
gen_access | Generates access from strings, Call this before using req_access or req_one_access directly |
integrate_amount | Return used to determine how many resources a swarmer gains when consuming an object |
tesla_act | Called when the obj is hit by a tesla bolt. |
tesla_buckle_check | Only tesla coils and grounding rods currently call this because mobs are already targeted over all other objects, but this might be useful for more things later. |
text2access | Convert a text string to a list of accesses |
unfreeze | Unfreezes this obj if its frozen |
Var Details
acid_level
How much acid is on this object
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
demolition_mod
Damage multiplier against structures, machines, mechs, and to a lesser extent silicons
icon_preview
Icon to use as a 32x32 preview in crafting menus and such
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
the obj's reaction when touched by acid
acid_melt
called when the obj is destroyed by acid.
acid_processing
the proc called by the acid subsystem to process the acid that's on the obj
allowed
returns TRUE if this mob has sufficient access to use this object
atom_destruction
what happens when the obj's integrity reaches zero.
burn
called when the obj is destroyed by fire
check_access
Check if an item has access to this object
check_access_list
Check if an access list has sufficient access
deconstruct
the obj is deconstructed into pieces, whether through careful disassembly or when destroyed.
extinguish
Called when the obj is no longer on fire.
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.
gen_access
Generates access from strings, Call this before using req_access or req_one_access directly
integrate_amount
Return used to determine how many resources a swarmer gains when consuming an object
tesla_act
Called when the obj is hit by a tesla bolt.
tesla_buckle_check
Only tesla coils and grounding rods currently call this because mobs are already targeted over all other objects, but this might be useful for more things later.
text2access
Convert a text string to a list of accesses
unfreeze
Unfreezes this obj if its frozen