cursed_slot_machine ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 2](git.png)
Greed's slot machine: Used in the Greed ruin. Deals damage on each use, with a successful use giving a d20 of fate.
Vars | |
brightness_on | Should we be emitting light? |
---|---|
cooldown_length | Length of the cooldown between the machine being used and being able to spin the machine again. |
icon_screen | Variable that tracks the screen we display. |
in_use | Are we currently in use? Anti-spam prevention measure. |
max_curse_amount | The maximum amount of curses we will allow a player to have before disallowing them to use the machine. |
prize | machine's reward when you hit jackpot |
spin_cooldown | Cooldown between pulls of the cursed slot machine. |
status_effect_on_roll | should we be applying the cursed status effect? |
win_prob | The probability the player has to win. |
Procs | |
check_and_set_usage | 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. |
Var Details
brightness_on ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 12](git.png)
Should we be emitting light?
cooldown_length ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 22](git.png)
Length of the cooldown between the machine being used and being able to spin the machine again.
icon_screen ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 10](git.png)
Variable that tracks the screen we display.
in_use ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 24](git.png)
Are we currently in use? Anti-spam prevention measure.
max_curse_amount ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 16](git.png)
The maximum amount of curses we will allow a player to have before disallowing them to use the machine.
prize ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 18](git.png)
machine's reward when you hit jackpot
spin_cooldown ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 26](git.png)
Cooldown between pulls of the cursed slot machine.
status_effect_on_roll ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 20](git.png)
should we be applying the cursed status effect?
win_prob ![code/modules/mapfluff/ruins/objects_and_mobs/cursed_slot_machine.dm 14](git.png)
The probability the player has to win.
Proc Details
check_and_set_usage
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.