diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-24 15:57:08 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-24 22:49:03 +0100 |
commit | 64ac25a40a2a647a90286d78b7c9e0137fd1da01 (patch) | |
tree | 98d6c6482f80316a061976a3afde69718b1c7fd6 | |
parent | a2ea835f0df0f1bcd5d50792679626f85f39cc75 (diff) | |
download | maria-64ac25a40a2a647a90286d78b7c9e0137fd1da01.tar.gz |
show proposed deal for inactive players too
-rw-r--r-- | rules.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |