summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteisuru <31881306+teisuru@users.noreply.github.com>2023-06-06 19:22:37 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commitb543883cb91c6fa64eca99bb8fba59bd3cbe1027 (patch)
treedb7dc53c548f0881c7322bdfb5047fcd7117a77e
parent5edb09dea51e592d3eec63b9afeab9d494ba8d97 (diff)
downloadplantagenet-b543883cb91c6fa64eca99bb8fba59bd3cbe1027.tar.gz
Updated Pay (no pillage)
-rw-r--r--rules.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/rules.js b/rules.js
index 131917b..831d113 100644
--- a/rules.js
+++ b/rules.js
@@ -6300,6 +6300,12 @@ function has_friendly_lord_who_may_be_paid() {
function goto_pay() {
log_br()
+ for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) {
+ if (count_lord_all_forces(lord) >= 7)
+ set_lord_unfed(lord, 2)
+ else
+ set_lord_unfed(lord, 1)
+ }
game.state = "pay"
}
@@ -6313,13 +6319,7 @@ states.pay = {
prompt() {
view.prompt = "Pay: You must Pay your Lord's Troops"
let done = true
- prompt_held_event()
- for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) {
- if (count_lord_all_forces(lord) >= 7)
- set_lord_unfed(lord, 2)
- else
- set_lord_unfed(lord, 1)
- }
+
// Pay from own mat