aboutsummaryrefslogtreecommitdiffstats
path: root/inc/dungeon.inc
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-01 13:55:08 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-01 13:55:08 +0200
commit64b1663e55544e1ed0e072c4f624688625691c9f (patch)
tree2af1f1941361e89f17c1f32d60dfe6f2873f9bca /inc/dungeon.inc
parent31866085151518f468794dc71b541543e6b2f691 (diff)
downloadcandybox-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.inc11
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.
+}
+
?>