diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2024-05-02 17:18:53 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2024-05-02 17:18:53 +0200 |
commit | b02a37e7878a3316d34fbc0d4f3bd74284c44b28 (patch) | |
tree | ea95b8e41157b41caedad8a8d538cbcd10cebb9e /lib/colonial_twilight/fln_rules.rb | |
parent | afa0b16ba4ed371092071e635a0fdd688d8efb9c (diff) | |
download | colonial-twilight-b02a37e7878a3316d34fbc0d4f3bd74284c44b28.zip colonial-twilight-b02a37e7878a3316d34fbc0d4f3bd74284c44b28.tar.gz |
Diffstat (limited to 'lib/colonial_twilight/fln_rules.rb')
-rw-r--r-- | lib/colonial_twilight/fln_rules.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/colonial_twilight/fln_rules.rb b/lib/colonial_twilight/fln_rules.rb index f8e6c40..c506e72 100644 --- a/lib/colonial_twilight/fln_rules.rb +++ b/lib/colonial_twilight/fln_rules.rb @@ -29,6 +29,14 @@ module ColonialTwilight end # March 3.3.2 + def must_stop?(space_from, space_to) + space_from.wilaya != space_to.wilaya || space_from.country? || space_to.country? + end + + def must_activate?(board, space_from, space_to, num = 1) + (space_from.country? || space_to.support?) && + (num + space_to.gov_cubes + (space_from.country? ? board.border_zone_track : 0)) > 3 + end # Attack 3.3.3 def may_attack_in?(space) |