diff options
author | piernov <piernov@piernov.org> | 2016-04-25 19:10:53 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-04-25 19:10:53 +0200 |
commit | 8770f9ddccfafaad935f66ccbf254624b41545f3 (patch) | |
tree | e07d2e93e95a34e9f70f22f52aafa82c09682e4b /js/craftmine.js | |
parent | b141eb3d70b3dc2d75ee8f2bf2edba1fed71f5b6 (diff) | |
parent | 8140617aeb2f32f7095a443ca743c6d6915739c6 (diff) | |
download | candybox-8770f9ddccfafaad935f66ccbf254624b41545f3.tar.gz candybox-8770f9ddccfafaad935f66ccbf254624b41545f3.tar.bz2 candybox-8770f9ddccfafaad935f66ccbf254624b41545f3.tar.xz candybox-8770f9ddccfafaad935f66ccbf254624b41545f3.zip |
Merge remote-tracking branch 'origin/alexichi' into piernov
Diffstat (limited to 'js/craftmine.js')
-rw-r--r-- | js/craftmine.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/craftmine.js b/js/craftmine.js index 66c35fc..92fa45a 100644 --- a/js/craftmine.js +++ b/js/craftmine.js @@ -1,7 +1,7 @@ data = { gold: 0, mine: 0, - miners: 1, + miners: 0, level: 1 } @@ -49,7 +49,8 @@ function initCraftMine() { data.gold = parseInt(ret.gold); // Server's response is a string if(ret.shop) displayShop(ret.shop); displayInventory(ret.inventory); - updateData("gold"); + data.miners = parseInt(ret.miners); + updateData("gold","miners"); }) } |