aboutsummaryrefslogtreecommitdiffstats
path: root/js/craftmine.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/craftmine.js')
-rw-r--r--js/craftmine.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/craftmine.js b/js/craftmine.js
index 43c4870..ffc9b5e 100644
--- a/js/craftmine.js
+++ b/js/craftmine.js
@@ -1,8 +1,11 @@
data = {
+ name: "You",
gold: 0,
mine: 0,
miners: 0,
- level: 1
+ level: 1,
+ hp: 1,
+ icon : "H"
}
function sendRequest(url, params, callback) {
@@ -53,6 +56,7 @@ function initCraftMine() {
data.mine = 0; // Reset mine
if(ret.shop) displayShop(ret.shop);
displayInventory(ret.inventory);
+ if(ret.dungeon) displayDungeon();
data.miners = parseInt(ret.miners);
updateData("gold", "mine", "miners");
})