summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-17 15:09:19 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit6fbb2af64491c77629e79d57ac17aeec14162bab (patch)
tree3730902d9fbc17a299c11add26820da030a75dfc /play.js
parent5abd7f5472afe0f5461f668709bf2b379c0b48b5 (diff)
downloadnevsky-6fbb2af64491c77629e79d57ac17aeec14162bab.tar.gz
Use 4x Coin asset in Veche.
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/play.js b/play.js
index 49240d8..e73bcbb 100644
--- a/play.js
+++ b/play.js
@@ -1161,6 +1161,10 @@ function update_veche() {
ui.veche.replaceChildren()
let n = view.pieces.veche_coin
+ while (n >= 4) {
+ add_asset(ui.veche, COIN, 4, VECHE)
+ n -= 4
+ }
while (n >= 3) {
add_asset(ui.veche, COIN, 3, VECHE)
n -= 3