diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:37:43 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-24 00:37:43 +0100 |
commit | 269c5cb96796d487e8c3623eaf47bb3292eabf9f (patch) | |
tree | d5966dee7b9da3aece395d2b277107a5b8d7557e | |
parent | b616242fc2b582189e3518ca3ed9161ef117e548 (diff) | |
download | algeria-269c5cb96796d487e8c3623eaf47bb3292eabf9f.tar.gz |
Automatic resign menu.
-rw-r--r-- | play.html | 2 | ||||
-rw-r--r-- | rules.js | 11 |
2 files changed, 0 insertions, 13 deletions
@@ -495,8 +495,6 @@ svg .area.tip, svg .urban2.tip { <li><a href="info/charts.html" target="_blank">Charts & Tables</a> <li><a href="info/charts.html#fln-missions" target="_blank">FLN Missions</a> <li><a href="info/charts.html#gov-missions" target="_blank">Gov. Missions</a> - <li class="resign separator"> - <li class="resign" onclick="confirm_resign()">Resign </menu> </details> <button class="icon_button" onclick="toggle_pieces()"><img src="/images/earth-africa-europe.svg"></button> @@ -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) { |