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

1 line
6.4 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>/obj/effect/proc_holder/spell/cone - /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="obj/effect/proc_holder/spell/cone.html#var">Var Details</a> - <a href="obj/effect/proc_holder/spell/cone.html#proc">Proc Details</a></header><main><h1>cone <aside>/<a href="obj.html">obj</a>/<a href="obj/effect/proc_holder/spell.html">effect/proc_holder/spell</a>/<a href="obj/effect/proc_holder/spell/cone.html">cone</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L1"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 1"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/effect/proc_holder/spell/cone.html#var/cone_levels">cone_levels</a></th><td>This controls how many levels the cone has, increase this value to make a bigger cone.</td></tr><tr><th><a href="obj/effect/proc_holder/spell/cone.html#var/respect_density">respect_density</a></th><td>This value determines if the cone penetrates walls.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj/effect/proc_holder/spell/cone.html#proc/calculate_cone_shape">calculate_cone_shape</a></th><td>This proc adjusts the cones width depending on the level.</td></tr><tr><th><a href="obj/effect/proc_holder/spell/cone.html#proc/cone_helper">cone_helper</a></th><td>This proc creates a list of turfs that are hit by the cone</td></tr><tr><th><a href="obj/effect/proc_holder/spell/cone.html#proc/do_cone_effects">do_cone_effects</a></th><td>This proc does obj, mob and turf cone effects on all targets in a list</td></tr><tr><th><a href="obj/effect/proc_holder/spell/cone.html#proc/do_mob_cone_effect">do_mob_cone_effect</a></th><td>This proc deterimines how the spell will affect mobs.</td></tr><tr><th><a href="obj/effect/proc_holder/spell/cone.html#proc/do_obj_cone_effect">do_obj_cone_effect</a></th><td>This proc deterimines how the spell will affect objects.</td></tr><tr><th><a href="obj/effect/proc_holder/spell/cone.html#proc/do_turf_cone_effect">do_turf_cone_effect</a></th><td>This proc deterimines how the spell will affect turfs.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/cone_levels"><aside class="declaration">var </aside>cone_levels <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L14"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 14"></a></h3><p>This controls how many levels the cone has, increase this value to make a bigger cone.</p><h3 id="var/respect_density"><aside class="declaration">var </aside>respect_density <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L16"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 16"></a></h3><p>This value determines if the cone penetrates walls.</p><h2 id="proc">Proc Details</h2><h3 id="proc/calculate_cone_shape"><aside class="declaration">proc </aside>calculate_cone_shape<aside>(current_level) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L102"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 102"></a></aside></h3><p>This proc adjusts the cones width depending on the level.</p><h3 id="proc/cone_helper"><aside class="declaration">proc </aside>cone_helper<aside>(/<a href="turf.html">turf</a>/starter_turf, dir_to_use, cone_levels) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L22"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 22"></a></aside></h3><p>This proc creates a list of turfs that are hit by the cone</p><h3 id="proc/do_cone_effects"><aside class="declaration">proc </aside>do_cone_effects<aside>(/list/target_turf_list, level) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L76"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 76"></a></aside></h3><p>This proc does obj, mob and turf cone effects on all targets in a list</p><h3 id="proc/do_mob_cone_effect"><aside class="declaration">proc </aside>do_mob_cone_effect<aside>(/<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/target_mob, level) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L98"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 98"></a></aside></h3><p>This proc deterimines how the spell will affect mobs.</p><h3 id="proc/do_obj_cone_effect"><aside class="declaration">proc </aside>do_obj_cone_effect<aside>(/<a href="obj.html">obj</a>/target_obj, level) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L94"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 94"></a></aside></h3><p>This proc deterimines how the spell will affect objects.</p><h3 id="proc/do_turf_cone_effect"><aside class="declaration">proc </aside>do_turf_cone_effect<aside>(/<a href="turf.html">turf</a>/target_turf, level) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/spells/spell_types/cone_spells.dm#L90"><img src="git.png" width="16" height="16" title="code/modules/spells/spell_types/cone_spells.dm 90"></a></aside></h3><p>This proc deterimines how the spell will affect turfs.</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>