9 lines
7.9 KiB
HTML
9 lines
7.9 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><link rel="stylesheet" href="dmdoc.css"><title>/obj - /tg/ Station 13</title></head><body><header><a href="index.html">/tg/ Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="obj.html#var">Var Details</a> - <a href="obj.html#proc">Proc Details</a></header><main><h1>obj <aside>/<a href="obj.html">obj</a></aside><aside> inherits /<a href="atom.html">atom</a>/<a href="atom/movable.html">movable</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L2"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 2"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj.html#var/always_reskinnable">always_reskinnable</a></th><td>Can always be modified</td></tr><tr><th><a href="obj.html#var/bare_wound_bonus">bare_wound_bonus</a></th><td>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</td></tr><tr><th><a href="obj.html#var/current_skin">current_skin</a></th><td>The item reskin</td></tr><tr><th><a href="obj.html#var/damage_deflection">damage_deflection</a></th><td>Damage under this value will be completely ignored</td></tr><tr><th><a href="obj.html#var/reskin_binding">reskin_binding</a></th><td>How to bring up the reskinning menu</td></tr><tr><th><a href="obj.html#var/unique_reskin">unique_reskin</a></th><td>List of options to reskin.</td></tr><tr><th><a href="obj.html#var/wound_bonus">wound_bonus</a></th><td>How good a given object is at causing wounds on carbons. Higher values equal better shots at creating serious wounds.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj.html#proc/CanAStarPass">CanAStarPass</a></th><td>This proc is used for telling whether something can pass by this object in a given direction, for use by the pathfinding system.</td></tr><tr><th><a href="obj.html#proc/fire_act">fire_act</a></th><td>FIRE</td></tr><tr><th><a href="obj.html#proc/reskin_obj">reskin_obj</a></th><td>Do you want to make overrides, of course you do! Will be called if an object was reskinned successfully</td></tr><tr><th><a href="obj.html#proc/setAnchored">setAnchored</a></th><td>@depricated DO NOT USE</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/always_reskinnable"><aside class="declaration">var </aside>always_reskinnable <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L38"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 38"></a></h3><p>Can always be modified</p><h3 id="var/bare_wound_bonus"><aside class="declaration">var </aside>bare_wound_bonus <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L18"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 18"></a></h3><p>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</p><h3 id="var/current_skin"><aside class="declaration">var </aside>current_skin <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L34"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 34"></a></h3><p>The item reskin</p><h3 id="var/damage_deflection"><aside class="declaration">var </aside>damage_deflection <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L26"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 26"></a></h3><p>Damage under this value will be completely ignored</p><h3 id="var/reskin_binding"><aside class="declaration">var </aside>reskin_binding <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L40"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 40"></a></h3><p>How to bring up the reskinning menu</p><h3 id="var/unique_reskin"><aside class="declaration">var </aside>unique_reskin <aside>– /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L36"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 36"></a></h3><p>List of options to reskin.</p><h3 id="var/wound_bonus"><aside class="declaration">var </aside>wound_bonus <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L16"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 16"></a></h3><p>How good a given object is at causing wounds on carbons. Higher values equal better shots at creating serious wounds.</p><h2 id="proc">Proc Details</h2><h3 id="proc/CanAStarPass"><aside class="declaration">proc </aside>CanAStarPass<aside>(/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/card/id/ID, to_dir, /<a href="atom.html">atom</a>/<a href="atom/movable.html">movable</a>/caller) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L266"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 266"></a></aside></h3><p>This proc is used for telling whether something can pass by this object in a given direction, for use by the pathfinding system.</p>
|
||
<p>Trying to generate one long path across the station will call this proc on every single object on every single tile that we're seeing if we can move through, likely
|
||
multiple times per tile since we're likely checking if we can access said tile from multiple directions, so keep these as lightweight as possible.</p>
|
||
<p>Arguments:</p>
|
||
<ul>
|
||
<li>ID- An ID card representing what access we have (and thus if we can open things like airlocks or windows to pass through them). The ID card's physical location does not matter, just the reference</li>
|
||
<li>to_dir- What direction we're trying to move in, relevant for things like directional windows that only block movement in certain directions</li>
|
||
<li>caller- The movable we're checking pass flags for, if we're making any such checks</li>
|
||
</ul><h3 id="proc/fire_act">fire_act<aside>(exposed_temperature, exposed_volume) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/obj_defense.dm#L208"><img src="git.png" width="16" height="16" title="code/game/objects/obj_defense.dm 208"></a></aside></h3><p>FIRE</p><h3 id="proc/reskin_obj"><aside class="declaration">proc </aside>reskin_obj<aside>(/<a href="mob.html">mob</a>/user) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L357"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 357"></a></aside></h3><p>Do you want to make overrides, of course you do! Will be called if an object was reskinned successfully</p><h3 id="proc/setAnchored"><aside class="declaration">proc </aside>setAnchored<aside>(anchorvalue) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/objs.dm#L99"><img src="git.png" width="16" height="16" title="code/game/objects/objs.dm 99"></a></aside></h3><p>@depricated DO NOT USE</p></main><footer>tgstation.dme <a href="https://github.com/evilew/GS13-Citadel/tree/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e">e8e0068</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.9.0</a></footer></body></html> |