diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-30 11:14:05 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-30 11:14:05 +0100 |
commit | ae129f7270dbe752bea0e1ceb5d1da5a79f4a1a1 (patch) | |
tree | 3dec78c67df19e833b0985d45d89b5ddd1043947 | |
parent | 9b47c09704523be98ab1cbdbb80b8243be08afe3 (diff) | |
download | colonial-twilight-ae129f7270dbe752bea0e1ceb5d1da5a79f4a1a1.zip colonial-twilight-ae129f7270dbe752bea0e1ceb5d1da5a79f4a1a1.tar.gz |
spec mock : fix terror
-rw-r--r-- | spec/mock_board.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/mock_board.rb b/spec/mock_board.rb index e03be2b..e1db1b3 100644 --- a/spec/mock_board.rb +++ b/spec/mock_board.rb @@ -38,7 +38,7 @@ class Sector end def terror - @data[:terror] + @data[:terror] || 0 end def pop @@ -76,6 +76,14 @@ class Sector def gov gov_cubes + gov_bases end + + def fln_control? + fln > gov + end + + def gov_control? + gov < fln + end end class Board |