diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-24 09:32:52 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-24 09:32:52 +0200 |
commit | 4a3f2e4adce52e7a3495f0a825fe2f502e052006 (patch) | |
tree | 466b94034eb6d84dd76c7eaea2178570ebf746fd /spec/mock_board.rb | |
parent | ab2b97fc77b8b52c8b9a402b59dbf4454516b64f (diff) | |
download | colonial-twilight-4a3f2e4adce52e7a3495f0a825fe2f502e052006.zip colonial-twilight-4a3f2e4adce52e7a3495f0a825fe2f502e052006.tar.gz |
FLNBotRules : add #available_fln_bases, comment, fix Mock#terror
Diffstat (limited to 'spec/mock_board.rb')
-rw-r--r-- | spec/mock_board.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/mock_board.rb b/spec/mock_board.rb index 18dad5b..e75ba73 100644 --- a/spec/mock_board.rb +++ b/spec/mock_board.rb @@ -4,7 +4,7 @@ class Sector attr_reader :name attr_writer :data - def initialize(data = { name: 'sector', pop: 0, fln_bases: 0, fln_active: 0, fln_underground: 0, gov_cubes: 0, independent: true, support: false, terror: false }) + def initialize(data = { name: 'sector', pop: 0, fln_bases: 0, fln_active: 0, fln_underground: 0, gov_cubes: 0, independent: true, support: false, terror: 0 }) @name = data[:name] || 'sector' @data = data end @@ -33,7 +33,7 @@ class Sector @data[:support] end - def terror? + def terror @data[:terror] end |