summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-13 23:57:16 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-13 23:57:16 +0200
commitd6b263f0401957f690994cd589801f39d9c27ed0 (patch)
treefbcadb60fe511169ae425fdf294d6e5ca2e931d4 /rules.js
parenta1794002f1b3db24f48117a6b86b2e1b7dbc7c54 (diff)
downloadtime-of-crisis-d6b263f0401957f690994cd589801f39d9c27ed0.tar.gz
Fix senate/military mix up during credit calculations.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files 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) {