Closed queueseven closed 6 years ago
I find such a button a bit restricting, since not very often you want to put equal odds 33% on every chance. What I think would be more flexible is a local (just JS, no server communication) die roll, with being able to select the number of die sides (e.g. d3, d6 and d10) and let them make decisions themselves based on the roll. This way players could mimic real life random decision making.
Related: #1195
Would integrating something like this in the client do the job: https://github.com/noviny/react-dice ?
There's another nice one http://vicentemundim.github.io/dice-roller/examples.html , but this one seems to use angular, which is not using in this app.
A little overkill to use a library for generating a random number... ;-)
Well, the idea was more to have an actually dice rolling on the screen, but if it's ok to just generate a random number, yeah, no library needed
Well, if you want to take the time to implement this, feel free to make a pull request. I just don't know if such a dice animation would fit into the sites appearance, but if you could make it work... ;-)
...to randomly spend 0,1 or 2 $