Goonstation Forums
[Change] Lottery system now rewards SpaceBux - Printable Version

+- Goonstation Forums (
+-- Forum: Discussion (
+--- Forum: Patches (
+--- Thread: [Change] Lottery system now rewards SpaceBux (/showthread.php?tid=13947)

[Change] Lottery system now rewards SpaceBux - Vengarr - 02-22-2020

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.