tormenta20 - v0.0.0
    Preparing search index...

    Class Poder

    A Poder (power or ability) in Tormenta20.

    Powers represent feats, class features, racial abilities, deity-granted powers, and Tormenta corruption abilities.

    Poder.poderesCombate().all()          // all combat powers
    Poder.byOrigin("nobre").all() // powers from the Nobre origin
    Poder.byDeity("khalmyr").all() // powers granted by Khalmyr
    Poder.find("arma_do_tempo") // find by id

    Hierarchy

    • BaseModel
      • Poder
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Poder

    Accessors

    • get classId(): string | null

      ID of the associated Classe, or null for non-class powers.

      Returns string | null

    • get costs(): unknown[]

      JSON array of activation cost descriptors (PM costs, etc.).

      Returns unknown[]

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get deities(): string[]

      IDs of deities that grant this power (for poder_concedido).

      Returns string[]

    • get effects(): unknown[]

      JSON array of effect objects. Structure varies by type — see PoderType docs.

      Returns unknown[]

    • get id(): string

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

      Returns string

    • get name(): string

      Display name.

      Returns string

    • get originId(): string | null

      ID of the associated Origem, or null for non-origin powers.

      Returns string | null

    • get prerequisites(): unknown[]

      JSON array of prerequisite descriptors.

      Returns unknown[]

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          class_id: string | null;
          costs: unknown[];
          deities: string[];
          description: string | null;
          effects: unknown[];
          id: string;
          name: string;
          origin_id: string | null;
          prerequisites: unknown[];
          type: PoderType;
      }