summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-09-11 11:46:25 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2023-09-11 11:46:25 +0200
commit41407bc0f65b8088a688e2b82914d5eaacb50ada (patch)
treea6e138d5879e51743d0b2cdf60fffc67f75af2fe
parent1d6d338dac81dc2ffce336ececa750c7862cfba8 (diff)
downloadcolonial-twilight-41407bc0f65b8088a688e2b82914d5eaacb50ada.zip
colonial-twilight-41407bc0f65b8088a688e2b82914d5eaacb50ada.tar.gz
Board : Countries are indepedent start Short scenario
-rw-r--r--lib/colonial_twilight/board.rb23
1 files changed, 18 insertions, 5 deletions
diff --git a/lib/colonial_twilight/board.rb b/lib/colonial_twilight/board.rb
index facbbbe..19cc0e9 100644
--- a/lib/colonial_twilight/board.rb
+++ b/lib/colonial_twilight/board.rb
@@ -371,12 +371,16 @@ module ColonialTwilight
end
# a Country Sector
+ # GOV may not enter
+ # FLN may not enter until they become independent
+ # Population is never counted in the total Opposition
+ # May acquire the ability to contain 3 Bases
class Country < Sector
- attr_reader :independant
+ attr_reader :independent
def initialize(name, wilaya)
super(name, wilaya, nil, 1, MOUNTAIN | BORDER | COASTAL)
- @descr += " #{@independant ? 'Independant' : 'French'}"
+ @descr += " #{@independent ? 'Independant' : 'French'}"
end
def add_gov_base
@@ -386,6 +390,15 @@ module ColonialTwilight
def country?
true
end
+
+ def independent?
+ @independent
+ end
+
+ def independent!
+ @independent = true
+ @descr += " #{@independent ? 'Independant' : 'French'}"
+ end
end
# the game Board
@@ -564,7 +577,7 @@ module ColonialTwilight
add Sector, 'Laghouat', 'V', 9, 0
add Sector, 'Sidi Aissa', 'VI', 1, 0, mountain
add Sector, 'Ain Oussera', 'VI', 2, 1, mountain
- add Country, 'Moroco', 0
+ add Country, 'Morocco', 0
add Country, 'Tunisia', 1
end
@@ -658,9 +671,9 @@ module ColonialTwilight
set_sector 27, {}, :oppose
set_sector 28, { fln_underground: 4, fln_base: 2 }
set_sector 29, { fln_underground: 5, fln_base: 2 }
+ spaces[28].independent!
+ spaces[29].independent!
compute_victory_points
- raise "wrong opposition + bases #{@opposition_bases.v} != 19" if @opposition_bases.v != 19
- raise "wrong support + commitment : #{@support_commitment.v} != 22" if @support_commitment.v != 22
end
def medium