summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-02 21:46:43 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-02 21:46:43 +0100
commit346f21024b62b0ec3abfa19423854ab83ef230b6 (patch)
tree8a5b829cda114955e1f56f993e8ebaa649ed41cb
parenta639a166332f6d11fc00c2816882d5fb2a46f835 (diff)
downloadmaria-346f21024b62b0ec3abfa19423854ab83ef230b6.tar.gz
Charles is Bavarian!
-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) {