Cards become JSON data in course/cards (one file per card, validated against card.schema.json and the catalog); the M5 references load them via registerCards and interpret effects, replacing content closures. Adds assemble(base, donor, half), the assemble/buffHand effects with an injected chooser, Fleshshape as the data-only Expansion Drop, and stages course/cards in verify-references and start-module. Co-Authored-By: Claude Opus 5.5 <[email protected]>
49 lines
4.2 KiB
JSON
49 lines
4.2 KiB
JSON
{
|
|
"$comment": "Structured card text. A trigger clause applies to the effect clauses after it until the next trigger/keyword/aura. split divides top (text[0:split]) from bottom (text[split:]). Effect assemble: put a minion into your hand, chosen from the pool of minions matching filter (filter.trigger: it has a trigger clause with that on), with half its text replaced (Module 5). Effect buffHand: give every minion in your hand +attack/+health.",
|
|
"type": "object",
|
|
"required": ["name", "type", "cost", "text", "split"],
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"type": { "enum": ["minion", "spell"] },
|
|
"cost": { "type": "integer", "minimum": 0 },
|
|
"attack": { "type": "integer", "minimum": 0 },
|
|
"health": { "type": "integer", "minimum": 1 },
|
|
"noun": { "type": "string" },
|
|
"split": { "type": "integer", "minimum": 0 },
|
|
"fictional": { "type": "boolean" },
|
|
"game": { "type": "string" },
|
|
"text": {
|
|
"type": "array",
|
|
"items": {
|
|
"oneOf": [
|
|
{ "type": "object", "required": ["kind", "keyword"], "properties": { "kind": { "const": "keyword" }, "keyword": { "type": "string" } } },
|
|
{ "type": "object", "required": ["kind", "on"], "properties": {
|
|
"kind": { "const": "trigger" },
|
|
"on": { "enum": ["deathrattle", "battlecry", "selfDamaged", "friendlyMinionDamaged", "anyMinionDamaged", "heroDamaged", "endOfTurn"] } } },
|
|
{ "type": "object", "required": ["kind", "modifier"], "properties": {
|
|
"kind": { "const": "aura" },
|
|
"modifier": { "type": "object", "required": ["type", "trigger", "times", "stacking"], "properties": {
|
|
"type": { "const": "triggerMultiplier" },
|
|
"trigger": { "enum": ["deathrattle", "battlecry", "selfDamaged", "friendlyMinionDamaged", "anyMinionDamaged", "heroDamaged", "endOfTurn"] },
|
|
"times": { "type": "integer", "minimum": 2 },
|
|
"stacking": { "enum": ["max", "additive"] } } } } },
|
|
{ "type": "object", "required": ["kind", "effect"], "properties": {
|
|
"kind": { "const": "effect" },
|
|
"effect": { "oneOf": [
|
|
{ "type": "object", "required": ["type", "target", "amount"], "properties": { "type": { "const": "dealDamage" }, "target": { "enum": ["self", "allMinions", "allOtherMinions", "allOtherCharacters", "enemyHero", "chosen"] }, "amount": { "type": "integer", "minimum": 0 } } },
|
|
{ "type": "object", "required": ["type", "count"], "properties": { "type": { "const": "draw" }, "count": { "type": "integer", "minimum": 1 } } },
|
|
{ "type": "object", "required": ["type", "card", "count"], "properties": { "type": { "const": "summon" }, "card": { "type": "string" }, "count": { "type": "integer", "minimum": 1 } } },
|
|
{ "type": "object", "required": ["type", "amount"], "properties": { "type": { "const": "gainArmor" }, "amount": { "type": "integer", "minimum": 1 } } },
|
|
{ "type": "object", "required": ["type", "target", "amount"], "properties": { "type": { "const": "gainAttack" }, "target": { "enum": ["self", "allMinions", "allOtherMinions", "allOtherCharacters", "enemyHero", "chosen"] }, "amount": { "type": "integer" } } },
|
|
{ "type": "object", "required": ["type", "target"], "properties": { "type": { "const": "destroy" }, "target": { "enum": ["self", "allMinions", "allOtherMinions", "allOtherCharacters", "enemyHero", "chosen"] } } },
|
|
{ "type": "object", "required": ["type", "word", "at"], "properties": { "type": { "const": "spawnText" }, "word": { "type": "string" }, "at": { "const": "self" } } },
|
|
{ "type": "object", "required": ["type", "filter"], "properties": { "type": { "const": "assemble" }, "filter": { "type": "object", "properties": {
|
|
"trigger": { "enum": ["deathrattle", "battlecry", "selfDamaged", "friendlyMinionDamaged", "anyMinionDamaged", "heroDamaged", "endOfTurn"] } } } } },
|
|
{ "type": "object", "required": ["type", "attack", "health"], "properties": { "type": { "const": "buffHand" }, "attack": { "type": "integer", "minimum": 0 }, "health": { "type": "integer", "minimum": 0 } } }
|
|
] } } }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|