"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