02-22-2020, 02:54 PM
https://github.com/goonstation/goonstati...y?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.
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.