tormenta20 - v0.0.0
    Preparing search index...

    Class ConstrucaoDominio

    A Construção de Domínio (domain building) in Tormenta20.

    A catalog of buildings a regent can erect in their domain (Cap. 4 "Domínios"), each with a cost in Lingotes de Ouro (LO) and a mechanical benefit. Only catalog data lives here — an actual domain's characteristics are campaign state, not gem content. See also BaseTipo for the analogous pattern for group headquarters.

    ConstrucaoDominio.byCategoria("religiao").all()
    

    Hierarchy

    • BaseModel
      • ConstrucaoDominio
    Index

    Constructors

    Accessors

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • 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 prerequisito(): string | null

      Free-text or id of a prerequisite building/terrain, if any.

      Returns string | null

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          categoria: ConstrucaoDominioCategoria;
          custo: number | null;
          description: string | null;
          effects: unknown[];
          id: string;
          name: string;
          prerequisito: string | null;
      }