tormenta20 - v0.0.0
    Preparing search index...

    Class ClasseVariante

    A Classe Variante (variant class) in Tormenta20.

    A specialized version of a base class (e.g. Duelista is a Bucaneiro variant). Stored as a diff over the base class: diffs lists, per level, which base-class abilities are removed and which new ones are added. Consumers must resolve the diff against the base Classe record to build the final character sheet.

    const variante = ClasseVariante.find("duelista")
    Classe.find(variante.baseClassId) // the Bucaneiro Classe record
    variante.diffs // [{ nivel: 1, remove: [...], adiciona: [...] }, ...]

    Hierarchy

    • BaseModel
      • ClasseVariante
    Index

    Constructors

    Accessors

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get diffs(): unknown[]

      JSON array of per-level diffs against the base class: { nivel, remove, adiciona }.

      Returns unknown[]

    • get id(): string

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

      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 updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          base_class_id: string;
          description: string | null;
          diffs: unknown[];
          id: string;
          name: string;
      }