diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-09-01 15:27:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-09-01 15:27:11 +0200 |
commit | 996b12185fdece116f73d20cb57eae322ecef2f2 (patch) | |
tree | 2d226ba1a16bccba725a679eae14d3569efc610b | |
parent | ec088078fbc0646f3d9b25804b35b232e9e9c81b (diff) | |
download | colonial-twilight-996b12185fdece116f73d20cb57eae322ecef2f2.zip colonial-twilight-996b12185fdece116f73d20cb57eae322ecef2f2.tar.gz |
Cards : add some minimal mandatory stuff
-rw-r--r-- | lib/colonial_twilight/cards.rb | 21 |
1 files 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 |