rick
0489a2dbdc
fix(1 Capable): restore mechanics destroyed by broken rewrite-mechanics.py
...
The prior editorial commit used a positional-arg version of
rewrite-mechanics.py (overwritten by Expert-tier agent) which wrote
the literal flag text "-m" or "--subhead" as mechanics content.
Fixed rewrite-mechanics.py to use argparse with -m/--mechanics and
-s/--subhead flags (with positional fallback). Restored correct
mechanics for all 32 affected items and reapplied all editorial fixes.
Made-with: Cursor
2026-04-17 15:14:43 +02:00
rick
215ba967cb
fix(0c): mechanics typography — bold ranges, +n bonuses, resistance, key values
...
19 SVGs updated:
- Range bolding: (20'/60') → (**20'/60'**) on Acid Flask, Sticky Fire Flask
- +n bonuses bolded: Shieldfoam Vial (+2 AC), Aegis Charm (+1 saves),
Spell Thread (+2 hit, +1 die), Wand Primer Oil (+1 spell attacks),
Surestrike (+1 attacks), Quickstitch Thread (+2 AC), Adrenal Surge (+2 dmg),
Counterflux Vial (+2), Slinger's Chalk (+1 hit) in both Offense and Strike
- Key values bolded: Barkskin (16 AC), Bulwark Tonic (8 temp HP),
Pain-Dulling Draught (5 temp HP), Revive Tonic (1 HP)
- Resistance bolded: Burn Salve, Cold Compress
- Adds rewrite-mechanics.py for front-side text edits
Made-with: Cursor
2026-04-17 13:19:59 +02:00
rick
bbc569718e
fix(1 Capable): potion RAW-restatement removal + throwable subhead standardization
...
Potion fixes (10 items — remove "Action/Bonus Action to drink" and
"Single use" from mechanics, per Northlands homebrew rule that potions
are Bonus Action to drink and single use by default):
- Element Ward Vial, Stalwart Tea, Stonebone Tonic (Defense)
- Spellweaver's Draught (Magic)
- Krakenspool Flask (Offense — remove Single use only)
- Brightbrew, Hero's Broth, Spirit-Kindle Draught, Vital Ember Tonic (Recovery)
- Blackjaw Draught (Strike)
Throwable subhead fixes (6 items):
- Earthen Bulwark Pellet: wondrous item → throwable (60'), add range
- Shatterseed Cluster: wondrous item → throwable (60'), fix range
- Pocket Eclipse: wondrous item → throwable (90'), fix range
- Smoke-Latch: wondrous item → throwable (90'), fix range
- Emberlash Phial: potion → thrown weapon (20'/60')
- Bone-Breaker Phial: potion → thrown weapon (20'/60')
- Needle-Glass: wondrous item → thrown weapon (20'/60')
New tooling:
- scripts/rewrite-mechanics.py: rewrite front-side mechanics and/or
subhead in SVG cards (companion to rewrite-lore.py)
Rules update (SKILL.md):
- Potions: never restate RAW (drinking action, single use)
- Throwables: single range for area effects, normal/far for attacks
- "Never restate RAW" as top-level mechanics grammar rule
Made-with: Cursor
2026-04-17 11:04:11 +02:00
rick
583fe7c217
regen(2 Expert): ITEMS.md after potion + throwable editorial pass
...
- SKILL.md: add "never restate RAW" principle, throwable subhead rules,
clarify ranged attack vs throwable distinction
- scripts/rewrite-mechanics.py: new tool for mechanics-only SVG edits
- Clean 5 stale PDFs with outdated prices (Recovery, Stealth, Strike)
Made-with: Cursor
2026-04-17 10:58:23 +02:00
rick
5d7fc9d596
fix(0c): correct missing/wrong dual-flavor marks on 5 cards
...
4 unique cards had incorrect or missing dual-flavor marks:
- Countertoxin: missing Recovery+Defense marks (had none)
- Thornburst Grenade: missing Offense+Strike marks (had none)
- Scroll of Detect Magic (Magic + Utility copies): had wrong colors
(#c34cff/#ffcc00) instead of correct Magic (#9966cc) + Utility (#ff9933)
- Slinger's Chalk (Strike copy): missing Offense+Strike marks (had none)
Adds check-flavor-marks.py (audit tool) and fix-flavor-marks.py (repair tool).
Reprint PDF: "Specialist Flavor Mark Reprints.pdf" (4 unique cards, 8 pages).
Made-with: Cursor
2026-04-17 08:06:32 +02:00
rick
d784005f77
regen(1 Capable): regenerate ITEMS.md after lore rewrites
...
- ITEMS.md regenerated from SVGs via generate-source-of-truth.py
- Added "Second Wind Salts" → "Second-Wind Salts" alias to
assemble-packs.py (PACKS.md uses space, SVG uses hyphen)
- Cleaned up stale PDFs from prior exports (old prices)
- All 28 packs assembled, 0 warnings, QA passed
Made-with: Cursor
2026-04-16 20:56:47 +02:00
rick
5950809a56
scripts: add assemble-packs.py and rebuild-specialist-pdfs.sh
...
assemble-packs.py: Reliable pack assembly with cross-flavor singleton lookup,
name aliasing (Oil of X → X (oil of), etc.), curly apostrophe normalization,
and built-in QA verification (page counts + singles/SVG count check).
rebuild-specialist-pdfs.sh: Full rebuild of DM + Player PDFs with price tags
in filenames. Note: bash pack assembly has scoping bugs; use assemble-packs.py
for pack assembly instead.
Made-with: Cursor
2026-04-16 20:03:17 +02:00
rick
8be320c0b2
lore(0b): restructure openings for Dustcloud Ball, Quarry Tag, Sneaker's Grease
...
Replace mechanics-first paragraph 1 with origin hooks:
- Dustcloud Ball: flour mill explosion → retired sapper origin
- Quarry Tag: bounty hunter who decided the problem was philosophical
- Sneaker's Grease: cobbler who moonlighted as second-story specialist
Paragraphs 2-3 and closers preserved. Adds rewrite-lore.py helper script.
Made-with: Cursor
2026-04-16 19:08:49 +02:00
rick
65de49dc41
Add --tier flag to generate-source-of-truth.py (e.g. --tier '0c Specialist')
...
Made-with: Cursor
2026-04-16 19:04:42 +02:00
rick
d661bd6d15
Restore hand-written PACKS.md for Novice/Intermediate; fix script to preserve them
...
Made-with: Cursor
2026-04-16 16:50:00 +02:00
rick
d74a839b3c
Improve lore provenance: tag 80+ word lore without raw material as claude-opus (17 Specialist items)
...
Made-with: Cursor
2026-04-16 16:42:49 +02:00
rick
8ab96a7d59
Add 5etools JSON for Novice (23 items) and Intermediate (20 items)
...
Made-with: Cursor
2026-04-16 16:00:50 +02:00
rick
8d03e3da28
Fix _bold_fmt() regex for resistance/immunity phrases; fix 21 items
...
Root cause: regex \b(resistance to [\w,]+)\b stopped at spaces,
capturing only "resistance to nonmagical" instead of the full
"resistance to nonmagical bludgeoning, piercing, and slashing damage".
Fixed generate-card.py _bold_fmt():
- Resistance regex now captures multi-word damage type phrases
- Immunity regex handles *italic* conditions inside the phrase
- Both handle "damage type" suffix
21 items patched across 5 tiers (Specialist 4, Expert 4, Master 3,
Grandmaster 7, Exit 2). Also fixed HP abbreviations and double-to typo.
Master Lore Replacements.pdf updated (now 30 cards).
All ITEMS.md and 5etools JSON regenerated.
Made-with: Cursor
2026-04-16 15:59:23 +02:00
rick
54033e1c3d
Fix lore paragraph breaks across entire catalog
...
Root cause: extract_rich_text_from_tspans checked "\n".strip() == "\n"
which is always False ("\n".strip() is ""). Fixed to check for "\n" in
the text of blank tspans.
All ITEMS.md files now have proper paragraph breaks in lore sections.
5etools JSON reads these directly (removed artificial sentence splitter).
Made-with: Cursor
2026-04-16 15:48:40 +02:00
rick
783a0c6946
5etools: split lore into 3 balanced paragraphs at sentence boundaries
...
Made-with: Cursor
2026-04-16 15:44:46 +02:00
rick
1ebdd025de
5etools: fix lore paragraphs (flat strings, not nested entries objects)
...
Made-with: Cursor
2026-04-16 15:43:13 +02:00
rick
4e48fca344
5etools JSON: lore after horizontal rule, bold formatted price
...
- Lore now in main entries (after {@bold List Price: N Gold/Silver}
and a horizontal rule), not in separate fluff section
- Price formatted as "{@bold List Price: 1,300 Gold}" instead of
plain "Northlands price: 1,300g"
- Currency spelled out: "Gold" / "Silver"
Made-with: Cursor
2026-04-16 15:40:48 +02:00
rick
ebe49657d6
Rename 5etools JSON to 5etools-northlands-guildpacks-{tier}.json
...
Made-with: Cursor
2026-04-16 15:14:09 +02:00
rick
86b8049883
Tag lore provenance (claude-opus vs openclaw), document lore style guide
...
Lore provenance detection:
- Compares SVG lore against all raw material lore variants (main + alts)
- If no match: tagged 'claude-opus' (written by Claude, not from raw materials)
- If match: tagged with original source (catalog_back_expanded, etc.)
- ITEMS.md now accurately shows who wrote each item's lore
Current counts (294 Claude, 219 OpenClaw, 49 unknown/handmade):
- Specialist: 17 Claude, 69 OpenClaw, 17 unknown
- Capable: 48 Claude, 29 OpenClaw, 11 unknown
- Expert: 76 Claude, 13 OpenClaw, 21 unknown
- Master: 40 Claude, 57 OpenClaw
- Grandmaster: 110 Claude, 30 OpenClaw
- Exit: 3 Claude, 21 OpenClaw
Lore style guide added to SKILL.md:
- Voice: tired competent quartermaster, Pratchett footnotes, British understatement
- Structure: origin hook -> in-character experience -> earned punchline
- Humor patterns: object personification, bureaucratic combat language,
class reactions as one-liners, understatement about extreme effects
- Anti-patterns: generic wisdom, name repetition, mechanics in lore, puns
- 7 exemplar passages cited for tone calibration
- All OpenClaw lore scheduled for replacement with Claude Opus voice
Made-with: Cursor
2026-04-16 13:02:20 +02:00
rick
33c807f8d4
Add 5etools Homebrew JSON for Master tier (N-GIL-3)
...
97 items with full mechanics (5etools @tag syntax), lore (as fluff),
RAW gp values from consensus negotiation, and Northlands prices.
Script: scripts/generate-5etools-json.py (parameterized for all tiers)
Source: N-GIL-3, reads from ITEMS.md as source of truth.
Item types: 13 potions (type P), 84 wondrous/other (type OTH).
Rarities: 54 Rare, 22 Very Rare, 21 Uncommon.
Conditions tagged with {@condition}, dice with {@dice}.
Made-with: Cursor
2026-04-16 12:37:41 +02:00
rick
b6479ef6b6
Grandmaster mechanics merge, lore rewrites, source-of-truth markdown
...
Mechanics (140 Grandmaster SVGs):
- Merged two-part "Base + Grandmaster:" format into single coherent blocks
- Applied all 6 merge patterns: dice upgrades, complete replacement,
capability addition, simple modification, alternative upgrade, number bump
- Removed penalty-narration pattern (e.g. "with no speed penalty")
- Verified: zero "Grandmaster:" labels, zero "HP" abbreviations remaining
Lore rewrites:
- 67 Grandmaster items: full rewrite replacing boilerplate filler
- 11 Master items: replaced copy-pasted closing lines with custom punchlines
- 4 Exit items: restored archived original lore (Dragon's Last Favor,
Storm-Heart Battery, Black Sun Eclipse, Godsbane Silence Bell)
- Zero boilerplate remaining across all tiers
Subhead fixes:
- 7 weapon-coating items misclassified as "ammunition" corrected to
"consumable (apply)" or "oil" across Specialist/Capable/Master/Grandmaster
Source-of-truth markdown (24 files across 8 tiers):
- ITEMS.md: per-item title, layout, subhead, rarity, price, flavor, image,
lore source, mechanics with markup, full lore, consensus negotiation
- PACKS.md: pack composition with item rarity and current prices
- BALANCE.md: rarity/price distributions, pack balance, cross-flavor comparison
- Rarity extracted from SVG background gradients as fallback for items
without raw material source files
- Extraction script: scripts/generate-source-of-truth.py
All DM + Player PDFs re-exported, all pack PDFs rebuilt.
Made-with: Cursor
2026-04-16 08:31:22 +02:00
rick
a4576bf673
Complete guild item pack card pipeline: 563 items, 153 packs, 6 tiers
...
Full automated pipeline for generating printable D&D guild item pack cards
from raw material text files and PNG art → SVG → DM PDF → Player PDF → Pack PDF.
Tiers: Specialist (28 packs), Capable (29), Expert (28), Master (29),
Grandmaster (35), Exit (4). All 7 flavors: Recovery, Defense, Offense,
Stealth, Strike, Magic, Utility.
Key features:
- 5 rarity templates (Common through Legendary) with printer-calibrated gradients
- Dynamic title fitting (single/two-line with hyphenation support)
- Bold/italic formatting for D&D mechanics (dice, conditions, hit points)
- Cross-flavor dual marks for shared items
- Lore quality system: 100-120 words, no boilerplate, Monty Python humor
- Batch processing script for large-scale generation
- Skill documentation for future agent continuity
Made-with: Cursor
2026-04-15 16:24:49 +02:00