roll-parser - v3.4.0
    Preparing search index...

    Type Alias UnaryOpNode

    UnaryOpNode: NodeSpan & { operand: ASTNode; operator: "-"; type: "UnaryOp" }

    Unary operation node — prefix negation, the only unary operator.

    Binding power 25 sits between multiplication and power, so -1d4 is -(1d4) (negate the roll) rather than (-1)d4, while -2**2 is -(2**2).