/gamble


adds the /gamble <all | half | random | [amount]> command

Tweaks
6 months ago
1.1
230
Owner:
asher_sky
Source:
N/A
Homepage:
N/A
License:
CC BY-NC-SA
Created:
7 months ago
Latest Version:
0.0.2 (6 months ago)
Factorio version:
1.1
Downloaded by:
230 users

Overview

Adds the /gamble <all | half | random | [amount]> chat command.

Default currency is coins. Currency can be changed in mod settings.

Odds Breakdown:
Roll 00 - 09: Win 0.00x
Roll 10 - 19: Win 0.25x
Roll 20 - 29: Win 0.33x
Roll 30 - 39: Win 0.50x
Roll 40 - 49: Win 1.00x
Roll 50 - 59: Win 1.50x
Roll 60 - 69: Win 2.00x
Roll 70 - 79: Win 2.50x
Roll 80 - 89: Win 3.00x
Roll 90 - 94: Win 4.00x
Roll 95 - 99: Win 5.00x
Roll 100: Win 10.00x


Features

  • Smart Bet Detection: Parameters are parsed via search; "/gamble all!" works the same as "/gamble all". Priority is "all" > "half" > "random" > [number]
  • Smart Notifications: Only successful bets are broadcast to the server, all other notifications are just sent to the player who attempted to gamble
  • Overflow Protection: If you win more than you can carry, the overflow will be spilled onto the ground around you
  • Spam Protection: A per-player command cooldown is enforced. Cooldown can be changed in mod settings. Default cooldown is 15 seconds
  • Custom Currency: Currency can be changed in mod settings. Default currency is Coins

Translation

Help translate /gamble to more languages: https://crowdin.com/project/factorio-mods-localization
Currently available locale:
- English (en)
- Ukrainian (uk)


Compatibility

There are currently no known mod compatibility issues. To report a compatibility issue, please make a post on the discussion page.


License

/gamble © 2023 by asher_sky is licensed under Attribution-NonCommercial-ShareAlike 4.0 International.
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/