1 line
5.4 KiB
HTML
1 line
5.4 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/martial_art - /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/martial_art.html#var">Var Details</a> - <a href="datum/martial_art.html#proc">Proc Details</a></header><main><h1>martial_art <aside>/<a href="datum.html">datum</a>/<a href="datum/martial_art.html">martial_art</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/martial/_martial.dm#L1"><img src="git.png" width="16" height="16" title="code/datums/martial/_martial.dm 1"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/martial_art.html#var/block_parry_data">block_parry_data</a></th><td>Set this variable to something not null, this'll be the preferred unarmed parry in most cases if [can_martial_parry] is TRUE. YOU MUST RUN [get_block_parry_data(this)] INSTEAD OF DIRECTLY ACCESSING!</td></tr><tr><th><a href="datum/martial_art.html#var/can_martial_parry">can_martial_parry</a></th><td>Can we be used to unarmed parry?</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/martial_art.html#proc/active_parry_reflex_counter">active_parry_reflex_counter</a></th><td>Called when an attack is parried and block_parra_data indicates to use a proc to handle counterattack.</td></tr><tr><th><a href="datum/martial_art.html#proc/on_active_parry">on_active_parry</a></th><td>Called when an attack is parried using this, whether or not the parry was successful.</td></tr><tr><th><a href="datum/martial_art.html#proc/on_projectile_hit">on_projectile_hit</a></th><td>Gets called when a projectile hits the owner. Returning anything other than BULLET_ACT_HIT will stop the projectile from hitting the mob.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/block_parry_data"><aside class="declaration">var </aside>block_parry_data <aside>– /<a href="datum.html">datum</a>/<a href="datum/block_parry_data.html">block_parry_data</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/martial/_martial.dm#L16"><img src="git.png" width="16" height="16" title="code/datums/martial/_martial.dm 16"></a></h3><p>Set this variable to something not null, this'll be the preferred unarmed parry in most cases if [can_martial_parry] is TRUE. YOU MUST RUN [get_block_parry_data(this)] INSTEAD OF DIRECTLY ACCESSING!</p><h3 id="var/can_martial_parry"><aside class="declaration">var </aside>can_martial_parry <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/martial/_martial.dm#L14"><img src="git.png" width="16" height="16" title="code/datums/martial/_martial.dm 14"></a></h3><p>Can we be used to unarmed parry?</p><h2 id="proc">Proc Details</h2><h3 id="proc/active_parry_reflex_counter"><aside class="declaration">proc </aside>active_parry_reflex_counter<aside>(/<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/owner, /<a href="atom.html">atom</a>/object, damage, attack_text, attack_type, armour_penetration, /<a href="mob.html">mob</a>/attacker, def_zone, /list/return_list, parry_efficiency, /list/effect_text) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mob/living/living_active_parry.dm#L226"><img src="git.png" width="16" height="16" title="code/modules/mob/living/living_active_parry.dm 226"></a></aside></h3><p>Called when an attack is parried and block_parra_data indicates to use a proc to handle counterattack.</p><h3 id="proc/on_active_parry"><aside class="declaration">proc </aside>on_active_parry<aside>(/<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/owner, /<a href="atom.html">atom</a>/object, damage, attack_text, attack_type, armour_penetration, /<a href="mob.html">mob</a>/attacker, def_zone, /list/block_return, parry_efficiency, parry_time, autoparry) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/mob/living/living_active_parry.dm#L211"><img src="git.png" width="16" height="16" title="code/modules/mob/living/living_active_parry.dm 211"></a></aside></h3><p>Called when an attack is parried using this, whether or not the parry was successful.</p><h3 id="proc/on_projectile_hit"><aside class="declaration">proc </aside>on_projectile_hit<aside>(/<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/<a href="mob/living/carbon.html">carbon</a>/<a href="mob/living/carbon/human.html">human</a>/A, /<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/<a href="obj/item/projectile.html">projectile</a>/P, def_zone) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/datums/martial/_martial.dm#L102"><img src="git.png" width="16" height="16" title="code/datums/martial/_martial.dm 102"></a></aside></h3><p>Gets called when a projectile hits the owner. Returning anything other than BULLET_ACT_HIT will stop the projectile from hitting the mob.</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> |