summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-01 19:55:23 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-02 12:57:02 +0200
commit779b6c0c999c16a0bd9bc9e11f59ee39025513ad (patch)
tree307981db9a175f37c4f2e0545be4346e9207f74e
parent4e8dfae6870d46887dd6be8e08426cf0b821f27d (diff)
downloadfriedrich-779b6c0c999c16a0bd9bc9e11f59ee39025513ad.tar.gz
disable test scenario
-rw-r--r--play.js2
-rw-r--r--rules.js9
2 files changed, 2 insertions, 9 deletions
diff --git a/play.js b/play.js
index 5d486c2..2e54aec 100644
--- a/play.js
+++ b/play.js
@@ -1100,7 +1100,7 @@ function on_update() {
action_button("end_turn", "End turn")
confirm_action_button("confirm_end_movement", "End movement",
- "You still have UNMOVED pieces.?")
+ "You still have UNMOVED pieces!")
action_button("undo", "Undo")
diff --git a/rules.js b/rules.js
index 92f959a..ac65ea3 100644
--- a/rules.js
+++ b/rules.js
@@ -12,7 +12,6 @@ const SCENARIO_INDEX = {
"3P": 3,
"The War in the West": 1,
"The Austrian Theatre": 2,
- "TEST": 4
}
const ROLE_NAME_1 = [
@@ -1341,8 +1340,7 @@ states.movement = {
if (done_trains && done_generals)
view.actions.end_movement = 1
else
- // TODO view.actions.confirm_end_movement = 1
- view.actions.end_movement = 1
+ view.actions.confirm_end_movement = 1
},
piece(p) {
push_undo()
@@ -4230,11 +4228,6 @@ exports.setup = function (seed, scenario, options) {
shuffle_bigint(game.deck)
- if (scenario === "TEST") {
- game.turn = 3
- game.clock = [ 18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1 ]
- }
-
if (game.scenario === 1) {
setup_the_war_in_the_west()
} else if (game.scenario === 2) {