summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-24 00:38:52 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-24 00:38:52 +0100
commitc8a4d0daa43e26b492b3d1e1bae47da1bf6655b4 (patch)
tree3407575369f8185ae4231b24ffaa2899b206e093
parent303af2723942866b60cb5632625750be126d996d (diff)
downloadjulius-caesar-master.tar.gz
Automatic resign menu.HEADmaster
-rw-r--r--play.html2
-rw-r--r--rules.js14
2 files changed, 0 insertions, 16 deletions
diff --git a/play.html b/play.html
index d2e7951..bbb6864 100644
--- a/play.html
+++ b/play.html
@@ -31,8 +31,6 @@
<li><a href="info/rules.html" target="_blank">Rules</a>
<li><a href="info/cards.html" target="_blank">Cards</a>
<li><a href="info/blocks.html" target="_blank">Blocks</a>
- <li class="resign separator">
- <li class="resign" onclick="confirm_resign()">Resign
</menu>
</details>
<button onclick="toggle_blocks()"><img src="/images/earth-africa-europe.svg"></button>
diff --git a/rules.js b/rules.js
index a44fd4f..8eebf44 100644
--- a/rules.js
+++ b/rules.js
@@ -2757,20 +2757,6 @@ exports.action = function (state, current, action, arg) {
return game
}
-exports.resign = function (state, current) {
- game = state
- if (game.state !== 'game_over') {
- logbr()
- log(current + " resigned.")
- count_vp()
- game.active = null
- game.state = 'game_over'
- game.result = enemy(current)
- game.victory = current + " resigned."
- }
- return game
-}
-
function make_battle_view() {
let attacker = get_attacker(game.where)
let bv = {