/tg/ Station 13 - Modules - TypesProc Details

roulette

Machine that lets you play roulette. Odds are pre-defined to be the same as European Roulette without the "En Prison" rule

Procs

attackbyHandles setting ownership and the betting itself.
check_owner_fundsReturns TRUE if the owner has enough funds to payout
check_winReturns TRUE if the player bet correctly.
dispense_prizeFills a list of coins that should be dropped.
drop_coinRecursive function that runs until it runs out of coins to drop.
finish_playRan after a while to check if the player won or not.
on_my_card_deleteddeletes the my_card ref to prevent harddels
playProc called when player is going to try and play
prize_theftFills a list of coins that should be dropped.

Proc Details

attackby

Handles setting ownership and the betting itself.

check_owner_funds

Returns TRUE if the owner has enough funds to payout

check_win

Returns TRUE if the player bet correctly.

dispense_prize

Fills a list of coins that should be dropped.

drop_coin

Recursive function that runs until it runs out of coins to drop.

finish_play

Ran after a while to check if the player won or not.

on_my_card_deleted

deletes the my_card ref to prevent harddels

play

Proc called when player is going to try and play

prize_theft

Fills a list of coins that should be dropped.