tormenta20 - v0.0.0
    Preparing search index...

    Class Magia

    A Magia (spell) in Tormenta20.

    Magia.arcanas().where("circle = ?", "3").all()
    Magia.divinas().all()
    Magia.bySchool("necro").all()
    Magia.find("bola_de_fogo")

    Hierarchy

    • BaseModel
      • Magia
    Index

    Constructors

    • Parameters

      • _row: Record<string, unknown>

      Returns Magia

    Accessors

    • get circle(): string

      Circle (level) of the spell, stored as a string (e.g. "1", "2", "3").

      Returns string

    • get counterspell(): string | null

      ID of the counterspell, or null.

      Returns string | null

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get effects(): unknown[]

      JSON array of mechanical effect objects.

      Returns unknown[]

    • get enhancements(): unknown[]

      JSON array of enhancement objects (aprimoramentos).

      Returns unknown[]

    • get execution(): string

      Casting time (e.g. "padrão", "completa").

      Returns string

    • 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 extra casting costs (material components, PM sacrifice, etc.), or null if none exist.

      Returns Record<string, unknown> | null

    • Returns resistance information (saving throw), or null if the spell allows no save.

      Returns { effect: string; skill: string } | null

    • Returns target information, or null if the spell has no specific target count/type.

      Returns { amount: number | null; type: string | null; upTo: boolean } | null

    • Returns a plain-object representation of this record.

      Returns {
          circle: string;
          counterspell: string | null;
          description: string;
          duration: string;
          duration_details: string | null;
          effects: unknown[];
          enhancements: unknown[];
          execution: string;
          execution_details: string | null;
          extra_costs: Record<string, unknown> | null;
          id: string;
          name: string;
          range: string;
          resistence: { effect: string; skill: string } | null;
          school: MagiaSchool;
          target:
              | { amount: number
              | null; type: string | null; upTo: boolean }
              | null;
          type: MagiaType;
      }