From e028ef0b29172f0f8c9eabc4633bd65dcc740f86 Mon Sep 17 00:00:00 2001 From: Judah Date: Wed, 1 Apr 2026 19:54:30 -0600 Subject: [PATCH] . --- CardList.json | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++ Game.json | 3 +- cards.go | 29 +++++++++++++ main.go | 21 +--------- 4 files changed, 143 insertions(+), 20 deletions(-) create mode 100644 cards.go diff --git a/CardList.json b/CardList.json index 12ad06c..ad0610d 100644 --- a/CardList.json +++ b/CardList.json @@ -64,5 +64,115 @@ "_legal": { "playtest": true } + }, + "003": { + "id": "003", + "face": { + "front": { + "name": "NominalAperture", + "type": "Unit", + "cost": 1, + "image": "https://docs.brut.systems/judah/entropy/red-base.png", + "isHorizontal": true + } + }, + "name": "NominalAperture", + "type": "Unit", + "cost": 1, + "isToken": false, + "Lane": "🟥 Red", + "Entropy": 1, + "Force": 1, + "_legal": { + "playtest": true + } + }, + "004": { + "id": "004", + "face": { + "front": { + "name": "BluntOffset", + "type": "Unit", + "cost": 2, + "image": "https://docs.brut.systems/judah/entropy/red-base.png", + "isHorizontal": true + } + }, + "name": "BluntOffset", + "type": "Unit", + "cost": 2, + "isToken": false, + "Lane": "🟥 Red", + "Entropy": 2, + "Force": 2, + "_legal": { + "playtest": true + } + }, + "005": { + "id": "005", + "face": { + "front": { + "name": "BareGradient", + "type": "Unit", + "cost": 3, + "image": "https://docs.brut.systems/judah/entropy/red-base.png", + "isHorizontal": true + } + }, + "name": "BareGradient", + "type": "Unit", + "cost": 3, + "isToken": false, + "Lane": "🟥 Red", + "Entropy": 3, + "Force": 3, + "_legal": { + "playtest": true + } + }, + "006": { + "id": "006", + "face": { + "front": { + "name": "SoftFilament", + "type": "Unit", + "cost": 4, + "image": "https://docs.brut.systems/judah/entropy/red-base.png", + "isHorizontal": true + } + }, + "name": "SoftFilament", + "type": "Unit", + "cost": 4, + "isToken": false, + "Lane": "🟥 Red", + "Entropy": 4, + "Force": 4, + "_legal": { + "playtest": true + } + }, + "007": { + "id": "007", + "face": { + "front": { + "name": "PolarConviction", + "type": "Unit", + "cost": 5, + "image": "https://docs.brut.systems/judah/entropy/red-base.png", + "isHorizontal": true + } + }, + "name": "PolarConviction", + "type": "Unit", + "cost": 5, + "isToken": false, + "Lane": "🟥 Red", + "Entropy": 5, + "Force": 5, + "_legal": { + "playtest": true + } } } \ No newline at end of file diff --git a/Game.json b/Game.json index e7439a3..fed4556 100644 --- a/Game.json +++ b/Game.json @@ -24,7 +24,8 @@ "title": "Classic", "gameplay": "CL", "deckRuleset": "CL", - "customCategories": ["Passive"] + "customCategories": ["Passive"], + "legalityCode": "playtest" } ], "deckRulesets": { diff --git a/cards.go b/cards.go new file mode 100644 index 0000000..fd949f9 --- /dev/null +++ b/cards.go @@ -0,0 +1,29 @@ +package main + +var CARDS = []struct { + lane Lane + typ Type + entropy int + recovery int + force int + name string + desc string +}{ + {typ: Passive, recovery: 3, + name: `Rapid Response`, desc: `Your {{spell}}s cost {{1 hp}} less.`}, + {typ: Passive, recovery: 2, + name: `Breaker`, desc: `The first {{unit}} you play per turn costs {{1 entropy}} less.`}, + {typ: Passive, recovery: 0, + name: `Inverse Entropy`, desc: `Add {{1 hp}} to all {{lifesteal}} bonuses`}, + + {typ: Unit, lane: Red, entropy: 1, force: 1, + desc: ``}, + {typ: Unit, lane: Red, entropy: 2, force: 2, + desc: ``}, + {typ: Unit, lane: Red, entropy: 3, force: 3, + desc: ``}, + {typ: Unit, lane: Red, entropy: 4, force: 4, + desc: ``}, + {typ: Unit, lane: Red, entropy: 5, force: 5, + desc: ``}, +} diff --git a/main.go b/main.go index d91e06e..32aa4fb 100644 --- a/main.go +++ b/main.go @@ -7,23 +7,6 @@ import ( "os" ) -var Cards = []struct { - lane Lane - typ Type - entropy int - recovery int - force int - name string - desc string -}{ - {typ: Passive, recovery: 3, - name: `Rapid Response`, desc: `Your {{spell}}s cost {{1 hp}} less.`}, - {typ: Passive, recovery: 2, - name: `Breaker`, desc: `The first {{unit}} you play per turn costs {{1 entropy}} less.`}, - {typ: Passive, recovery: 0, - name: `Inverse Entropy`, desc: `Add {{1 hp}} to all {{lifesteal}} bonuses`}, -} - type Lane int const ( @@ -99,8 +82,8 @@ func main() { ) thejson := make(map[string]jsoncard) - for i := range len(Cards) { - card := &Cards[i] + for i := range len(CARDS) { + card := &CARDS[i] if len(card.name) == 0 { card.name = generateTemporaryName() }