summaryrefslogtreecommitdiffstats
path: root/spec/mock_board.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-10-30 11:14:05 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-10-30 11:14:05 +0100
commitae129f7270dbe752bea0e1ceb5d1da5a79f4a1a1 (patch)
tree3dec78c67df19e833b0985d45d89b5ddd1043947 /spec/mock_board.rb
parent9b47c09704523be98ab1cbdbb80b8243be08afe3 (diff)
downloadcolonial-twilight-ae129f7270dbe752bea0e1ceb5d1da5a79f4a1a1.zip
colonial-twilight-ae129f7270dbe752bea0e1ceb5d1da5a79f4a1a1.tar.gz
spec mock : fix terror
Diffstat (limited to 'spec/mock_board.rb')
-rw-r--r--spec/mock_board.rb10
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