From 996b12185fdece116f73d20cb57eae322ecef2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 1 Sep 2020 15:27:11 +0200 Subject: Cards : add some minimal mandatory stuff --- lib/colonial_twilight/cards.rb | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/lib/colonial_twilight/cards.rb b/lib/colonial_twilight/cards.rb index 4bc7a9f..0f98dc4 100644 --- a/lib/colonial_twilight/cards.rb +++ b/lib/colonial_twilight/cards.rb @@ -18,14 +18,23 @@ module ColonialTwilight end def dual?; @attributes & CARD_SINGLE == 0 end def single?; @attributes & CARD_SINGLE == CARD_SINGLE end - def flnmarked?; @attributes & CARD_FLN_MARKED == CARD_FLN_MARKED end - def alwaysplay?; @attributes & CARD_ALWAYS_PLAY == CARD_ALWAYS_PLAY end + def fln_marked?; @attributes & CARD_FLN_MARKED == CARD_FLN_MARKED end + def always_play?; @attributes & CARD_ALWAYS_PLAY == CARD_ALWAYS_PLAY end + def capability?; false end + def fln_effective?; false end + def fln_effectiveness; 0 end + def fln_playable? + # reduce GOV support or resources or commitment + # shift France Track toward F + # place FLN base or increase FLN resources + false + end def check # @attributes.each do |attr| raise "unknown attribute : #{attr}" if attr not in ATTRS end - puts single? - puts dual? - puts flnmarked? - puts alwaysplay? + # puts single? + # puts dual? + # puts flnmarked? + # puts alwaysplay? end end -- cgit v1.1-2-g2b99