From 0c108fd2291a85048cb66cbf19bd7128ef7ada8a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 30 May 2024 20:56:49 +0200 Subject: scenario 1 & 2 special rule reminders --- play.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'play.js') 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 = `

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. +

France wins if she controls all of her red objectives. +

Hanover/Prussia wins if the game ends before France has won. +

The game ends when France is kicked out of the game by the Cards of Fate “India” and “America”. +` + +const the_austrian_theater_text = `

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. +

Austria wins if she controls all of her objectives. Similarly, the Imperial Army wins if she controls all of her objectives. +

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]] -- cgit v1.2.3