feat: implement core Foundry VTT system framework, including actor/item data models, spellcasting logic, dice mechanics, and automation scripts

This commit is contained in:
Octoturge
2026-06-14 10:12:47 +02:00
parent fb42c6e8cc
commit 624fe2ee1a
70 changed files with 1645 additions and 1146 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
/**
* UUID reference linter scans parsed docs (packs-src/*) for any
* UUID reference linter - scans parsed docs (packs-src/*) for any
* `@UUID[...]` references that don't resolve within the generated set.
*
* Run after build-packs.ts: `bun scripts/lint-uuid-refs.ts`
@@ -37,14 +37,14 @@ function walk(dir: string): void {
walk(packsSrcDir);
const broken = refs.filter((r) => {
// UUID format: Compendium.system.pack.Item.<id> only validate Item refs.
// UUID format: Compendium.system.pack.Item.<id> - only validate Item refs.
const m = r.uuid.match(/^Compendium\.[^.]+\.[^.]+\.Item\.(.+)$/);
if (!m) return false;
return !allIds.has(m[1]);
});
if (broken.length === 0) {
console.log(`[lint-uuid-refs] OK ${refs.length} refs scanned, none broken`);
console.log(`[lint-uuid-refs] OK - ${refs.length} refs scanned, none broken`);
process.exit(0);
}