Add possibility of hit vs miss, and glitches
Is your feature request related to a problem? Please describe. No
Describe the solution you'd like In some games like Shadowrun the player have to throw n die and then if any dice value is less than or equal to x (e.g 1) it will be considered as miss. Then if number of misses is more than hits, it will be a glitch
Describe alternatives you've considered Don't have any idea at this point about alternative, sorry.
Additional context -- not applicable --
For this feature you need two sliders, one for the "less than" value and one for the number of hits?
I guess I add a setting to hide/show the new sliders to keep (for some people) unwanted sliders away.
Can you share a link to the game rules of Shadowrun? It can be implemented in Hacktoberfest.
Thank you for getting back on this, I believe this link is correct:
https://www.shadowrunsixthworld.com/resources/
@mueller-ma
I might have a go at this.
If you have specific design requirements, especially regarding the slider hiding, then please elaborate.
Please add one switch in the settings for both new sliders, like the "increment" slider:
- https://github.com/mueller-ma/TabletopTools/blob/main/app/src/main/res/xml/pref_main.xml#L20-L23
- Use the following function to read preferences: https://github.com/mueller-ma/TabletopTools/blob/main/app/src/main/java/com/github/muellerma/tabletoptools/utils/Prefs.kt#L21-L22
- And show or hide the slider: https://github.com/mueller-ma/TabletopTools/blob/main/app/src/main/java/com/github/muellerma/tabletoptools/ui/fragments/DicesFragment.kt#L42-L44