summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-12 19:50:51 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-12 19:50:51 +0200
commit0f4d9f5ba920ea2dc11e38a3eafefdaaf8503116 (patch)
tree74619e60f5ddba0e124c784e305ca0e549a83aed
parentb3385b7824590525acd3852611bd1532eb512000 (diff)
downloadvijayanagara-0f4d9f5ba920ea2dc11e38a3eafefdaaf8503116.tar.gz
Fix Placed event summary.
-rw-r--r--rules.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 2011ef6..e2384c6 100644
--- a/rules.js
+++ b/rules.js
@@ -3978,7 +3978,7 @@ function upop_summary(msg="Nothing") {
function placed_summary(type="") {
if (game.summary.length > 0) {
for (let [n, msg] of game.summary) {
- log("Placed " + msg.replace("%", String(n)) + " in S" + game.vm.s + ".")
+ log(msg.replace("%", String(n)) + " in S" + game.vm.s + ".")
}
} else {
log("Declined placing " + type + " in S" + game.vm.s + ".")
@@ -4024,14 +4024,14 @@ function log_summary_resources(faction) {
}
function logi_resources(faction, n) {
- if (n > 0)
+ if (n >= 0)
logi(faction_flags[faction] + " +" + n + " RES")
else
logi(faction_flags[faction] + " " + n + " RES" )
}
function log_resources(faction, n) {
- if (n > 0)
+ if (n >= 0)
log(faction_flags[faction] + " +" + n + " RES")
else
log(faction_flags[faction] + " " + n + " RES")
@@ -5192,7 +5192,7 @@ states.vm_resources = {
gen_action_resources(f)
}
else if (n === 0) {
- event_prompt("No Resource.")
+ event_prompt("${faction_name[f]} +0 Resources.")
view.actions.skip = 1
}
else {
@@ -5213,7 +5213,10 @@ states.vm_resources = {
vm_next()
},
skip() {
- logi("Nothing")
+ if (!is_succession())
+ log_resources(f, 0)
+ else
+ logi_resources(f, 0)
vm_next()
}
}