summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--play.js20
-rw-r--r--rules.js44
2 files changed, 42 insertions, 22 deletions
diff --git a/play.js b/play.js
index f8f690c..b0b1b7e 100644
--- a/play.js
+++ b/play.js
@@ -72,6 +72,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
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) {