[Change] Lottery system now rewards SpaceBux - Printable Version +- Goonstation Forums (https://forum.ss13.co) +-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6) +--- Forum: Patches (https://forum.ss13.co/forumdisplay.php?fid=30) +--- Thread: [Change] Lottery system now rewards SpaceBux (/showthread.php?tid=13947) |
[Change] Lottery system now rewards SpaceBux - Vengarr - 02-22-2020 https://github.com/goonstation/goonstation-2020/compare/master...Vengarr:lottery?expand=1 Lottery tickets tentatively cost 1,000 credits to compensate. The jackpot is currently set to 5,000 Spacebux initially, increasing by 5k for every round without a winner. Per the original code, you have about 1/81 chance of winning, so this may be too much. Adjusting the amount the jackpot increases per-round is as easy as changing the lotteryJackpot amount in proc/lotteryDay(). Also change the number in the initial announcement in startLottery() because I was lazy and hardcoded it. Additionally, the lottery will automatically begin with the first payday if no one has purchased a ticket before then. |