aboutsummaryrefslogtreecommitdiffstats
path: root/js/craftmine.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/craftmine.js')
-rw-r--r--js/craftmine.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/js/craftmine.js b/js/craftmine.js
index 347ce65..77cafee 100644
--- a/js/craftmine.js
+++ b/js/craftmine.js
@@ -56,12 +56,7 @@ function initCraftMine() {
console.log(ret.perso);
data.gold = parseInt(ret.gold); // Server's response is a string
data.mine = 0; // Reset mine
- if(ret.perso){
- data.hp = ret.perso.hp;
- data.xp = ret.perso.xp;
- data.level = ret.perso.lv;
- displayPerso(ret.perso.hp,ret.perso.xp,ret.perso.lv);
- }
+ if(ret.perso) updatePerso(ret.perso);
if(ret.shop) displayShop(ret.shop);
if(ret.inventory) displayInventory(ret.inventory);
if(ret.dungeon == false){}//if we have left the donjon