tormenta20 - v0.0.0
    Preparing search index...

    Variable DamageStepConst

    DamageStep: { adjust(dice: string, steps: number): string | undefined } = ...

    Damage step rules for weapon damage dice (Tormenta20 core rules, Tabela: Passos de Dano).

    Effects that increase or decrease weapon damage "by steps" move the damage die along a fixed progression, from -2 to +3 steps relative to the weapon's normal die.

    Type Declaration

    • adjust: function
      • Returns the damage die after shifting it a number of steps up or down.

        Parameters

        • dice: string

          the weapon's current normal damage die (e.g. "1d8")

        • steps: number

          steps to shift, positive (up) or negative (down); clamped to the table's range (-2 to +3)

        Returns string | undefined

        the resulting die, or undefined if dice isn't a known normal damage die

        DamageStep.adjust("1d8", 2) // "1d12"
        DamageStep.adjust("1d8", -1) // "1d6"