From 5c471a79b29e8886138f5d506fe2c59546b3d4c2 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Mon, 5 Jun 2023 01:39:15 +0200 Subject: Removal of Veche --- rules.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/rules.js b/rules.js index f14168b..12957c6 100644 --- a/rules.js +++ b/rules.js @@ -5643,7 +5643,7 @@ function award_spoils(n) { add_spoils(PROV, n) add_spoils(COIN, n) } - +/* function goto_sack() { let here = game.battle.where @@ -5705,7 +5705,7 @@ states.sack = { function end_ransom_sack() { resume_sack() -} +}*/ // === ENDING THE BATTLE: WITHDRAW === @@ -6490,7 +6490,7 @@ states.feed_lord_shared = { } function end_feed() { - goto_pay() + end_pay() } // === LEVY & CAMPAIGN: PAY === @@ -6524,8 +6524,8 @@ function goto_pay() { log_br() game.state = "pay" game.who = NOBODY - if (!has_friendly_lord_who_may_be_paid()) - end_pay() + /*if (!has_friendly_lord_who_may_be_paid()) + end_pay()*/ } function resume_pay() { @@ -6553,10 +6553,10 @@ states.pay = { view.prompt = `Pay: You may Pay ${lord_name[game.who]} with Coin.` - if (game.active === RUSSIANS) { + /* if (game.active === RUSSIANS) { if (game.pieces.veche_coin > 0 && is_lord_unbesieged(game.who)) view.actions.veche_coin = 1 - } + }*/ for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) { if (get_lord_locale(lord) === here) { @@ -6577,13 +6577,6 @@ states.pay = { add_lord_service(game.who, 1) resume_pay() }, - veche_coin() { - push_undo_without_who() - log(`Paid L${game.who} from Veche.`) - game.pieces.veche_coin-- - add_lord_service(game.who, 1) - resume_pay() - }, end_pay() { push_undo_without_who() end_pay() -- cgit v1.2.3