summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/play.js b/play.js
index 777641d..2186790 100644
--- a/play.js
+++ b/play.js
@@ -962,10 +962,9 @@ function add_valour(parent, lord) {
function update_valour(lord, parent, battle) {
parent.replaceChildren()
if (!battle) return
- for (let i = 0; i < battle.valour[lord]; i++) {
+ let n = map_get(battle.valour, lord, 0)
+ for (let i = 0; i < n; i++)
add_valour(parent, lord)
- }
-
}
function update_lord_mat(ix) {