aboutsummaryrefslogtreecommitdiffstats
path: root/js/shop.js
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-09 20:26:51 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-09 20:26:51 +0200
commit2f32bc3153b7f2c2561e4603f912573921e6449f (patch)
tree87419a11e12f5b7433459fcb5cb9da5211dcbd9e /js/shop.js
parentf1677164c3f46785f6d9380b68cdeba58a680404 (diff)
downloadcandybox-2f32bc3153b7f2c2561e4603f912573921e6449f.tar.gz
candybox-2f32bc3153b7f2c2561e4603f912573921e6449f.tar.bz2
candybox-2f32bc3153b7f2c2561e4603f912573921e6449f.tar.xz
candybox-2f32bc3153b7f2c2561e4603f912573921e6449f.zip
add the use of the objects and the feature power and maxHP
Diffstat (limited to 'js/shop.js')
-rw-r--r--js/shop.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/js/shop.js b/js/shop.js
index a520a38..b6d4cee 100644
--- a/js/shop.js
+++ b/js/shop.js
@@ -69,10 +69,8 @@ function useItem(name) {
sendRequest("craftmine.php", "op=useItem&item="+name, function(ret) {
if(!ret.item) return;
if(ret.perso) updatePerso(ret.perso);
-
var item = document.querySelector("[data-name=\""+ret.item[0].name+"\"]");
var nb = ret.item[1];
-
if(nb>=1)
item.innerHTML = nb;
else