summaryrefslogtreecommitdiff
path: root/shuffle
diff options
context:
space:
mode:
authorMaximilian Moehring2018-07-02 16:46:42 +0200
committerMaximilian Moehring2018-07-02 16:46:42 +0200
commit844baac8ca0711517752810cd0b8e8da52ed9805 (patch)
tree123435b8afda9d74833e70e3fd7acafafe9170a5 /shuffle
parentb59deea76f9a72139c8f341016c67d5c88ba08d8 (diff)
downloaddominion_cards-844baac8ca0711517752810cd0b8e8da52ed9805.tar.gz
Better naming.
Diffstat (limited to 'shuffle')
-rw-r--r--shuffle/card.go24
-rw-r--r--shuffle/main.go4
2 files changed, 14 insertions, 14 deletions
diff --git a/shuffle/card.go b/shuffle/card.go
index f7e8979..ca61b50 100644
--- a/shuffle/card.go
+++ b/shuffle/card.go
@@ -10,18 +10,18 @@ type Card struct {
Type string
text string
//Text_de string
- Actions string
- Cards string
- Buy string
- Coin string
- Trash string
- Junk string
- Gain string
- Image string
- IsEdition1 bool
- IsEdition2 bool
- IsKingdom bool
- Cost Cost
+ Actions string
+ Cards string
+ Buy string
+ Coin string
+ Trash string
+ Junk string
+ Gain string
+ Image string
+ OnlyEdition1 bool
+ OnlyEdition2 bool
+ IsKingdom bool
+ Cost Cost
//Cost string
}
diff --git a/shuffle/main.go b/shuffle/main.go
index 53a9d2c..8317422 100644
--- a/shuffle/main.go
+++ b/shuffle/main.go
@@ -92,11 +92,11 @@ func get_card(cards []Card, picked map[string]bool, sets []string, d_sets []stri
}
if v1 {
// play with removed cards from base v1
- if cards[rndm].IsEdition2 {
+ if cards[rndm].OnlyEdition2 {
continue
}
} else {
- if cards[rndm].IsEdition1 {
+ if cards[rndm].OnlyEdition1 {
continue
}
}