From d6b263f0401957f690994cd589801f39d9c27ed0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 13 Jul 2023 23:57:16 +0200 Subject: Fix senate/military mix up during credit calculations. --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 3be1fdb..c46eb1d 100644 --- a/rules.js +++ b/rules.js @@ -5029,7 +5029,7 @@ function spend_military_credit(cost) { function spend_senate_credit(cost) { let credit = Math.min(cost, game.sip) - game.mip -= credit + game.sip -= credit return cost - credit } @@ -5040,7 +5040,7 @@ states.buy_trash = { if (game.mip > 0) view.prompt += " " + game.mip + " military credits." if (game.sip > 0) - view.prompt += " " + game.mip + " senate credits." + view.prompt += " " + game.sip + " senate credits." let nprov = count_own_provinces() if (game.pp >= 3) { -- cgit v1.2.3