This package for the Atom text editor lets you generate dice rolls and stats for tabletop games like Dungeons & Dragons directly in a text document. Use the key binding Ctrl+R or the command
rpg-dice:roll to append a dice roll result to the end of the current line.
The script will try to use selected text or text around the cursor to infer how many dice of how many sides to roll and what modifier to add. For example, try hitting Ctrl+R when the cursor is on
(3d6 + 7),
3dF (Fate/Fudge dice), or
(stat). You can repeat a roll by keeping the result selected. The default number and type of dice to use are configurable in settings.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.