roll-parser - v3.0.0-beta.0
    Preparing search index...

    Type Alias VersusNode

    VersusNode: NodeSpan & { dc: ASTNode; roll: ASTNode; type: "Versus" }

    Versus node (<roll> vs <dc>) — PF2e Degrees of Success.

    Both sides are full expressions. The roll side is evaluated and compared against the dc side total, producing a DegreeOfSuccess with natural d20 upgrade/downgrade applied when exactly one kept d20 appears on the roll side. Lowest-precedence operator — chaining (a vs b vs c) is rejected at parse time; nesting via parens (a vs (b vs c)) is rejected at evaluation time.