Files
GS13NG/code/modules/power/apc.html
T
2025-02-05 06:19:18 +00:00

1 line
20 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../"><link rel="stylesheet" href="dmdoc.css"><title>code/modules/power/apc.dm - /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="code/modules/power/apc.html#define">Define Details</a></header><main><h1>code/modules/power/apc.dm <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm0"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm0"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/modules/power/apc.html#define/APC_ELECTRONICS_MISSING">APC_ELECTRONICS_MISSING</a></th><td>There are no electronics in the APC.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_ELECTRONICS_INSTALLED">APC_ELECTRONICS_INSTALLED</a></th><td>The electronics are installed but not secured.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_ELECTRONICS_SECURED">APC_ELECTRONICS_SECURED</a></th><td>The electronics are installed and secured.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_COVER_CLOSED">APC_COVER_CLOSED</a></th><td>The APCs cover is closed.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_COVER_OPENED">APC_COVER_OPENED</a></th><td>The APCs cover is open.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_COVER_REMOVED">APC_COVER_REMOVED</a></th><td>The APCs cover is missing.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_NOT_CHARGING">APC_NOT_CHARGING</a></th><td>The APC is not charging.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_CHARGING">APC_CHARGING</a></th><td>The APC is charging.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_FULLY_CHARGED">APC_FULLY_CHARGED</a></th><td>The APC is fully charged.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_CHANNEL_OFF">APC_CHANNEL_OFF</a></th><td>The APCs power channel is manually set off.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_CHANNEL_AUTO_OFF">APC_CHANNEL_AUTO_OFF</a></th><td>The APCs power channel is automatically off.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_CHANNEL_ON">APC_CHANNEL_ON</a></th><td>The APCs power channel is manually set on.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_CHANNEL_AUTO_ON">APC_CHANNEL_AUTO_ON</a></th><td>The APCs power channel is automatically on.</td></tr><tr><th><a href="code/modules/power/apc.html#define/AUTOSET_FORCE_OFF">AUTOSET_FORCE_OFF</a></th><td>The APC turns automated and manual power channels off.</td></tr><tr><th><a href="code/modules/power/apc.html#define/AUTOSET_OFF">AUTOSET_OFF</a></th><td>The APC turns automated power channels off.</td></tr><tr><th><a href="code/modules/power/apc.html#define/AUTOSET_ON">AUTOSET_ON</a></th><td>The APC turns automated power channels on.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_NO_POWER">APC_NO_POWER</a></th><td>The APC either isn't attached to a powernet or there is no power on the external powernet.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_LOW_POWER">APC_LOW_POWER</a></th><td>The APCs external powernet does not have enough power to charge the APC.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_HAS_POWER">APC_HAS_POWER</a></th><td>The APCs external powernet has enough power to charge the APC.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_DRAIN_TIME">APC_DRAIN_TIME</a></th><td>How long it takes an ethereal to drain or charge APCs. Also used as a spam limiter.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_POWER_GAIN">APC_POWER_GAIN</a></th><td>How much power ethereals gain/drain from APCs.</td></tr><tr><th><a href="code/modules/power/apc.html#define/APC_RESET_EMP">APC_RESET_EMP</a></th><td>The wire value used to reset the APCs wires after one's EMPed.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPSTATE_COVER_SHIFT">UPSTATE_COVER_SHIFT</a></th><td>The bit shift for the APCs cover status.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPSTATE_OPENED1">UPSTATE_OPENED1</a></th><td>The bitflag representing the APCs cover being open for icon purposes.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPSTATE_OPENED2">UPSTATE_OPENED2</a></th><td>The bitflag representing the APCs cover being missing for icon purposes.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPSTATE_CELL_IN">UPSTATE_CELL_IN</a></th><td>The APC has a power cell.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPSTATE_BROKE">UPSTATE_BROKE</a></th><td>The APC is broken or damaged.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPSTATE_MAINT">UPSTATE_MAINT</a></th><td>The APC is undergoing maintenance.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPSTATE_BLUESCREEN">UPSTATE_BLUESCREEN</a></th><td>The APC is emagged or malfed.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPSTATE_WIREEXP">UPSTATE_WIREEXP</a></th><td>The APCs wires are exposed.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPOVERLAY_OPERATING">UPOVERLAY_OPERATING</a></th><td>Bitflag indicating that the APCs operating status overlay should be shown.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPOVERLAY_LOCKED">UPOVERLAY_LOCKED</a></th><td>Bitflag indicating that the APCs locked status overlay should be shown.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPOVERLAY_CHARGING_SHIFT">UPOVERLAY_CHARGING_SHIFT</a></th><td>Bit shift for the charging status of the APC.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPOVERLAY_EQUIPMENT_SHIFT">UPOVERLAY_EQUIPMENT_SHIFT</a></th><td>Bit shift for the equipment status of the APC.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPOVERLAY_LIGHTING_SHIFT">UPOVERLAY_LIGHTING_SHIFT</a></th><td>Bit shift for the lighting channel status of the APC.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPOVERLAY_ENVIRON_SHIFT">UPOVERLAY_ENVIRON_SHIFT</a></th><td>Bit shift for the environment channel status of the APC.</td></tr><tr><th><a href="code/modules/power/apc.html#define/UPOVERLAY_HIJACKED">UPOVERLAY_HIJACKED</a></th><td>Update for hijack overlays</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/APC_CHANNEL_AUTO_OFF"><aside class="declaration">#define </aside>APC_CHANNEL_AUTO_OFF <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L30"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 30"></a></h3><p>The APCs power channel is automatically off.</p><h3 id="define/APC_CHANNEL_AUTO_ON"><aside class="declaration">#define </aside>APC_CHANNEL_AUTO_ON <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L34"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 34"></a></h3><p>The APCs power channel is automatically on.</p><h3 id="define/APC_CHANNEL_OFF"><aside class="declaration">#define </aside>APC_CHANNEL_OFF <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L28"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 28"></a></h3><p>The APCs power channel is manually set off.</p><h3 id="define/APC_CHANNEL_ON"><aside class="declaration">#define </aside>APC_CHANNEL_ON <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L32"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 32"></a></h3><p>The APCs power channel is manually set on.</p><h3 id="define/APC_CHARGING"><aside class="declaration">#define </aside>APC_CHARGING <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L21"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 21"></a></h3><p>The APC is charging.</p><h3 id="define/APC_COVER_CLOSED"><aside class="declaration">#define </aside>APC_COVER_CLOSED <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L11"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 11"></a></h3><p>The APCs cover is closed.</p><h3 id="define/APC_COVER_OPENED"><aside class="declaration">#define </aside>APC_COVER_OPENED <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L13"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 13"></a></h3><p>The APCs cover is open.</p><h3 id="define/APC_COVER_REMOVED"><aside class="declaration">#define </aside>APC_COVER_REMOVED <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L15"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 15"></a></h3><p>The APCs cover is missing.</p><h3 id="define/APC_DRAIN_TIME"><aside class="declaration">#define </aside>APC_DRAIN_TIME <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L55"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 55"></a></h3><p>How long it takes an ethereal to drain or charge APCs. Also used as a spam limiter.</p><h3 id="define/APC_ELECTRONICS_INSTALLED"><aside class="declaration">#define </aside>APC_ELECTRONICS_INSTALLED <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L5"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 5"></a></h3><p>The electronics are installed but not secured.</p><h3 id="define/APC_ELECTRONICS_MISSING"><aside class="declaration">#define </aside>APC_ELECTRONICS_MISSING <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L3"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 3"></a></h3><p>There are no electronics in the APC.</p><h3 id="define/APC_ELECTRONICS_SECURED"><aside class="declaration">#define </aside>APC_ELECTRONICS_SECURED <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L7"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 7"></a></h3><p>The electronics are installed and secured.</p><h3 id="define/APC_FULLY_CHARGED"><aside class="declaration">#define </aside>APC_FULLY_CHARGED <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L23"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 23"></a></h3><p>The APC is fully charged.</p><h3 id="define/APC_HAS_POWER"><aside class="declaration">#define </aside>APC_HAS_POWER <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L51"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 51"></a></h3><p>The APCs external powernet has enough power to charge the APC.</p><h3 id="define/APC_LOW_POWER"><aside class="declaration">#define </aside>APC_LOW_POWER <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L49"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 49"></a></h3><p>The APCs external powernet does not have enough power to charge the APC.</p><h3 id="define/APC_NOT_CHARGING"><aside class="declaration">#define </aside>APC_NOT_CHARGING <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L19"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 19"></a></h3><p>The APC is not charging.</p><h3 id="define/APC_NO_POWER"><aside class="declaration">#define </aside>APC_NO_POWER <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L47"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 47"></a></h3><p>The APC either isn't attached to a powernet or there is no power on the external powernet.</p><h3 id="define/APC_POWER_GAIN"><aside class="declaration">#define </aside>APC_POWER_GAIN <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L57"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 57"></a></h3><p>How much power ethereals gain/drain from APCs.</p><h3 id="define/APC_RESET_EMP"><aside class="declaration">#define </aside>APC_RESET_EMP <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L61"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 61"></a></h3><p>The wire value used to reset the APCs wires after one's EMPed.</p><h3 id="define/AUTOSET_FORCE_OFF"><aside class="declaration">#define </aside>AUTOSET_FORCE_OFF <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L39"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 39"></a></h3><p>The APC turns automated and manual power channels off.</p><h3 id="define/AUTOSET_OFF"><aside class="declaration">#define </aside>AUTOSET_OFF <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L41"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 41"></a></h3><p>The APC turns automated power channels off.</p><h3 id="define/AUTOSET_ON"><aside class="declaration">#define </aside>AUTOSET_ON <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L43"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 43"></a></h3><p>The APC turns automated power channels on.</p><h3 id="define/UPOVERLAY_CHARGING_SHIFT"><aside class="declaration">#define </aside>UPOVERLAY_CHARGING_SHIFT <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L93"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 93"></a></h3><p>Bit shift for the charging status of the APC.</p><h3 id="define/UPOVERLAY_ENVIRON_SHIFT"><aside class="declaration">#define </aside>UPOVERLAY_ENVIRON_SHIFT <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L99"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 99"></a></h3><p>Bit shift for the environment channel status of the APC.</p><h3 id="define/UPOVERLAY_EQUIPMENT_SHIFT"><aside class="declaration">#define </aside>UPOVERLAY_EQUIPMENT_SHIFT <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L95"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 95"></a></h3><p>Bit shift for the equipment status of the APC.</p><h3 id="define/UPOVERLAY_HIJACKED"><aside class="declaration">#define </aside>UPOVERLAY_HIJACKED <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L101"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 101"></a></h3><p>Update for hijack overlays</p><h3 id="define/UPOVERLAY_LIGHTING_SHIFT"><aside class="declaration">#define </aside>UPOVERLAY_LIGHTING_SHIFT <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L97"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 97"></a></h3><p>Bit shift for the lighting channel status of the APC.</p><h3 id="define/UPOVERLAY_LOCKED"><aside class="declaration">#define </aside>UPOVERLAY_LOCKED <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L89"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 89"></a></h3><p>Bitflag indicating that the APCs locked status overlay should be shown.</p><h3 id="define/UPOVERLAY_OPERATING"><aside class="declaration">#define </aside>UPOVERLAY_OPERATING <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L87"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 87"></a></h3><p>Bitflag indicating that the APCs operating status overlay should be shown.</p><h3 id="define/UPSTATE_BLUESCREEN"><aside class="declaration">#define </aside>UPSTATE_BLUESCREEN <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L80"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 80"></a></h3><p>The APC is emagged or malfed.</p><h3 id="define/UPSTATE_BROKE"><aside class="declaration">#define </aside>UPSTATE_BROKE <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L76"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 76"></a></h3><p>The APC is broken or damaged.</p><h3 id="define/UPSTATE_CELL_IN"><aside class="declaration">#define </aside>UPSTATE_CELL_IN <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L74"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 74"></a></h3><p>The APC has a power cell.</p><h3 id="define/UPSTATE_COVER_SHIFT"><aside class="declaration">#define </aside>UPSTATE_COVER_SHIFT <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L66"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 66"></a></h3><p>The bit shift for the APCs cover status.</p><h3 id="define/UPSTATE_MAINT"><aside class="declaration">#define </aside>UPSTATE_MAINT <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L78"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 78"></a></h3><p>The APC is undergoing maintenance.</p><h3 id="define/UPSTATE_OPENED1"><aside class="declaration">#define </aside>UPSTATE_OPENED1 <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L68"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 68"></a></h3><p>The bitflag representing the APCs cover being open for icon purposes.</p><h3 id="define/UPSTATE_OPENED2"><aside class="declaration">#define </aside>UPSTATE_OPENED2 <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L70"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 70"></a></h3><p>The bitflag representing the APCs cover being missing for icon purposes.</p><h3 id="define/UPSTATE_WIREEXP"><aside class="declaration">#define </aside>UPSTATE_WIREEXP <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/power/apc.dm#L82"><img src="git.png" width="16" height="16" title="code/modules/power/apc.dm 82"></a></h3><p>The APCs wires are exposed.</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>