summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-30 00:36:20 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-30 00:36:20 +0200
commit2b6f168ed9ec5ab91d54ffdd8e02730b2404f96f (patch)
tree757fea0f7566417b694ea37397d0d7f9be4888b8
parent1e96f59510f5b54fc98e4742c2f8d7d214e518be (diff)
downloadfield-cloth-gold-master.tar.gz
Clear undo on game end.HEADmaster
-rw-r--r--rules.js1
-rw-r--r--title.sql5
2 files changed, 2 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 7d45ace..7bd9166 100644
--- a/rules.js
+++ b/rules.js
@@ -190,6 +190,7 @@ exports.view = function (state, player) {
}
function goto_game_over(result, victory) {
+ clear_undo()
game.state = "game_over"
game.active = "None"
game.result = result
diff --git a/title.sql b/title.sql
index 1f4118a..b7776c0 100644
--- a/title.sql
+++ b/title.sql
@@ -1,4 +1 @@
-insert or replace into titles ( title_id, title_name, bgg, is_symmetric ) values ( 'field-cloth-gold', 'Field of the Cloth of Gold', 309752, 1 );
-insert or ignore into setups ( title_id, player_count, scenario, options ) values
- ( 'field-cloth-gold', 2, 'Standard', '{}' )
-;
+insert or ignore into titles ( title_id, title_name, bgg, is_symmetric ) values ( 'field-cloth-gold', 'Field of the Cloth of Gold', 309752, 1 );