aboutsummaryrefslogtreecommitdiffstats
path: root/js/perso.js
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-10 18:34:22 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-10 18:34:22 +0200
commit162b1de442bae3f02f14771eeb5f4f32868a97b3 (patch)
tree3426fdb07b631690d28619c570139244803e5763 /js/perso.js
parent2f32bc3153b7f2c2561e4603f912573921e6449f (diff)
downloadcandybox-162b1de442bae3f02f14771eeb5f4f32868a97b3.tar.gz
candybox-162b1de442bae3f02f14771eeb5f4f32868a97b3.tar.bz2
candybox-162b1de442bae3f02f14771eeb5f4f32868a97b3.tar.xz
candybox-162b1de442bae3f02f14771eeb5f4f32868a97b3.zip
continue the use of objects problem
Diffstat (limited to 'js/perso.js')
-rw-r--r--js/perso.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/perso.js b/js/perso.js
index 44b82eb..7977a9d 100644
--- a/js/perso.js
+++ b/js/perso.js
@@ -26,7 +26,8 @@ function levelUp(xp){
data.maxHP+=2;
}
//need to send the xp to the server
- sendRequest("craftmine.php", "op=updatePerso&hp="+data.hp+"&maxHP="+data.maxHP+"&xp="+data.xp+"&lv="+data.level+"&power="+data.power+"&bonusPower="+bonusPower, function(){
+ sendRequest("craftmine.php", "op=updatePerso&hp="+data.hp+"&maxHP="+data.maxHP+"&xp="+data.xp+"&lv="+data.level
+ +"&power="+data.power+"&bonusPower="+bonusPower, function(){
displayPerso(data.hp,data.maxHP,data.maxHP,data.xp,data.level,data.power,data.bonusPower);
});
}