summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-14 21:08:58 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:12:42 +0100
commit8c8ac74e79b0987248f60fdb5bcec97631596e30 (patch)
tree0a860ba472bc0e2f282422fe9d58bb0b3181e45d
parent689d6fc191172354d060819f0c6ceb436386ac69 (diff)
downloadshores-of-tripoli-8c8ac74e79b0987248f60fdb5bcec97631596e30.tar.gz
Re-enable resigning.
-rw-r--r--play.html2
-rw-r--r--rules.js4
2 files changed, 1 insertions, 5 deletions
diff --git a/play.html b/play.html
index bc37b60..2634d94 100644
--- a/play.html
+++ b/play.html
@@ -36,10 +36,8 @@
<div class="menu_separator"></div>
<div class="menu_item" onclick="window.open('info/tr_cards.html', '_blank')">Tripolitan Cards</div>
<div class="menu_item" onclick="window.open('info/us_cards.html', '_blank')">United States Cards</div>
- <!-- DISABLED for tournament
<div class="resign menu_separator"></div>
<div class="resign menu_item" onclick="confirm_resign()">Resign</div>
- -->
</div>
</div>
<div class="icon_button" onclick="toggle_zoom()"><img src="/images/magnifying-glass.svg"></div>
diff --git a/rules.js b/rules.js
index b3bbecf..c65aae8 100644
--- a/rules.js
+++ b/rules.js
@@ -925,7 +925,7 @@ states.raid_before_hunt = {
play_battle_card(game.tr, card);
if (card === US_SIGNAL_BOOKS_OVERBOARD) {
let c = discard_random_card(game.us.hand, game.us.discard);
- log("United States discarded #" + c + "\.");
+ log("United States discarded #" + c + ".");
}
if (card === HAPPY_HUNTING) {
game.happy_hunting = true;
@@ -2937,8 +2937,6 @@ exports.action = function (state, current, action, arg) {
}
exports.resign = function (state, current) {
- return state;
- // DISABLE resigning
game = state;
if (game.state !== 'game_over') {
if (current === US)