From baec7104dcde86fd752ea25a992238e2283b238a Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Tue, 27 Jun 2023 11:43:32 +0200 Subject: wastage turns --- rules.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 3324365..c34501e 100644 --- a/rules.js +++ b/rules.js @@ -6473,8 +6473,8 @@ function end_plow_and_reap() { // === END CAMPAIGN: WASTAGE === // TODO : WASTE function goto_wastage() { + if (game.turn === 5 || game.turn === 10) { clear_lords_moved() - let done = true for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) { if (check_lord_wastage(lord)) { @@ -6482,12 +6482,16 @@ function goto_wastage() { done = false } } - if (done) end_wastage() else game.state = "wastage" } + else { + push_undo() + goto_reset() + } +} function check_lord_wastage(lord) { if (get_lord_assets(lord, PROV) > 1) @@ -6498,8 +6502,6 @@ function check_lord_wastage(lord) { return true if (get_lord_assets(lord, SHIP) > 1) return true - if (get_lord_capability(lord, 0) !== NOTHING && get_lord_capability(lord, 1) !== NOTHING) - return true return false } -- cgit v1.2.3