summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-24 15:57:08 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-24 22:49:03 +0100
commit64ac25a40a2a647a90286d78b7c9e0137fd1da01 (patch)
tree98d6c6482f80316a061976a3afde69718b1c7fd6
parenta2ea835f0df0f1bcd5d50792679626f85f39cc75 (diff)
downloadmaria-64ac25a40a2a647a90286d78b7c9e0137fd1da01.tar.gz
show proposed deal for inactive players too
-rw-r--r--rules.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 92b84f9..25b6436 100644
--- a/rules.js
+++ b/rules.js
@@ -6430,7 +6430,6 @@ states.accept_deal_from = {
let from = game.proposal.deal[DI_A_POWER]
let to = game.proposal.deal[DI_B_POWER]
prompt(`Accept ${power_name[from]} - ${power_name[to]} deal?`)
- view.proposed_deal = game.proposal.deal
view.actions.accept = 1
view.actions.reject = 1
view.actions.undo = 0
@@ -6452,7 +6451,6 @@ states.accept_deal_to = {
let from = game.proposal.deal[DI_A_POWER]
let to = game.proposal.deal[DI_B_POWER]
prompt(`Accept ${power_name[from]} - ${power_name[to]} deal?`)
- view.proposed_deal = game.proposal.deal
view.actions.accept = 1
view.actions.reject = 1
view.actions.undo = 0
@@ -6490,7 +6488,6 @@ states.reject_deal = {
let from = game.proposal.deal[DI_A_POWER]
let to = game.proposal.deal[DI_B_POWER]
prompt(`Deal between ${power_name[from]} and ${power_name[to]} was NOT accepted.`)
- view.proposed_deal = game.proposal.deal
view.actions.resume = 1
view.actions.undo = 0
},
@@ -7217,6 +7214,9 @@ exports.view = function (state, player) {
if (!is_intro())
view.pol_deck = mask_pol_deck()
+ if (game.proposal && game.proposal.deal)
+ view.proposed_deal = game.proposal.deal
+
if (game.political)
view.political = game.political