summaryrefslogtreecommitdiff
path: root/cards.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-10-22 22:19:15 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-22 23:37:57 +0200
commit23bd83c80d3e0a2d7dd18f76ae4039effd7ce448 (patch)
treefa5e2beeacbf025c8250cfe77059c7add6048363 /cards.js
parent78754928c9b1c55bdffe40ff33342c7329f3ce77 (diff)
downloadmaria-23bd83c80d3e0a2d7dd18f76ae4039effd7ce448.tar.gz
political shifts and troops+tcs
Diffstat (limited to 'cards.js')
-rw-r--r--cards.js264
1 files changed, 264 insertions, 0 deletions
diff --git a/cards.js b/cards.js
new file mode 100644
index 0000000..1d029cb
--- /dev/null
+++ b/cards.js
@@ -0,0 +1,264 @@
+"use strict"
+
+var political_cards = [ { title: null, powers: [], flavor: null, effects: [] } ]
+
+;(function () {
+
+const P_FRANCE = 0
+const P_PRUSSIA = 1
+const P_PRAGMATIC = 2
+const P_AUSTRIA = 3
+
+function def_pol_card(year, title, powers, flavor, effects) {
+ powers.sort((a,b)=>a-b)
+ political_cards.push({ year, title, powers, flavor, effects })
+}
+
+/* 1741 */
+
+def_pol_card(1741,
+ "Swedish-Russian War",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Russia -1 or +1",
+ "Italy -1",
+ ]
+)
+
+def_pol_card(1741,
+ "Military Aid?",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Russia +1",
+ ]
+)
+
+def_pol_card(1741,
+ "Naples",
+ [ P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Italy -1",
+ ]
+)
+
+def_pol_card(1741,
+ "Charles Emmanuel",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Saxony -1 if allied with Prussia",
+ "Italy +1",
+ ]
+)
+
+def_pol_card(1741,
+ "War of Jenkins' Ear",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "France -1 TC this turn",
+ "Italy -1 or +1",
+ ]
+)
+
+def_pol_card(1741,
+ "Denmark",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Pragmatic +1 TC and +3 troops",
+ ]
+)
+
+/* 1742 */
+
+def_pol_card(1742,
+ "Coup d'État",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Russia -1",
+ ]
+)
+
+def_pol_card(1742,
+ "Sweden Surrenders",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Saxony +1",
+ "Russia -1",
+ ]
+)
+
+def_pol_card(1742,
+ "Spain",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Russia -1 or +1",
+ "Italy -2",
+ ]
+)
+
+def_pol_card(1742,
+ "Sardinia-Piedmont",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Italy +2",
+ ]
+)
+
+def_pol_card(1742,
+ "Hessian Mercenaries",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Your major power +3 troops",
+ ]
+)
+
+def_pol_card(1742,
+ "Electoral Palatinate",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Mannheim to French control",
+ "France +1 TC and +3 troops",
+ ]
+)
+
+/* 1743 */
+
+def_pol_card(1743,
+ "Lopukhna Conspiracy",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Russia -2",
+ ]
+)
+
+def_pol_card(1743,
+ "Alexei Bestushev",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Saxony +1",
+ "Russia -1 or +1",
+ ]
+)
+
+def_pol_card(1743,
+ "Commodore Martin",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Italy -1 or +2",
+ ]
+)
+
+def_pol_card(1743,
+ "France",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Italy -1 or +1",
+ ]
+)
+
+def_pol_card(1743,
+ "Frankfurt Union",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "France or Bavaria +2 troops",
+ ]
+)
+
+def_pol_card(1743,
+ "Quadruple Alliance",
+ [ P_PRUSSIA, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Saxony +4",
+ "Saxony +2 troops",
+ ]
+)
+
+/* 1744 */
+
+def_pol_card(1744,
+ "Catherine",
+ [ P_PRUSSIA, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Russia -1 or +1",
+ ]
+)
+
+def_pol_card(1744,
+ "Russia",
+ [ P_PRUSSIA, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Russia -1 or +2",
+ ]
+)
+
+def_pol_card(1744,
+ "Genoa",
+ [ P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Saxony +1",
+ "Italy -2 or +1",
+ ]
+)
+
+def_pol_card(1744,
+ "Separate Peace",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Italy -1 or +2",
+ ]
+)
+
+def_pol_card(1744,
+ "Jacobite Rising",
+ [ P_PRAGMATIC, P_FRANCE ],
+ "FLAVOR",
+ [
+ "Pragmatic general to England",
+ // "Pragmatic -1 TC until game end",
+ ]
+)
+
+def_pol_card(1744,
+ "Carnatic War",
+ [ P_PRAGMATIC, P_FRANCE, P_AUSTRIA ],
+ "FLAVOR",
+ [
+ "Pragmatic or France +1 TC and +2 troops",
+ ]
+)
+
+/* IMPERIAL ELECTION */
+
+def_pol_card(1742,
+ "Imperial Election",
+ [],
+ null,
+ null
+)
+
+})()
+
+/* EXPORT */
+
+if (typeof module === 'object') module.exports = political_cards