From 06a298678d68b85b27a402fae86245ebddcf9774 Mon Sep 17 00:00:00 2001 From: Judah Date: Wed, 1 Apr 2026 19:25:12 -0600 Subject: [PATCH] . --- CardList.json | 12 +++++++++--- Game.json | 36 +++++++++++++++++++++++++++--------- main.go | 12 +++++++----- 3 files changed, 43 insertions(+), 17 deletions(-) diff --git a/CardList.json b/CardList.json index 75ab622..12ad06c 100644 --- a/CardList.json +++ b/CardList.json @@ -17,7 +17,9 @@ "Lane": "⬜ Passive", "Entropy": 0, "Force": 0, - "_legal": true + "_legal": { + "playtest": true + } }, "001": { "id": "001", @@ -37,7 +39,9 @@ "Lane": "⬜ Passive", "Entropy": 0, "Force": 0, - "_legal": true + "_legal": { + "playtest": true + } }, "002": { "id": "002", @@ -57,6 +61,8 @@ "Lane": "⬜ Passive", "Entropy": 0, "Force": 0, - "_legal": true + "_legal": { + "playtest": true + } } } \ No newline at end of file diff --git a/Game.json b/Game.json index f41018f..217a9a6 100644 --- a/Game.json +++ b/Game.json @@ -9,7 +9,8 @@ "cardRotation": "0", "cards": { "dataUrl": "https://docs.brut.systems/judah/entropy/CardList.json", - "cardBack": "" + "cardBack": "", + "cardBackColor": "#ffffff" }, "deckBuilding": { "mainFilters": [ @@ -22,29 +23,46 @@ { "title": "Classic", "gameplay": "CL", - "customCategories": [] + "deckRuleset": "CL", + "customCategories": ["Passive"] } - ] + ], + "deckRulesets": { + "CL": { + "general": { + "maxPerCard": 3 + }, + "categories": [ + { + "category": "Passive", + "min": 1, + "max": 1, + "maxPerCard": 1 + } + ] + } + } }, "gameplay": { "CL": { "mulligan": { "info": "", - "startingHandSize": "4", - "drawNewHand": true, - "putSelectionAtBottom": false, - "drawNewSelectedCards": false + "startingHandSize": 4, + "drawNewHand": false, + "putSelectionAtBottom": true, + "drawNewSelectedCards": false, + "triggeredByButton": true }, "newTurn": { "drawOnStart": false, "sharedTurn": false, "firstPlayerTokenName": "", - "drawPerTurn": "0" + "drawPerTurn": 0 }, "defaultNotes": "", "tokens": [], "countersStartingValues": [ - "50" + 50 ], "hideFacedDownCards": false, "sections": { diff --git a/main.go b/main.go index bbf1030..d91e06e 100644 --- a/main.go +++ b/main.go @@ -91,10 +91,10 @@ func main() { Token bool `json:"isToken"` // custom - Lane string `json:"Lane"` - Entropy int `json:"Entropy"` - Force int `json:"Force"` - Legal bool `json:"_legal"` + Lane string `json:"Lane"` + Entropy int `json:"Entropy"` + Force int `json:"Force"` + Legal map[string]bool `json:"_legal"` } ) @@ -141,7 +141,9 @@ func main() { Entropy: card.entropy, Force: card.force, Lane: card.lane.String(), - Legal: true, + Legal: map[string]bool{ + "playtest": true, + }, } }