summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-18 14:27:57 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commitb57213961673547fa53b1148fe9537727359948d (patch)
treecf8a6308b8bf7359d4e5038176a7aa58e38ebdb9 /rules.js
parent18cf96b3eb1ee4958f8a67e1627334b6c63cbf96 (diff)
downloadnevsky-b57213961673547fa53b1148fe9537727359948d.tar.gz
Pay: Select Lord by clicking Service marker.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 89cf606..85fc4bc 100644
--- a/rules.js
+++ b/rules.js
@@ -9212,9 +9212,12 @@ function resume_pay() {
states.pay = {
prompt() {
- for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord)
- if (is_lord_on_map(lord) && can_pay_lord(lord))
+ for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) {
+ if (is_lord_on_map(lord) && can_pay_lord(lord)) {
prompt_select_lord(lord)
+ prompt_select_service(lord)
+ }
+ }
prompt_held_event()
@@ -9248,6 +9251,7 @@ states.pay = {
view.actions.end_pay = 1
},
lord: action_select_lord,
+ service: action_select_lord,
loot(lord) {
push_undo_without_who()
if (game.who === lord)
@@ -9983,9 +9987,13 @@ function prompt_select_lord_on_calendar(lord) {
}
function prompt_select_lord(lord) {
- if (lord !== game.who) {
+ if (lord !== game.who)
gen_action_lord(lord)
- }
+}
+
+function prompt_select_service(lord) {
+ if (lord !== game.who)
+ gen_action_service(lord)
}
function action_select_lord(lord) {