Larger changes, setting up card templates

* Action card template now works, alongside Stance template
* Modified data structures slightly to allow for a more concise notation
This commit is contained in:
🐙PiperYxzzy
2022-11-05 13:05:57 +02:00
parent 6a6f901eff
commit 981e31b5da
7 changed files with 176 additions and 26 deletions

12
main.go
View File

@@ -13,7 +13,7 @@ type Card struct {
type Action struct {
Card
Instant bool
Instant map[string]string
Persistent bool
}
@@ -24,11 +24,9 @@ type Mission struct {
type Stance struct {
Card
Type string
BetrayBetray int
BargainBargain int
BetrayBargain int
BargainBetray int
Type string
AgainstBetrayal int
AgainstBargain int
}
type Final struct {
@@ -45,8 +43,6 @@ func main() {
panic(err)
}
s, _ := os.Open("cards/stances.json")
defer s.Close()
dec = json.NewDecoder(s)