diff options
Diffstat (limited to 'inc/dungeon.inc')
-rw-r--r-- | inc/dungeon.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/dungeon.inc b/inc/dungeon.inc index 32d58ac..bf99685 100644 --- a/inc/dungeon.inc +++ b/inc/dungeon.inc @@ -10,6 +10,7 @@ require_once("messages.inc"); require_once("account.inc"); require_once("Monster.inc"); +require_once("perso.inc"); /** * Loads all the dungeon's monsters from the XML file data/monsters.xml. @@ -26,7 +27,8 @@ function generateMonster(){ $dungeon["monsters"][$floor][] = new Monster((string)$monster->name, intval($monster->level), intval($monster->hp), - intval($monster->xp), + intval($monster->xp), + intval($monster->power), (string)$monster->icon); } } @@ -93,6 +95,7 @@ function sendDungeonProgress(){ $nb=$_POST["mob"]; $_SESSION["dungeon"]["flat"] = $f; $_SESSION["dungeon"]["mob"] = $nb; + reusable(); } /** |