Files
2025-02-05 06:19:18 +00:00

5 lines
4.2 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../../"><link rel="stylesheet" href="dmdoc.css"><title>code/__DEFINES/skills/helpers.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/__DEFINES/skills/helpers.html#define">Define Details</a></header><main><h1>code/__DEFINES/skills/helpers.dm <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__DEFINES/skills/helpers.dm0"><img src="git.png" width="16" height="16" title="code/__DEFINES/skills/helpers.dm0"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/__DEFINES/skills/helpers.html#define/SANITIZE_SKILL_LEVEL">SANITIZE_SKILL_LEVEL</a></th><td>Doesn't automatically round the value.</td></tr><tr><th><a href="code/__DEFINES/skills/helpers.html#define/GET_SKILL_MOD_ID">GET_SKILL_MOD_ID</a></th><td>Simple generic identifier macro.</td></tr><tr><th><a href="code/__DEFINES/skills/helpers.html#define/ADD_SKILL_MODIFIER_BODY">ADD_SKILL_MODIFIER_BODY</a></th><td>A simple universal comsig for body bound skill modifiers.
Technically they are still bound to the mind, but other signal procs will take care of adding and removing the modifier
from/to new/old minds.</td></tr><tr><th><a href="code/__DEFINES/skills/helpers.html#define/REMOVE_SKILL_MODIFIER_BODY">REMOVE_SKILL_MODIFIER_BODY</a></th><td>Same as above but to remove the skill modifier.</td></tr><tr><th><a href="code/__DEFINES/skills/helpers.html#define/ADD_SINGLETON_SKILL_MODIFIER">ADD_SINGLETON_SKILL_MODIFIER</a></th><td>Macro used when adding generic singleton skill modifiers.</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/ADD_SINGLETON_SKILL_MODIFIER"><aside class="declaration">#define </aside>ADD_SINGLETON_SKILL_MODIFIER<aside>(mind, path, id)</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__DEFINES/skills/helpers.dm#L44"><img src="git.png" width="16" height="16" title="code/__DEFINES/skills/helpers.dm 44"></a></h3><p>Macro used when adding generic singleton skill modifiers.</p><h3 id="define/ADD_SKILL_MODIFIER_BODY"><aside class="declaration">#define </aside>ADD_SKILL_MODIFIER_BODY<aside>(path, id, body, prototype)</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__DEFINES/skills/helpers.dm#L25"><img src="git.png" width="16" height="16" title="code/__DEFINES/skills/helpers.dm 25"></a></h3><p>A simple universal comsig for body bound skill modifiers.
Technically they are still bound to the mind, but other signal procs will take care of adding and removing the modifier
from/to new/old minds.</p><h3 id="define/GET_SKILL_MOD_ID"><aside class="declaration">#define </aside>GET_SKILL_MOD_ID<aside>(path, id)</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__DEFINES/skills/helpers.dm#L18"><img src="git.png" width="16" height="16" title="code/__DEFINES/skills/helpers.dm 18"></a></h3><p>Simple generic identifier macro.</p><h3 id="define/REMOVE_SKILL_MODIFIER_BODY"><aside class="declaration">#define </aside>REMOVE_SKILL_MODIFIER_BODY<aside>(path, id, body)</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__DEFINES/skills/helpers.dm#L34"><img src="git.png" width="16" height="16" title="code/__DEFINES/skills/helpers.dm 34"></a></h3><p>Same as above but to remove the skill modifier.</p><h3 id="define/SANITIZE_SKILL_LEVEL"><aside class="declaration">#define </aside>SANITIZE_SKILL_LEVEL<aside>(path, lvl)</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/__DEFINES/skills/helpers.dm#L15"><img src="git.png" width="16" height="16" title="code/__DEFINES/skills/helpers.dm 15"></a></h3><p>Doesn't automatically round the value.</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>