--- import DmCard from "./DmCard.astro"; import DmButton from "./DmButton.astro"; import { dmTranslations as T } from "@/i18n/dm-translations"; import type { NPCResult } from "@/lib/ai/types"; export interface Props { npc: NPCResult; onRegenerate?: () => void; } const { npc, onRegenerate } = Astro.props; --- {npc.name} {npc.race} · {npc.role} · {T.npcLevel} {npc.level} · {T.npcCr} {npc.cr} {T.npcCopyJson} { onRegenerate && ( {T.npcRegenerate} ) } {T.npcHp} {npc.hp} {T.npcAc} {npc.ac} {T.npcSpeed} {npc.speed} {T.npcCr} {npc.cr} {T.npcAppearance} {npc.appearance} {T.npcTrait} {npc.trait} {T.npcMotivation} {npc.motivation} {T.npcSecret} {npc.secret} {npc.history} {npc.race} {npc.role}
{npc.race} · {npc.role} · {T.npcLevel} {npc.level} · {T.npcCr} {npc.cr}
{npc.appearance}
{npc.trait}
{npc.motivation}
{npc.secret}
{npc.history}