mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 21:48:21 +01:00
1 line
7.4 KiB
HTML
1 line
7.4 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/obj/structure/cursed_slot_machine - 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="obj/structure/cursed_slot_machine.html#var">Var Details</a> - <a href="obj/structure/cursed_slot_machine.html#proc">Proc Details</a></header><main><h1>cursed_slot_machine <aside>/<a href="obj.html">obj</a>/<a href="obj/structure.html">structure</a>/<a href="obj/structure/cursed_slot_machine.html">cursed_slot_machine</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L5"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 5"></a></h1><p>Greed's slot machine: Used in the Greed ruin. Deals damage on each use, with a successful use giving a d20 of fate.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/brightness_on">brightness_on</a></th><td>Should we be emitting light?</td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/cooldown_length">cooldown_length</a></th><td>Length of the cooldown between the machine being used and being able to spin the machine again.</td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/icon_screen">icon_screen</a></th><td>Variable that tracks the screen we display.</td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/in_active_use">in_active_use</a></th><td>Are we currently in use? Anti-spam prevention measure.</td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/max_curse_amount">max_curse_amount</a></th><td>The maximum amount of curses we will allow a player to have before disallowing them to use the machine.</td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/prize">prize</a></th><td>machine's reward when you hit jackpot</td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/spin_cooldown">spin_cooldown</a></th><td>Cooldown between pulls of the cursed slot machine.</td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/status_effect_on_roll">status_effect_on_roll</a></th><td>should we be applying the cursed status effect?</td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#var/win_prob">win_prob</a></th><td>The probability the player has to win.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj/structure/cursed_slot_machine.html#proc/check_and_set_usage">check_and_set_usage</a></th><td>Validates that the user can use the cursed slot machine. User is the person using the slot machine. Returns TRUE if we can, FALSE otherwise.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/brightness_on"><aside class="declaration">var </aside>brightness_on <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L15"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 15"></a></h3><p>Should we be emitting light?</p><h3 id="var/cooldown_length"><aside class="declaration">var </aside>cooldown_length <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L25"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 25"></a></h3><p>Length of the cooldown between the machine being used and being able to spin the machine again.</p><h3 id="var/icon_screen"><aside class="declaration">var </aside>icon_screen <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L13"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 13"></a></h3><p>Variable that tracks the screen we display.</p><h3 id="var/in_active_use"><aside class="declaration">var </aside>in_active_use <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L27"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 27"></a></h3><p>Are we currently in use? Anti-spam prevention measure.</p><h3 id="var/max_curse_amount"><aside class="declaration">var </aside>max_curse_amount <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L19"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 19"></a></h3><p>The maximum amount of curses we will allow a player to have before disallowing them to use the machine.</p><h3 id="var/prize"><aside class="declaration">var </aside>prize <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L21"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 21"></a></h3><p>machine's reward when you hit jackpot</p><h3 id="var/spin_cooldown"><aside class="declaration">var </aside>spin_cooldown <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L29"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 29"></a></h3><p>Cooldown between pulls of the cursed slot machine.</p><h3 id="var/status_effect_on_roll"><aside class="declaration">var </aside>status_effect_on_roll <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L23"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 23"></a></h3><p>should we be applying the cursed status effect?</p><h3 id="var/win_prob"><aside class="declaration">var </aside>win_prob <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L17"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 17"></a></h3><p>The probability the player has to win.</p><h2 id="proc">Proc Details</h2><h3 id="proc/check_and_set_usage"><aside class="declaration">proc </aside>check_and_set_usage<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>/user) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/modules/ruins/lavalandruin_code/sin_ruins.dm#L59"><img src="git.png" width="16" height="16" title="code/modules/ruins/lavalandruin_code/sin_ruins.dm 59"></a></aside></h3><p>Validates that the user can use the cursed slot machine. User is the person using the slot machine. Returns TRUE if we can, FALSE otherwise.</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |