From 844baac8ca0711517752810cd0b8e8da52ed9805 Mon Sep 17 00:00:00 2001 From: Maximilian Moehring Date: Mon, 2 Jul 2018 16:46:42 +0200 Subject: Better naming. --- shuffle/card.go | 24 ++++++++++++------------ shuffle/main.go | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'shuffle') 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 } } -- cgit v1.2.3