diff options
author | alexichi <alexbankai96@gmail.com> | 2016-05-01 13:55:08 +0200 |
---|---|---|
committer | alexichi <alexbankai96@gmail.com> | 2016-05-01 13:55:08 +0200 |
commit | 64b1663e55544e1ed0e072c4f624688625691c9f (patch) | |
tree | 2af1f1941361e89f17c1f32d60dfe6f2873f9bca /inc/dungeon.inc | |
parent | 31866085151518f468794dc71b541543e6b2f691 (diff) | |
download | candybox-64b1663e55544e1ed0e072c4f624688625691c9f.tar.gz candybox-64b1663e55544e1ed0e072c4f624688625691c9f.tar.bz2 candybox-64b1663e55544e1ed0e072c4f624688625691c9f.tar.xz candybox-64b1663e55544e1ed0e072c4f624688625691c9f.zip |
Add dungeon without fight system
You can buy a "ticket" to access the dungeon
If you exit you have to buy another ticket
Problem when we update the page, the default sentence is displayed while it said that you can access the dungeon
Diffstat (limited to 'inc/dungeon.inc')
-rw-r--r-- | inc/dungeon.inc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/dungeon.inc b/inc/dungeon.inc index b2277f0..8c26c92 100644 --- a/inc/dungeon.inc +++ b/inc/dungeon.inc @@ -36,4 +36,15 @@ function buildDungeon() { } } +function launchDungeon(){ + $dungeon=generateMonster(); + $opponent = $dungeon["monsters"]["floor1"]; + echo json_encode($opponent); +} + +function exitDungeon(){ + $_SESSION["dungeon"] = false; + echo json_encode(array("a" => 7));//Cette ligne ne sert qu'à contourner l'erreur créé à cause de sendRequest. A revoir. +} + ?> |