summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/fln_rules.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2024-05-02 17:18:53 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2024-05-02 17:18:53 +0200
commitb02a37e7878a3316d34fbc0d4f3bd74284c44b28 (patch)
treeea95b8e41157b41caedad8a8d538cbcd10cebb9e /lib/colonial_twilight/fln_rules.rb
parentafa0b16ba4ed371092071e635a0fdd688d8efb9c (diff)
downloadcolonial-twilight-master.zip
colonial-twilight-master.tar.gz
FLNRules : add March rules and specsHEADmaster
Diffstat (limited to 'lib/colonial_twilight/fln_rules.rb')
-rw-r--r--lib/colonial_twilight/fln_rules.rb8
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)