tormenta20 - v0.0.0
    Preparing search index...

    Class Origem

    An Origem (character origin/background) in Tormenta20.

    Origins grant starting equipment, skill training, powers, and optionally a unique ability (uniquePower).

    Origem.all()
    Origem.withUniquePower().all()
    Origem.find("nobre")

    const nobre = Origem.find("nobre")!
    nobre.skills() // ["Diplomacia", "Nobreza"]
    nobre.powers() // ["poder_id"]

    Hierarchy

    • BaseModel
      • Origem
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Origem

    Accessors

    • get benefits(): Record<string, unknown>

      Raw benefits object with skills and powers arrays.

      Returns Record<string, unknown>

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get id(): string

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

      Returns string

    • get items(): unknown[]

      Starting equipment descriptors.

      Returns unknown[]

    • get name(): string

      Display name.

      Returns string

    • get uniquePower(): string | null

      ID of the unique power granted by this origin, or null.

      Returns string | null

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    Methods

    • Returns power IDs granted by this origin.

      Returns string[]

    • Returns skill IDs granted by this origin.

      Returns string[]

    • Returns a plain-object representation of this record.

      Returns {
          benefits: Record<string, unknown>;
          description: string;
          id: string;
          items: unknown[];
          name: string;
          unique_power: string | null;
      }