import type { Pf2eCreature } from "@initiative/domain"; import { creatureId } from "@initiative/domain"; let counter = 0; export function buildPf2eCreature( overrides?: Partial, ): Pf2eCreature { const id = ++counter; return { system: "pf2e", id: creatureId(`pf2e-creature-${id}`), name: `PF2e Creature ${id}`, source: "crb", sourceDisplayName: "Core Rulebook", level: 1, traits: ["humanoid"], perception: 5, abilityMods: { str: 2, dex: 1, con: 2, int: 0, wis: 1, cha: -1 }, ac: 15, saveFort: 7, saveRef: 4, saveWill: 5, hp: 20, speed: "25 ft.", ...overrides, }; }