29 lines
11 KiB
HTML
29 lines
11 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/mind - /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/mind.html#var">Var Details</a> - <a href="datum/mind.html#proc">Proc Details</a></header><main><h1>mind <aside>/<a href="datum.html">datum</a>/<a href="datum/mind.html">mind</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L38"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 38"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/mind.html#var/ambitions">ambitions</a></th><td>Lazy list for antagonists to set goals they wish to achieve, to be shown at the round-end report.</td></tr><tr><th><a href="datum/mind.html#var/has_ever_been_ai">has_ever_been_ai</a></th><td>has this mind ever been an AI</td></tr><tr><th><a href="datum/mind.html#var/original_character">original_character</a></th><td>Weakref to the character we spawned in as- either at roundstart or latejoin, so we know for persistent scars if we ended as the same person or not</td></tr><tr><th><a href="datum/mind.html#var/skill_holder">skill_holder</a></th><td>Our skill holder.</td></tr><tr><th><a href="datum/mind.html#var/special_statuses">special_statuses</a></th><td>A lazy list of statuses to add next to this mind in the traitor panel</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/mind.html#proc/action_skill_mod">action_skill_mod</a></th><td>Generic value modifier proc that uses one skill.
|
||
Args:</td></tr><tr><th><a href="datum/mind.html#proc/auto_gain_experience">auto_gain_experience</a></th><td>Automatic skill increase, multiplied by skill affinity if existing.
|
||
Only works if skill is numerical or levelled..</td></tr><tr><th><a href="datum/mind.html#proc/boost_skill_value_to">boost_skill_value_to</a></th><td>Boosts a skill to a value if not aobve</td></tr><tr><th><a href="datum/mind.html#proc/equip_traitor">equip_traitor</a></th><td></td></tr><tr><th><a href="datum/mind.html#proc/get_hijack_speed">get_hijack_speed</a></th><td>Sets our can_hijack to the fastest speed our antag datums allow.</td></tr><tr><th><a href="datum/mind.html#proc/get_skill_affinity">get_skill_affinity</a></th><td>Grabs our affinity for a skill. !!This is a multiplier!!</td></tr><tr><th><a href="datum/mind.html#proc/get_skill_level">get_skill_level</a></th><td>Grabs the level of a skill. Only supported by skills with tiers or levels.</td></tr><tr><th><a href="datum/mind.html#proc/get_skill_value">get_skill_value</a></th><td>Grabs the value of a skill.</td></tr><tr><th><a href="datum/mind.html#proc/item_action_skills_mod">item_action_skills_mod</a></th><td>Generic value modifier proc that uses several skills, intended for items.
|
||
Args:</td></tr><tr><th><a href="datum/mind.html#proc/remove_antags_for_borging">remove_antags_for_borging</a></th><td>Remove the antagonists that should not persist when being borged</td></tr><tr><th><a href="datum/mind.html#proc/set_skill_value">set_skill_value</a></th><td>Sets the value of a skill.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/ambitions"><aside class="declaration">var </aside>ambitions <aside>– /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L81"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 81"></a></h3><p>Lazy list for antagonists to set goals they wish to achieve, to be shown at the round-end report.</p><h3 id="var/has_ever_been_ai"><aside class="declaration">var </aside>has_ever_been_ai <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L71"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 71"></a></h3><p>has this mind ever been an AI</p><h3 id="var/original_character"><aside class="declaration">var </aside>original_character <aside>– /<a href="datum.html">datum</a>/weakref</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L85"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 85"></a></h3><p>Weakref to the character we spawned in as- either at roundstart or latejoin, so we know for persistent scars if we ended as the same person or not</p><h3 id="var/skill_holder"><aside class="declaration">var </aside>skill_holder <aside>– /<a href="datum.html">datum</a>/<a href="datum/skill_holder.html">skill_holder</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L77"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 77"></a></h3><p>Our skill holder.</p><h3 id="var/special_statuses"><aside class="declaration">var </aside>special_statuses <aside>– /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L90"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 90"></a></h3><p>A lazy list of statuses to add next to this mind in the traitor panel</p><h2 id="proc">Proc Details</h2><h3 id="proc/action_skill_mod"><aside class="declaration">proc </aside>action_skill_mod<aside>(skill, value, threshold, modifier_is_multiplier) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/skills/_skill_holder.dm#L135"><img src="git.png" width="16" height="16" title="code/datums/skills/_skill_holder.dm 135"></a></aside></h3><p>Generic value modifier proc that uses one skill.
|
||
Args:</p>
|
||
<ul>
|
||
<li>value : the value to modify, may be a delay, damage, probability.</li>
|
||
<li>threshold : The difficulty of the action, in short. Refer to __DEFINES/skills/defines.dm for the defines.</li>
|
||
<li>modifier_is_multiplier : wheter the modifier is a multiplier or a divisor.</li>
|
||
</ul><h3 id="proc/auto_gain_experience"><aside class="declaration">proc </aside>auto_gain_experience<aside>(skill, value, maximum, silent) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/skills/_skill_holder.dm#L115"><img src="git.png" width="16" height="16" title="code/datums/skills/_skill_holder.dm 115"></a></aside></h3><p>Automatic skill increase, multiplied by skill affinity if existing.
|
||
Only works if skill is numerical or levelled..</p><h3 id="proc/boost_skill_value_to"><aside class="declaration">proc </aside>boost_skill_value_to<aside>(skill, value, silent, current) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/skills/_skill_holder.dm#L104"><img src="git.png" width="16" height="16" title="code/datums/skills/_skill_holder.dm 104"></a></aside></h3><p>Boosts a skill to a value if not aobve</p><h3 id="proc/equip_traitor"><aside class="declaration">proc </aside>equip_traitor<aside>(silent, /<a href="datum.html">datum</a>/<a href="datum/antagonist.html">antagonist</a>/antag_datum) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L339"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 339"></a></aside></h3><h2 id="give-uplink">give_uplink</h2>
|
||
<p>A mind proc for giving anyone an uplink.
|
||
arguments:</p>
|
||
<ul>
|
||
<li>silent: if this should send a message to the mind getting the uplink. traitors do not use this silence, but the silence var on their antag datum.</li>
|
||
<li>antag_datum: the antag datum of the uplink owner, for storing it in antag memory. optional!</li>
|
||
</ul><h3 id="proc/get_hijack_speed"><aside class="declaration">proc </aside>get_hijack_speed<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L1697"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 1697"></a></aside></h3><p>Sets our can_hijack to the fastest speed our antag datums allow.</p><h3 id="proc/get_skill_affinity"><aside class="declaration">proc </aside>get_skill_affinity<aside>(skill, apply_modifiers) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/skills/_skill_holder.dm#L72"><img src="git.png" width="16" height="16" title="code/datums/skills/_skill_holder.dm 72"></a></aside></h3><p>Grabs our affinity for a skill. !!This is a multiplier!!</p><h3 id="proc/get_skill_level"><aside class="declaration">proc </aside>get_skill_level<aside>(skill, apply_modifiers, round) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/skills/_skill_holder.dm#L55"><img src="git.png" width="16" height="16" title="code/datums/skills/_skill_holder.dm 55"></a></aside></h3><p>Grabs the level of a skill. Only supported by skills with tiers or levels.</p><h3 id="proc/get_skill_value"><aside class="declaration">proc </aside>get_skill_value<aside>(skill, apply_modifiers) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/skills/_skill_holder.dm#L39"><img src="git.png" width="16" height="16" title="code/datums/skills/_skill_holder.dm 39"></a></aside></h3><p>Grabs the value of a skill.</p><h3 id="proc/item_action_skills_mod"><aside class="declaration">proc </aside>item_action_skills_mod<aside>(/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/I, value, traits, bad_traits, modifier_is_multiplier) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/skills/_skill_holder.dm#L164"><img src="git.png" width="16" height="16" title="code/datums/skills/_skill_holder.dm 164"></a></aside></h3><p>Generic value modifier proc that uses several skills, intended for items.
|
||
Args:</p>
|
||
<ul>
|
||
<li>item/I : the item used in this action. its used_skills list variable contains the skills exercised with it.</li>
|
||
<li>value : the value to modify, may be a delay, damage, probability.</li>
|
||
<li>traits : the required traits each skill (either in I.used_skills or the skill datum skill_traits) must have to influence</li>
|
||
<li>
|
||
<pre><code> the value.
|
||
</code></pre>
|
||
</li>
|
||
<li>bad_traits : the opposite of the above.</li>
|
||
<li>modifier_is_multiplier : wheter the modifier is a multiplier or a divisor.</li>
|
||
</ul><h3 id="proc/remove_antags_for_borging"><aside class="declaration">proc </aside>remove_antags_for_borging<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/mind.dm#L308"><img src="git.png" width="16" height="16" title="code/datums/mind.dm 308"></a></aside></h3><p>Remove the antagonists that should not persist when being borged</p><h3 id="proc/set_skill_value"><aside class="declaration">proc </aside>set_skill_value<aside>(skill, value, silent) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/skills/_skill_holder.dm#L89"><img src="git.png" width="16" height="16" title="code/datums/skills/_skill_holder.dm 89"></a></aside></h3><p>Sets the value of a skill.</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> |