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

5 lines
7.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/quirk - /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="datum/quirk.html#var">Var Details</a></header><main><h1>quirk <aside>/<a href="datum.html">datum</a>/<a href="datum/quirk.html">quirk</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L3"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 3"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/quirk.html#var/antag_removal_text">antag_removal_text</a></th><td>Text will be given to the quirk holder if they get an antag that has it blacklisted.</td></tr><tr><th><a href="datum/quirk.html#var/desc">desc</a></th><td>The description of the quirk</td></tr><tr><th><a href="datum/quirk.html#var/gain_text">gain_text</a></th><td>Text displayed when this quirk is assigned to a mob (and not transferred)</td></tr><tr><th><a href="datum/quirk.html#var/lose_text">lose_text</a></th><td>Text displayed when this quirk is removed from a mob (and not transferred)</td></tr><tr><th><a href="datum/quirk.html#var/mail_goodies">mail_goodies</a></th><td>A lazylist of items people can receive from mail who have this quirk enabled
The base weight for the each quirk's mail goodies list to be selected is 5
then the item selected is determined by pick(selected_quirk.mail_goodies)</td></tr><tr><th><a href="datum/quirk.html#var/medical_record_text">medical_record_text</a></th><td>This text will appear on medical records for the trait.</td></tr><tr><th><a href="datum/quirk.html#var/mob_trait">mob_trait</a></th><td>if applicable, apply and remove this mob trait</td></tr><tr><th><a href="datum/quirk.html#var/name">name</a></th><td>The name of the quirk</td></tr><tr><th><a href="datum/quirk.html#var/on_spawn_immediate">on_spawn_immediate</a></th><td>should we immediately call on_spawn or add a timer to trigger</td></tr><tr><th><a href="datum/quirk.html#var/quirk_holder">quirk_holder</a></th><td>Reference to the mob currently tied to this quirk datum. Quirks are not singletons.</td></tr><tr><th><a href="datum/quirk.html#var/value">value</a></th><td>What the quirk is worth in preferences, zero = neutral / free</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/antag_removal_text"><aside class="declaration">var </aside>antag_removal_text <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L18"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 18"></a></h3><p>Text will be given to the quirk holder if they get an antag that has it blacklisted.</p><h3 id="var/desc"><aside class="declaration">var </aside>desc <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L7"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 7"></a></h3><p>The description of the quirk</p><h3 id="var/gain_text"><aside class="declaration">var </aside>gain_text <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L12"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 12"></a></h3><p>Text displayed when this quirk is assigned to a mob (and not transferred)</p><h3 id="var/lose_text"><aside class="declaration">var </aside>lose_text <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L14"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 14"></a></h3><p>Text displayed when this quirk is removed from a mob (and not transferred)</p><h3 id="var/mail_goodies"><aside class="declaration">var </aside>mail_goodies <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L32"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 32"></a></h3><p>A lazylist of items people can receive from mail who have this quirk enabled
The base weight for the each quirk's mail goodies list to be selected is 5
then the item selected is determined by pick(selected_quirk.mail_goodies)</p><h3 id="var/medical_record_text"><aside class="declaration">var </aside>medical_record_text <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L16"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 16"></a></h3><p>This text will appear on medical records for the trait.</p><h3 id="var/mob_trait"><aside class="declaration">var </aside>mob_trait <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L21"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 21"></a></h3><p>if applicable, apply and remove this mob trait</p><h3 id="var/name"><aside class="declaration">var </aside>name <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L5"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 5"></a></h3><p>The name of the quirk</p><h3 id="var/on_spawn_immediate"><aside class="declaration">var </aside>on_spawn_immediate <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L23"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 23"></a></h3><p>should we immediately call on_spawn or add a timer to trigger</p><h3 id="var/quirk_holder"><aside class="declaration">var </aside>quirk_holder <aside> /<a href="mob.html">mob</a>/<a href="mob/living.html">living</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L25"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 25"></a></h3><p>Reference to the mob currently tied to this quirk datum. Quirks are not singletons.</p><h3 id="var/value"><aside class="declaration">var </aside>value <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/traits/_quirk.dm#L9"><img src="git.png" width="16" height="16" title="code/datums/traits/_quirk.dm 9"></a></h3><p>What the quirk is worth in preferences, zero = neutral / free</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>