mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 14:37:04 +01:00
2 lines
8.3 KiB
HTML
2 lines
8.3 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/status_effect/cursed - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="datum/status_effect/cursed.html#var">Var Details</a> - <a href="datum/status_effect/cursed.html#proc">Proc Details</a></header><main><h1>cursed <aside>/<a href="datum.html">datum</a>/<a href="datum/status_effect.html">status_effect</a>/<a href="datum/status_effect/cursed.html">cursed</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1274"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1274"></a></h1><p>Status effect that gives the target miscellanous debuffs while throwing a status alert and causing them to smoke from the damage they're incurring.
|
||
Purposebuilt for cursed slot machines.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/status_effect/cursed.html#var/branded_hand">branded_hand</a></th><td>The hand we are branded to.</td></tr><tr><th><a href="datum/status_effect/cursed.html#var/curse_count">curse_count</a></th><td>The amount of times we have been "applied" to the target.</td></tr><tr><th><a href="datum/status_effect/cursed.html#var/damage_chance">damage_chance</a></th><td>Raw probability we have to deal damage this tick.</td></tr><tr><th><a href="datum/status_effect/cursed.html#var/max_curse_count">max_curse_count</a></th><td>The max number of curses a target can incur with this status effect.</td></tr><tr><th><a href="datum/status_effect/cursed.html#var/monologuing">monologuing</a></th><td>Are we currently in the process of sending a monologue?</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/status_effect/cursed.html#proc/check_curses">check_curses</a></th><td>Checks the number of curses we have and returns information back to the slot machine. <code>max_curse_amount</code> is set by the slot machine itself.</td></tr><tr><th><a href="datum/status_effect/cursed.html#proc/clear_curses">clear_curses</a></th><td>Cleans ourselves up and removes our curses. Meant to be done in a "positive" way, when the curse is broken. Directly use qdel otherwise.</td></tr><tr><th><a href="datum/status_effect/cursed.html#proc/handle_after_effects">handle_after_effects</a></th><td>Makes a nice lorey message about the curse level we're at. I think it's nice</td></tr><tr><th><a href="datum/status_effect/cursed.html#proc/on_death">on_death</a></th><td>If our owner dies without getting gibbed, we gib them, because fuck you baltamore</td></tr><tr><th><a href="datum/status_effect/cursed.html#proc/on_stat_changed">on_stat_changed</a></th><td>If our owner's stat changes, rapidly surge the damage chance.</td></tr><tr><th><a href="datum/status_effect/cursed.html#proc/update_curse_count">update_curse_count</a></th><td>Handles the debuffs of this status effect and incrementing the number of curses we have.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/branded_hand"><aside class="declaration">var </aside>branded_hand <aside>– /<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/<a href="obj/item/organ.html">organ</a>/<a href="obj/item/organ/external.html">external</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1286"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1286"></a></h3><p>The hand we are branded to.</p><h3 id="var/curse_count"><aside class="declaration">var </aside>curse_count <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1280"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1280"></a></h3><p>The amount of times we have been "applied" to the target.</p><h3 id="var/damage_chance"><aside class="declaration">var </aside>damage_chance <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1282"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1282"></a></h3><p>Raw probability we have to deal damage this tick.</p><h3 id="var/max_curse_count"><aside class="declaration">var </aside>max_curse_count <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1278"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1278"></a></h3><p>The max number of curses a target can incur with this status effect.</p><h3 id="var/monologuing"><aside class="declaration">var </aside>monologuing <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1284"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1284"></a></h3><p>Are we currently in the process of sending a monologue?</p><h2 id="proc">Proc Details</h2><h3 id="proc/check_curses"><aside class="declaration">proc </aside>check_curses<aside>(/<a href="mob.html">mob</a>/user, max_curse_amount) <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1302"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1302"></a></aside></h3><p>Checks the number of curses we have and returns information back to the slot machine. <code>max_curse_amount</code> is set by the slot machine itself.</p><h3 id="proc/clear_curses"><aside class="declaration">proc </aside>clear_curses<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1377"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1377"></a></aside></h3><p>Cleans ourselves up and removes our curses. Meant to be done in a "positive" way, when the curse is broken. Directly use qdel otherwise.</p><h3 id="proc/handle_after_effects"><aside class="declaration">proc </aside>handle_after_effects<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1321"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1321"></a></aside></h3><p>Makes a nice lorey message about the curse level we're at. I think it's nice</p><h3 id="proc/on_death"><aside class="declaration">proc </aside>on_death<aside>(/<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/source, gibbed) <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1396"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1396"></a></aside></h3><p>If our owner dies without getting gibbed, we gib them, because fuck you baltamore</p><h3 id="proc/on_stat_changed"><aside class="declaration">proc </aside>on_stat_changed<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1386"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1386"></a></aside></h3><p>If our owner's stat changes, rapidly surge the damage chance.</p><h3 id="proc/update_curse_count"><aside class="declaration">proc </aside>update_curse_count<aside>() <a href="https://github.com/ParadiseSS13/Paradise/blob/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7/code/datums/status_effects/debuffs.dm#L1312"><img src="git.png" width="16" height="16" title="code/datums/status_effects/debuffs.dm 1312"></a></aside></h3><p>Handles the debuffs of this status effect and incrementing the number of curses we have.</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/c8dfcdac13f08c689c3a1cf77d6f1a90087d1dd7">c8dfcda</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |