aboutsummaryrefslogtreecommitdiffstats
path: root/craftmine.php
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-01 11:32:08 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-01 11:32:08 +0200
commit31866085151518f468794dc71b541543e6b2f691 (patch)
treed73fe26a86db53707dd9c36f73b08ae3875c93e4 /craftmine.php
parent48ca3e8ee63787d567fd0fe1bcfea7158a6f9596 (diff)
downloadcandybox-31866085151518f468794dc71b541543e6b2f691.tar.gz
candybox-31866085151518f468794dc71b541543e6b2f691.tar.bz2
candybox-31866085151518f468794dc71b541543e6b2f691.tar.xz
candybox-31866085151518f468794dc71b541543e6b2f691.zip
add the beginning part of the dungeon
When you have enough money you can buy a ticket and access the dungeon I made a file monsters.xml . It's a bit like the code with the shop but modified When you press the button launch in the onglet dungeon , it display "Battle!" in the console
Diffstat (limited to 'craftmine.php')
-rw-r--r--craftmine.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/craftmine.php b/craftmine.php
index 78c5e37..4cd6b00 100644
--- a/craftmine.php
+++ b/craftmine.php
@@ -4,7 +4,7 @@ require_once("inc/mine.inc");
require_once("inc/guild.inc");
require_once("inc/shop.inc");
require_once("inc/craftmine.inc");
-
+require_once("inc/dungeon.inc");
session_start(); // Must be placed *BEFORE* $_SESSION is actually used and *AFTER* all classes are imported
/**
@@ -42,6 +42,7 @@ switch($op) {
case "getCraftMine": sendCraftMine(); break;
case "buildShop": buildShop(); break;
case "buyItem": buyItem(); break;
+ case "buildDungeon" : buildDungeon(); break;
default: reportBadRequest();
}