summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/rules.js b/rules.js
index d78a177..97ebc9d 100644
--- a/rules.js
+++ b/rules.js
@@ -74,6 +74,26 @@ const power_class = [
"austria pragmatic saxony",
]
+const turn_name = [
+ "Setup",
+ "Turn 1",
+ "Turn 2",
+ "Turn 3",
+ "Winter 1741",
+ "Turn 4",
+ "Turn 5",
+ "Turn 6",
+ "Winter 1742",
+ "Turn 7",
+ "Turn 8",
+ "Turn 9",
+ "Winter 1743",
+ "Turn 10",
+ "Turn 11",
+ "Turn 12",
+ "Winter 1744",
+]
+
const F_EMPEROR_FRANCE = 1
const F_EMPEROR_AUSTRIA = 2
const F_ITALY_FRANCE = 4
@@ -1136,30 +1156,10 @@ function eliminate_general(p, indent) {
/* SEQUENCE OF PLAY */
-const TURN_NAME = [
- "Setup",
- "Turn 1",
- "Turn 2",
- "Turn 3",
- "Winter 1741",
- "Turn 4",
- "Turn 5",
- "Turn 6",
- "Winter 1742",
- "Turn 7",
- "Turn 8",
- "Turn 9",
- "Winter 1743",
- "Turn 10",
- "Turn 11",
- "Turn 12",
- "Winter 1744",
-]
-
function goto_start_turn() {
game.turn += 1
- log("# " + TURN_NAME[game.turn])
+ log("# " + turn_name[game.turn])
game.selected = -1
@@ -5543,7 +5543,7 @@ states.imperial_election = {
if (game.power === P_AUSTRIA || game.power === P_PRAGMATIC)
view.actions.power = [ P_AUSTRIA ]
else
- view.actions.power = [ P_FRANCE, P_AUSTRIA ]
+ view.actions.power = [ P_BAVARIA, P_AUSTRIA ]
}
},
power(pow) {