diff options
author | teisuru <31881306+teisuru@users.noreply.github.com> | 2023-06-27 11:43:32 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | baec7104dcde86fd752ea25a992238e2283b238a (patch) | |
tree | 64d24e5baf32ad0e9983bd6e737cbfbaa0815cd7 /rules.js | |
parent | 43a3b24a6b7670768ec8c58f0d9e40c1162ac43f (diff) | |
download | plantagenet-baec7104dcde86fd752ea25a992238e2283b238a.tar.gz |
wastage turns
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 } |