diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) { |