diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2026-03-15 10:25:30 +0100 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2026-03-15 10:25:30 +0100 |
| commit | c17a8970abb84d5910936352f41824fcbf095222 (patch) | |
| tree | 9c1f3656df75b4bd0e2831f7e037738aa8d81a8f /spec | |
| parent | 65eac35b40c5e886448078eab48dbe8304d66ba0 (diff) | |
| download | colonial-twilight-c17a8970abb84d5910936352f41824fcbf095222.zip colonial-twilight-c17a8970abb84d5910936352f41824fcbf095222.tar.gz | |
Sector : add bases()
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/mock_board.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/mock_board.rb b/spec/mock_board.rb index 128c074..133c09e 100644 --- a/spec/mock_board.rb +++ b/spec/mock_board.rb @@ -21,6 +21,10 @@ class Sector @name == 'country' end + def bases + (@data[:fln_bases] || 0) + (@data[:gov_bases] || 0) + end + def max_bases 3 end |
