-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Is your feature request related to a problem? Please describe.
A different gambling mode should exist where all users that roll above a certain threshold get a payout, rolls below lose all gambled points. Optionally, if a specific roll comes up, the user wins the jackpot.
Describe the solution you'd like
- Add the new mode that implements the
GambleMode
interface.- The
GambleHandler
already supports changing modes via the interface.
- The
- Add a new parameter to be able to switch between available modes in Firebot (dropdown parameter selection is supported).
- That should also make it easier in future to add more modes.
- Add additional parameters needed to configure the new mode:
- threshold (
number
): above which a payout is possible; if this value is rolled exactly, a neutral result should be created - max roll: (
number
): to set set the range in which the random number can be to[0, maxRoll]
- jackpot target (
number
): a roll value that should be rolled exactly to result in a jackpot payout; set to-1
to disable - win scale factor (
number
): a factor by which the entered points should be scaled on a win; e.g. a user has 1000 points and gambles 100 of those. With a factor of 2 they should have 1200 points after a win.
- threshold (
Describe alternatives you've considered
none
Additional context
none
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request