octoturge 7dd2af1ec5 Rebuild split-rulebook journal parsing (vault sync 2026-08-18 to 08-23)
The bab5a62 vault commit split 9 rulebook monoliths into hub/ToC pages plus
per-topic-file subfolders (rules/NN. <Book>/<Chapter>/<Topic>.md). The
existing chapter-slicing parser (parseJournalBook) relied on finding a
duplicate TOC-vs-body heading pair per chapter; after the split each hub
heading only occurs once (in the ToC), so it was silently treating the
ToC's link-list body as if it were real chapter content.

Added parseSplitBookFolder (journal-parser.ts): walks a book's split
subfolder directly, one JournalDoc per Rozdzial/Aneks subfolder-or-file,
one JournalPage per topic file (or a single page for a standalone chapter
file). The hub's own Wstep intro paragraph is unaffected by the split (it's
still real prose, not a link) and continues to come from the existing
prefaceTitle preface-extraction logic.

Wired into build-journal-packs.ts for the 6 affected packs: core-rules-lore,
bestiary-lore, magic-book-lore, abyss, blood-magic-history, economy.
crimson-cult's rules source was never split into a subfolder, so it's left
on the old code path unchanged.

Also fixed a pre-existing derivePageTitle bug (page titles kept a leading
markdown heading marker, e.g. "## Wstep" instead of "Wstep") to match the
already-correct behavior in topical-parser.ts.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-23 01:15:51 +02:00
2026-06-09 22:07:10 +02:00
2026-06-09 22:07:10 +02:00
2026-06-09 22:07:10 +02:00

HbM RPG v3 - Lore (Foundry VTT module)

Companion lore module for the HbM RPG v3 system. Ships JournalEntry compendia for setting, history, and narrative chapters from the official books.

Build

bun install
bun run build:packs   # parse _books/*.md → packs/ (LevelDB)
bun run package       # zip into hbm-rpg-v3-lore-vX.Y.Z.zip

Requires the _books/ folder at the repo root (synced via the parent CLI).

Packs

Pack Source book
core-rules-lore Podręcznik Gry
magic-book-lore Księga Magii
bestiary-lore Bestiariusz
blood-magic-history Arcanum Sanguinis
crimson-cult Chwała Szkarłatnemu Kultowi
abyss Klątwa Otchłani
economy Złoto, Stal i Magia
S
Description
No description provided
Readme 88 KiB
Languages
TypeScript 100%