Skip to content

Add dice roll explosion notation #88

Description

@Vlek

Add a notation to dice rolls that allows for a dice to be rolled, and, if it lands on a specific value, the initial value is kept and the dice is re-rolled. The notation should allow for the lowercase variant to re-roll only one and the uppercase should re-roll as many times as the number is hit.

This is different from the re-roll notation in that it keeps the initial value and adds it towards the total for the roll.

Examples:

# Example 1
roll 1d6p6
Rolled 6
Rolled 3
Total: 9

# Example 2
roll 1d6p6
Rolled 6
Rolled 6
Total: 12

# Example 3
roll 1d6P6
Rolled 6
Rolled 3
Total: 9

# Example 4
roll 1d6P6
Rolled 6
Rolled 6
Rolled 2
Total: 14

# Example 5
roll 1d6P6
Rolled 6
Rolled 6
Rolled 6
Rolled 5
Total: 23

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions