aboutsummaryrefslogtreecommitdiffstats
path: root/inc/dungeon.inc
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-05 23:06:29 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-05 23:09:21 +0200
commitf171811a44364f605712aff1ca0808bfe570ef6e (patch)
treea970a69853e19ef43d97c2f48d61a6fb34637ff6 /inc/dungeon.inc
parent1efc4a15c8ab913bf8bdb1aef9f3b5720b3b7762 (diff)
downloadcandybox-f171811a44364f605712aff1ca0808bfe570ef6e.tar.gz
candybox-f171811a44364f605712aff1ca0808bfe570ef6e.tar.bz2
candybox-f171811a44364f605712aff1ca0808bfe570ef6e.tar.xz
candybox-f171811a44364f605712aff1ca0808bfe570ef6e.zip
add xp system and perso server side
Diffstat (limited to 'inc/dungeon.inc')
-rw-r--r--inc/dungeon.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/dungeon.inc b/inc/dungeon.inc
index ebe74b7..c023cf8 100644
--- a/inc/dungeon.inc
+++ b/inc/dungeon.inc
@@ -12,8 +12,9 @@ function generateMonster(){
$dungeon["monsters"][$floor] = array();
foreach($f as $monster){
$dungeon["monsters"][$floor][] = new Monster((string)$monster->name,
- intval($monster->level),
- intval($monster->hp),
+ intval($monster->level),
+ intval($monster->hp),
+ intval($monster->xp),
(string)$monster->icon);
}
}