Files

2 lines
2.7 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/status_effect/transient - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="datum/status_effect/transient.html#var">Var Details</a> - <a href="datum/status_effect/transient.html#proc">Proc Details</a></header><main><h1>Transient Status Effect (basetype) <aside>/<a href="datum.html">datum</a>/<a href="datum/status_effect.html">status_effect</a>/<a href="datum/status_effect/transient.html">transient</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/status_effects/status_effect.dm#L300"><img src="git.png" width="16" height="16" title="code/datums/status_effects/status_effect.dm 300"></a></h1><p>A status effect that works off a (possibly decimal) counter before expiring, rather than a specified world.time.
This allows for a more precise tweaking of status durations at runtime (e.g. paralysis).</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/status_effect/transient.html#var/strength">strength</a></th><td>How much strength left before expiring? time in deciseconds.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/status_effect/transient.html#proc/calc_decay">calc_decay</a></th><td>Returns how much strength should be adjusted per tick.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/strength"><aside class="declaration">var </aside>strength <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/status_effects/status_effect.dm#L305"><img src="git.png" width="16" height="16" title="code/datums/status_effects/status_effect.dm 305"></a></h3><p>How much strength left before expiring? time in deciseconds.</p><h2 id="proc">Proc Details</h2><h3 id="proc/calc_decay"><aside class="declaration">proc </aside>calc_decay<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/status_effects/status_effect.dm#L324"><img src="git.png" width="16" height="16" title="code/datums/status_effects/status_effect.dm 324"></a></aside></h3><p>Returns how much strength should be adjusted per tick.</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/776b9861f70566b1e6a0763a465ef22f7920a3d6">776b986</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>