From 64ac25a40a2a647a90286d78b7c9e0137fd1da01 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 24 Nov 2024 15:57:08 +0100 Subject: show proposed deal for inactive players too --- rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rules.js') 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 -- cgit v1.2.3