From 269c5cb96796d487e8c3623eaf47bb3292eabf9f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Dec 2023 00:37:43 +0100 Subject: Automatic resign menu. --- play.html | 2 -- rules.js | 11 ----------- 2 files changed, 13 deletions(-) diff --git a/play.html b/play.html index 5f494af..cf8dd53 100644 --- a/play.html +++ b/play.html @@ -495,8 +495,6 @@ svg .area.tip, svg .urban2.tip {
  • Charts & Tables
  • FLN Missions
  • Gov. Missions -
  • -
  • Resign diff --git a/rules.js b/rules.js index 17c09c6..a695843 100644 --- a/rules.js +++ b/rules.js @@ -1172,17 +1172,6 @@ exports.view = function(state, player) { return view } -exports.resign = function (state, player) { - load_state(state) - if (game.state !== 'game_over') { - if (player === FLN_NAME) - goto_game_over(GOV_NAME, "FLN resigned.") - if (player === GOV_NAME) - goto_game_over(FLN_NAME, "Government resigned.") - } - return game -} - function victory_scale() { let psl_diff = Math.abs(game.gov_psl - game.fln_psl) if (psl_diff <= 25) { -- cgit v1.2.3