Sync parsers and game mechanics with vault changes (2026-08-18 to 08-23) #1

Merged
octoturge merged 1 commits from foundry-sync-2026-08-23 into main 2026-08-23 10:00:44 +02:00
Owner

Syncs foundry-system against the ObsidianNotes vault changes from 2026-08-18 to 2026-08-23.

Parsers (were producing broken/zero output against the split vault layout)

  • talent-parser.ts, discipline-parser.ts, race-parser.ts rebuilt to read from the post-bab5a62 per-topic-file layout (rulebook monoliths split into per-chapter subfolders; discipline/race writeups moved to their canonical disciplines//races/ folders).
  • gear-parser.ts verified correct as-is (artifacts remain a documented, deliberate gap).

Mechanics

  • Daily mana pool (Poziom Mocy x3) replacing the old per-round budget.
  • Zywotnosc = 2x(Cialo+Umysl+Dusza), was 3x.
  • Rest-tier recovery amounts (Odetchniecie/Krotki Odpoczynek/Dlugi Odpoczynek).
  • NPC Initiative formula now includes Refleks/Spostrzegawczosc skill bonuses (was missing entirely).
  • NPC Magia attribute constrained to valid 1k10 character-creation values.
  • Overcast test: correct T-threshold tiers + triangular S = E*(E+1)/2 required-successes formula.

Not implemented (new features, out of scope for a sync fix): mana-exhaustion/overcast-failure penalty tables, overcast bonus taper, shield-breaking damage mechanic, elixir-weapon-coating system.

Verification

bun run build:packs:strict, typecheck, and test:run all pass, aside from one pre-existing unrelated test failure (rest.test.ts import crash from an unstubbed DialogV2 global, dating to the 2026-08-17 money-converter-dialog feature).

Syncs foundry-system against the ObsidianNotes vault changes from 2026-08-18 to 2026-08-23. ## Parsers (were producing broken/zero output against the split vault layout) - `talent-parser.ts`, `discipline-parser.ts`, `race-parser.ts` rebuilt to read from the post-`bab5a62` per-topic-file layout (rulebook monoliths split into per-chapter subfolders; discipline/race writeups moved to their canonical `disciplines/`/`races/` folders). - `gear-parser.ts` verified correct as-is (artifacts remain a documented, deliberate gap). ## Mechanics - Daily mana pool (Poziom Mocy x3) replacing the old per-round budget. - Zywotnosc = 2x(Cialo+Umysl+Dusza), was 3x. - Rest-tier recovery amounts (Odetchniecie/Krotki Odpoczynek/Dlugi Odpoczynek). - NPC Initiative formula now includes Refleks/Spostrzegawczosc skill bonuses (was missing entirely). - NPC Magia attribute constrained to valid 1k10 character-creation values. - Overcast test: correct T-threshold tiers + triangular S = E*(E+1)/2 required-successes formula. Not implemented (new features, out of scope for a sync fix): mana-exhaustion/overcast-failure penalty tables, overcast bonus taper, shield-breaking damage mechanic, elixir-weapon-coating system. ## Verification `bun run build:packs:strict`, `typecheck`, and `test:run` all pass, aside from one pre-existing unrelated test failure (`rest.test.ts` import crash from an unstubbed `DialogV2` global, dating to the 2026-08-17 money-converter-dialog feature).
octoturge added 1 commit 2026-08-23 08:51:15 +02:00
- talent-parser.ts, discipline-parser.ts, race-parser.ts: rebuilt to read
  from the vault's post-bab5a62 per-topic-file layout (rulebook monoliths
  were split into per-chapter subfolders; discipline/race writeups moved to
  their canonical disciplines/ and races/ folders). All three parsers were
  previously producing zero or broken output for their packs.
- constants.ts, actor-character.ts, actor-npc.ts, rest.ts: mana is now a
  daily pool (Poziom Mocy x3) restored via rest tiers, not a per-round
  budget; Zywotnosc is 2x(Cialo+Umysl+Dusza), not 3x; rest recovery amounts
  updated to match Odetchniecie/Krotki Odpoczynek/Dlugi Odpoczynek.
- combat.ts: removed the now-obsolete per-round mana reset hook.
- actor-npc.ts: Initiative now includes Refleks/Spostrzegawczosc skill
  bonuses (was missing entirely); Magia attribute constrained to valid
  1k10 character-creation values.
- fields.ts: added `choices` support to makeIntField for the above.
- spell-cast.ts: overcast test now uses the correct T-threshold tiers and
  triangular S = E*(E+1)/2 required-successes formula (Zasada
  Nadczarowywania Zaklec).

Not implemented (flagged as new features, out of scope for a sync fix):
mana-exhaustion/overcast-failure penalty tables, overcast bonus taper past
step 2, shield-breaking damage mechanic, elixir-weapon-coating system.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
octoturge merged commit 73e5f8c078 into main 2026-08-23 10:00:44 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: octoturge/hbm-foundry-system#1