diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2026-03-12 15:10:58 +0100 |
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2026-03-12 15:10:58 +0100 |
| commit | 65eac35b40c5e886448078eab48dbe8304d66ba0 (patch) | |
| tree | 16a067243730934415e43ecd0c3f02c0ef1a2d3b /lib | |
| parent | 1f7c218b7d340e5511e8341d363c6182c7919abc (diff) | |
| download | colonial-twilight-65eac35b40c5e886448078eab48dbe8304d66ba0.zip colonial-twilight-65eac35b40c5e886448078eab48dbe8304d66ba0.tar.gz | |
FlnRules : simplify logic
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/colonial_twilight/fln_bot/fln_rules.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/colonial_twilight/fln_bot/fln_rules.rb b/lib/colonial_twilight/fln_bot/fln_rules.rb index 83b7a55..2f57403 100644 --- a/lib/colonial_twilight/fln_bot/fln_rules.rb +++ b/lib/colonial_twilight/fln_bot/fln_rules.rb @@ -49,7 +49,7 @@ module ColonialTwilight # Terror 3.3.4 def may_terror_in?(space) - !space.country? && !space.pop.zero? && space.fln_underground.positive? + !space.country? && space.pop.positive? && space.fln_underground.positive? end def terror_spaces(board) @@ -58,7 +58,7 @@ module ColonialTwilight # Extort 4.3.1 def may_extort_in?(space) - space.fln_underground.positive? && (space.country? ? space.independent? : !space.pop.zero? && space.fln_control?) + space.fln_underground.positive? && (space.country? ? space.independent? : space.pop.positive? && space.fln_control?) end def extort_spaces(board) @@ -85,7 +85,7 @@ module ColonialTwilight # OAS 5.3.1 def may_oas_in?(space) - !space.country? && !space.pop.zero? && !space.terror.positive? + !space.country? && space.pop.positive? && space.terror.zero? end def oas_spaces(board) |
