tormenta20 - v0.0.0
    Preparing search index...

    Class Arma

    An Arma (weapon) in Tormenta20.

    Arma.marciais().all()
    Arma.ranged().all()
    Arma.melee().where("damage_type = ?", "corte").all()
    Arma.find("espada_longa")

    Hierarchy

    • BaseModel
      • Arma
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Arma

    Accessors

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get critical(): string

      Critical threat range and multiplier (e.g. "19-20/x2").

      Returns string

    • get damage(): string

      Damage dice expression (e.g. "1d8").

      Returns string

    • get id(): string

      Unique string identifier (e.g. "espada_longa", "guerreiro").

      Returns string

    • get isMelee(): boolean

      true if the weapon is melee-only.

      Returns boolean

    • get isRanged(): boolean

      true if the weapon has a range increment.

      Returns boolean

    • get name(): string

      Display name.

      Returns string

    • get properties(): unknown[]

      JSON array of special property objects.

      Returns unknown[]

    • get range(): string | null

      Range increment in metres, or null for melee-only weapons.

      Returns string | null

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    • get weight(): number

      Weight in spaces (espaços).

      Returns number

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          category: ArmaCategory;
          critical: string;
          damage: string;
          damage_type: DamageType;
          description: string | null;
          id: string;
          name: string;
          price: number;
          properties: unknown[];
          range: string | null;
          weight: number;
      }