This website requires JavaScript.
Explore
Help
Sign In
projectmoon
/
tenebrous-dicebot
Watch
1
Star
0
Fork
You've already forked tenebrous-dicebot
1
Code
Issues
12
Pull Requests
1
Projects
Releases
10
Wiki
Activity
35485cdfc8
tenebrous-dicebot
/
.gitignore
8 lines
58 B
Plaintext
Raw
Normal View
History
Unescape
Escape
gitignore updates
2020-08-23 21:20:04 +00:00
target/
dicebot-config
todo
Dice pool and command parser rewrite to prepare for user variables. This commit refactors the parsing and rolling for the dice pool system to prepare for support of user variables. The nom parser was dropped in favor of the easier-to-understand combine parser in most parts of the code. A breaking change was introduced into the dice pool syntax to allow for proper expressions and variables. The syntax is now "modifiers:pool-amount", e.g. "n:gnosis+8". The simple single-number syntax with no modifiers is also still understood. Dice pool expressions are translated into a Vec of "Amount" objects, stored by the DicePool struct. They have an operator (+ or -) and either a number or variable name. When the dice pool is rolled, this list of Amonuts are is collapsed into a single number that is rolled, as it was before the refactor. The following changes were made to the dice rolling code: - Store Vec<Amount> on DicePool instead of single number to roll. - New struct RolledDicePool to store result of a dice pool roll. - Remove Display trait from DicePool, move it over to RolledDicePool. - Separate extra dice pool info into DicePoolModifiers. - DicePoolModifiers is shared between DicePool and RolledDicePool. - Dice parsing and rolling now return standard Result objects. This commit does NOT enable support of actually using variables. Any dice pool roll containing a variable will result in an eror. The command parser was also rewritten to use combine and rely on the standard Result pattern.
2020-10-04 21:32:50 +00:00
todo.org
Set cache dir to something more accessible.
2020-08-27 19:44:16 +00:00
cache
Add tar files to gitignore
2020-08-27 19:44:41 +00:00
*.tar
*.tar.gz