lifelike / decide-mode

Random decisions for emacs, with functions and a minor mode. Roll various types of dice etc.
49 stars 12 forks source link

Fudge dice don't work. #17

Closed AkashaRepo closed 2 weeks ago

AkashaRepo commented 11 months ago

The documentation says this mode supports fudge dice, but when I try to use that feature, instead it gives the following output

[4d0] -> (79990312922493200 1516032711445625042 1698921923648616685 1109014288220209241) = -207726782190443736

This appears similar to issue https://github.com/lifelike/decide-mode/issues/5 where unknown die notation produces similar results.

lifelike commented 11 months ago

Made an attempt to fix dice-parsing and clean up the code, but it still has some issues (currently the old problem with "+0" is back for instance). Will post something when it works as it should. Thanks for reporting this! I have used regular die-rolls a lot, but not the custom dice.

AkashaRepo commented 11 months ago

This is what git hub is for! The rest of the internet gets to beta test for free.

lifelike commented 11 months ago

I pushed a new branch with some tests and a fix for dice that seems to work (but my elisp for parsing numbers is a mess right now!): https://github.com/lifelike/decide-mode/tree/ert-0.10.0