aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-04-24 14:08:31 +0200
committeralexichi <alexbankai96@gmail.com>2016-04-24 14:08:31 +0200
commita6768cc97e3b418e0df08bcc2b09d8ffb1c9daa2 (patch)
tree3c4582b5daddad9ef1479e5e858a02e3acbadc7a /js
parent743cbaa32e6b8564e069f98ff3ea69a0707bad19 (diff)
downloadcandybox-a6768cc97e3b418e0df08bcc2b09d8ffb1c9daa2.tar.gz
candybox-a6768cc97e3b418e0df08bcc2b09d8ffb1c9daa2.tar.bz2
candybox-a6768cc97e3b418e0df08bcc2b09d8ffb1c9daa2.tar.xz
candybox-a6768cc97e3b418e0df08bcc2b09d8ffb1c9daa2.zip
nothing special
Diffstat (limited to 'js')
-rw-r--r--js/craftmine.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/craftmine.js b/js/craftmine.js
index 50d3a47..4ccdf2f 100644
--- a/js/craftmine.js
+++ b/js/craftmine.js
@@ -1,7 +1,7 @@
datas = {
gold: 0,
mine: 0,
- miners: 1,
+ miners: 0,
level: 1
}
@@ -34,7 +34,7 @@ function withdrawMine() {
function initCraftMine() {
sendRequest("craftmine.php", "op=getCraftMine", function(xhr) {
var ret = xhr.responseText;
- datas.gold = ret;
+ datas.gold = parseInt(ret);
updateDatas("gold");
})
}