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:
12
main.go
12
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user