tormenta20 - v0.0.0
    Preparing search index...

    Class Item

    A general adventuring Item in Tormenta20 (tools, supplies, etc.).

    Does not include weapons, armors, or shields — those have dedicated models.

    Item.all()
    Item.byCategory("alquimia").all()
    Item.find("kit_de_aventureiro")

    Hierarchy

    • BaseModel
      • Item
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Item

    Accessors

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

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

      JSON object with mechanical effects (varies by item).

      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

    • get weight(): number

      Weight in spaces (espaços).

      Returns number

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          category: string | null;
          description: string | null;
          effects: Record<string, unknown>;
          id: string;
          name: string;
          price: number;
          weight: number;
      }