tormenta20 - v0.0.0
    Preparing search index...

    Class Melhoria

    A Melhoria (item upgrade/improvement) in Tormenta20.

    Melhorias are purchased enhancements applied to existing equipment.

    Melhoria.all()
    Melhoria.find("resistente")

    Hierarchy

    • BaseModel
      • Melhoria
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Melhoria

    Accessors

    • get applicableTo(): unknown[]

      JSON array of equipment types this melhoria can be applied to.

      Returns unknown[]

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

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

      JSON object with mechanical effects.

      Returns Record<string, unknown>

    • get id(): string

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

      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 {
          applicable_to: unknown[];
          description: string | null;
          effects: Record<string, unknown>;
          id: string;
          name: string;
          price: number;
      }