summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js17
-rw-r--r--rules.js12
2 files changed, 23 insertions, 6 deletions
diff --git a/play.js b/play.js
index a6b09e8..66d6641 100644
--- a/play.js
+++ b/play.js
@@ -63,7 +63,7 @@ for (let s of data.type.objective2_imperial) set_add(objective2[P_IMPERIAL], s)
for (let s of data.type.objective_france) set_add(objective1[P_FRANCE], s)
const power_class = [ "prussia", "hanover", "russia", "sweden", "austria", "imperial", "france", "imaginary" ]
-const power_name = [ "Prussia", "Hanover", "Russia", "Sweden", "Austria", "Imperial Army", "France", "Imaginary" ]
+const power_name = [ "Prussia", "Hanover", "Russia", "Sweden", "Austria", "Imperial Army", "France", "Imaginary Player" ]
const GENERAL_POWER = [ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 5, 6, 6, 6 ]
@@ -316,6 +316,17 @@ const fate_effect_text = [
null,
]
+const the_war_in_the_west_text = `<p>Prussia receives 2 TC per round, but has to discard one of these two immediately. As soon as the first subsidy reduction occurs (due to the Card of Fate “Lord Bute” or “Poems”) Prussia receives only 1 TC per round. The second subsidy reduction has no effect.
+<p>France wins if she controls all of her red objectives.
+<p>Hanover/Prussia wins if the game ends before France has won.
+<p>The game ends when France is kicked out of the game by the Cards of Fate “India” and “America”.
+`
+
+const the_austrian_theater_text = `<p>Prussia receives 5 TC per round. Every subsidy reduction (due to the Card of Fate “Lord Bute” or “Poems”) reduces her income by (only) 1 TC per round.
+<p>Austria wins if she controls all of her objectives. Similarly, the Imperial Army wins if she controls all of her objectives.
+<p>Prussia wins by controlling all of her blue objectives in Bohemia, or if the game ends before Austria or the Imperial Army have won.
+`
+
/* PANEL ORDER */
const panel_order = [ P_PRUSSIA, P_HANOVER, P_RUSSIA, P_SWEDEN, P_AUSTRIA, P_IMPERIAL, P_FRANCE, P_FRANCE+1 ]
@@ -1175,6 +1186,10 @@ function on_log(text) {
p.className = "h fate"
text = text.substring(2)
}
+ else if (text.match(/^\.s1/))
+ text = the_war_in_the_west_text
+ else if (text.match(/^\.s2/))
+ text = the_austrian_theater_text
else if (text.match(/^=\d/)) {
p.className = "h " + power_class[text[1]]
text = power_name[text[1]]
diff --git a/rules.js b/rules.js
index 72a2a3a..ddcff96 100644
--- a/rules.js
+++ b/rules.js
@@ -4182,14 +4182,14 @@ exports.setup = function (seed, scenario, options) {
game.clock = [ 18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1 ]
}
- if (game.scenario === 1)
+ if (game.scenario === 1) {
setup_the_war_in_the_west()
- else if (game.scenario === 2)
+ } else if (game.scenario === 2) {
setup_the_austrian_theatre()
- else
+ } else {
log("# 1756")
-
- log("$54")
+ log("$54")
+ }
return game
@@ -4211,6 +4211,7 @@ function remove_power_from_play(pow) {
function setup_the_war_in_the_west() {
log("# The War in the West")
+ log(".s1")
remove_power_from_play(P_RUSSIA)
remove_power_from_play(P_SWEDEN)
@@ -4225,6 +4226,7 @@ function setup_the_war_in_the_west() {
function setup_the_austrian_theatre() {
log("# The Austrian Theatre")
+ log(".s2")
remove_power_from_play(P_HANOVER)
remove_power_from_play(P_RUSSIA)