tormenta20 - v0.0.0
    Preparing search index...

    Class Ameaca

    A threat (monster/enemy) stat block from Tormenta20 (Cap. 7).

    Ameaca.all()
    Ameaca.byGrupo("dragoes").orderBy("nd").all()
    Ameaca.find("basilisco")

    Hierarchy

    • BaseModel
      • Ameaca
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Ameaca

    Accessors

    • get ataques(): unknown[]

      JSON array of attack entries.

      Returns unknown[]

    • get atributos(): {
          car: number
          | null;
          con: number | null;
          des: number | null;
          for: number | null;
          int: number | null;
          sab: number | null;
      }

      Returns all 6 attributes as a plain object using standard T20 abbreviations.

      Returns {
          car: number | null;
          con: number | null;
          des: number | null;
          for: number | null;
          int: number | null;
          sab: number | null;
      }

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get curaAcelerada(): string | number | null

      Fast healing — a number (e.g. 10) or a string with an exception (e.g. "100/kaiju").

      Returns string | number | null

    • get equipamento(): string[]

      JSON array of equipment item names.

      Returns string[]

    • get familiar(): string | null

      Simple spellcaster-familiar benefit (free text), or null.

      Returns string | null

    • get forca(): number | null

      Força (Strength). Uses bracket access because for is a JS reserved word.

      Returns number | null

    • get grupo(): string

      Thematic group for browsing (e.g. "dragoes", "ermos").

      Returns string

    • get id(): string

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

      Returns string

    • get imunidades(): string[]

      JSON array of immunity names.

      Returns string[]

    • get livroId(): string

      Slug of the sourcebook this record was published in (e.g. "t20_eja").

      Returns string

    • get name(): string

      Display name.

      Returns string

    • get nd(): number

      Challenge rating (Nível de Desafio).

      Returns number

    • get parceiro(): Record<string, unknown> | null

      JSON object with tiered companion ("parceiro especial") benefits: { tipo, restricao, iniciante, veterano, mestre }.

      Returns Record<string, unknown> | null

    • get pericias(): Record<string, number>

      JSON object of skill bonuses by skill name.

      Returns Record<string, number>

    • get pm(): number | null

      Mana points, for spellcasting creatures.

      Returns number | null

    • get poderesEspeciais(): unknown[]

      JSON array of special abilities.

      Returns unknown[]

    • get reducaoDeDano(): string | number | null

      Damage reduction — a number (e.g. 10) or a string with an exception (e.g. "10/luz").

      Returns string | number | null

    • get resistenciaAMagia(): number | null

      Resistance to magic (bonus against spells targeting the creature), or null.

      Returns number | null

    • get resistencias(): Record<string, number>

      JSON object of resistance amounts by damage type.

      Returns Record<string, number>

    • get salvaguardas(): Record<string, number>

      JSON object with saving throw bonuses ({ fort, ref, von }).

      Returns Record<string, number>

    • get subtipo(): string | null

      Creature subtype, if any.

      Returns string | null

    • get tamanho(): string

      Size category (e.g. "médio", "grande").

      Returns string

    • get tipo(): string | null

      Creature type (e.g. "animal", "morto-vivo").

      Returns string | null

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    • get vulnerabilidades(): string[]

      JSON array of vulnerability names.

      Returns string[]

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          ataques: unknown[];
          atributos: {
              car: number | null;
              con: number | null;
              des: number | null;
              for: number | null;
              int: number | null;
              sab: number | null;
          };
          cura_acelerada: string
          | number
          | null;
          defesa: number | null;
          description: string | null;
          deslocamento: string | null;
          equipamento: string[];
          familiar: string | null;
          grupo: string;
          id: string;
          imunidades: string[];
          iniciativa: number | null;
          name: string;
          nd: number;
          parceiro: Record<string, unknown> | null;
          percepcao: number | null;
          pericias: Record<string, number>;
          pm: number | null;
          poderes_especiais: unknown[];
          pv: number | null;
          reducao_de_dano: string | number | null;
          resistencia_a_magia: number | null;
          resistencias: Record<string, number>;
          salvaguardas: Record<string, number>;
          subtipo: string | null;
          tamanho: string;
          tesouro: string | null;
          tipo: string | null;
          visao: string | null;
          vulnerabilidades: string[];
      }