Attention: All existing users will need to reset their password before being able to log in. Click here to reset. For more information on why, click here. (September 26) x


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Change] Lottery system now rewards SpaceBux
#1
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.


Forum Jump:


Users browsing this thread: 1 Guest(s)