[duel-cards] Card profiles: type, Portal, stats, keywords, effects, rules text (shared/duel) #70

Merged
claude merged 6 commits from night2/duel-cards/profiles into night/2026-11-17 2026-11-18 16:12:12 +00:00
6 Commits
Author SHA1 Message Date
claudeandClaude Opus 5.5 5076299e7c [duel-cards] classify: on-chain fallback (extract definition, title, mint category) before Doctrine
An empty profile typed every card as Doctrine (night-review on #61). derive() now passes
chain.article to classify/subtypeFor; full-profile results are unchanged (fixture identical).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 00:50:13 -05:00
claudeandClaude Opus 5.5 067de837a8 [duel-cards] Doctrines: attach + static pump on attached (DUEL_API encoding); the buff was ignored by the engine
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 23:23:29 -05:00
claudeandClaude Opus 5.5 ae14bc7b89 [duel-cards] connect.qid is optional (omitted without a Wikidata item), matching #72's ConnectKeys
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:52:35 -05:00
claudeandClaude Opus 5.5 57d2fc2fc7 [duel-cards] Match duel-core's contract (#72): template ids, description, maxTokens = fewer than N
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:58:37 -05:00
claudeandClaude Opus 5.5 a8468dd96c [duel-cards] profile.ts: build the frozen CardProfile from enrichment + wbgetentities (pure, no fetch)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:47:00 -05:00
claudeandClaude Opus 5.5 3c70f643f2 [duel-cards] Card profiles: classify, derive, effects, rules text from real data
shared/duel/classify.ts: Q-id anchors -> P31 label regex (^human$) -> P279 -> categories -> description -> Doctrine.
shared/duel/derive.ts: pure derive(chain, profile) -> DuelCard: fame cost 1-6, P+T budget per cost,
DUEL_DESIGN §4 keywords (<=2, Figures only, taxed), Portals, Connected keys and tiers, flavour.
shared/duel/effects.ts + text.ts: T1-T12 templates as EffectSpec data, MTG-register rules text.
shared/duel/sample.ts + docs/game/duel-card-sample.json: 236-card DuelCard fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 21:43:59 -05:00