17 lines
4.2 KiB
HTML
17 lines
4.2 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/obj/durand_shield - /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/durand_shield.html#var">Var Details</a> - <a href="obj/durand_shield.html#proc">Proc Details</a></header><main><h1>durand_shield <aside>/<a href="obj.html">obj</a>/<a href="obj/durand_shield.html">durand_shield</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/vehicles/mecha/combat/durand.dm#L135"><img src="git.png" width="16" height="16" title="code/modules/vehicles/mecha/combat/durand.dm 135"></a></h1><p>Shield processing
|
||
*An object to take the hit for us when using the Durand's defense mode.
|
||
It is spawned in during the durand's initilization, and always stays on the same tile.
|
||
Normally invisible, until defense mode is actvated. When the durand detects an attack that should be blocked, the
|
||
attack is passed to the shield. The shield takes the damage, uses it to calculate charge cost, and then sets its
|
||
own integrity back to max. Shield is automatically dropped if we run out of power or the user gets out.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/durand_shield.html#var/chassis">chassis</a></th><td>Our link back to the durand</td></tr><tr><th><a href="obj/durand_shield.html#var/switching">switching</a></th><td>To keep track of things during the animation</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj/durand_shield.html#proc/activate">activate</a></th><td>Handles activating and deactivating the shield. This proc is called by a signal sent from the mech's action button
|
||
and relayed by the mech itself. The "forced" variabe, signal_args[1], will skip the to-pilot text and is meant for when
|
||
the shield is disabled by means other than the action button (like running out of power)
|
||
Arguments:</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/chassis"><aside class="declaration">var </aside>chassis <aside>– /<a href="obj.html">obj</a>/<a href="obj/vehicle.html">vehicle</a>/<a href="obj/vehicle/sealed/mecha.html">sealed/mecha</a>/<a href="obj/vehicle/sealed/mecha/combat/durand.html">combat/durand</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/vehicles/mecha/combat/durand.dm#L148"><img src="git.png" width="16" height="16" title="code/modules/vehicles/mecha/combat/durand.dm 148"></a></h3><p>Our link back to the durand</p><h3 id="var/switching"><aside class="declaration">var </aside>switching <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/vehicles/mecha/combat/durand.dm#L150"><img src="git.png" width="16" height="16" title="code/modules/vehicles/mecha/combat/durand.dm 150"></a></h3><p>To keep track of things during the animation</p><h2 id="proc">Proc Details</h2><h3 id="proc/activate"><aside class="declaration">proc </aside>activate<aside>(/<a href="datum.html">datum</a>/source, /<a href="mob.html">mob</a>/owner, /list/signal_args) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/vehicles/mecha/combat/durand.dm#L177"><img src="git.png" width="16" height="16" title="code/modules/vehicles/mecha/combat/durand.dm 177"></a></aside></h3><p>Handles activating and deactivating the shield. This proc is called by a signal sent from the mech's action button
|
||
and relayed by the mech itself. The "forced" variabe, signal_args[1], will skip the to-pilot text and is meant for when
|
||
the shield is disabled by means other than the action button (like running out of power)
|
||
Arguments:</p>
|
||
<ul>
|
||
<li>source: the shield</li>
|
||
<li>owner: mob that activated the shield</li>
|
||
<li>signal_args: whether it's forced</li>
|
||
</ul></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> |