From 650c504a1812b32a25fd491e80dbcbb05c935de4 Mon Sep 17 00:00:00 2001 From: lopar Date: Tue, 27 Oct 2020 20:14:07 +0200 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=85=D0=BE=D0=B4\=D0=B2=D1=8B=D1=85?= =?UTF-8?q?=D0=BE=D0=B4=20=D0=B2=20=D1=81=D0=B0=D0=BC=20=D0=BA=D0=BB=D1=83?= =?UTF-8?q?=D0=B1=20=D0=B7=D0=B0=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=BB?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- city.php | 3 +-- classes/Travel.php | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/city.php b/city.php index 954a7fd..25997f3 100644 --- a/city.php +++ b/city.php @@ -59,8 +59,7 @@ switch ($location[0]) { default: break; case 'level1': - header('location: main.php?goto=arena'); - exit; + Travel::toRoom(1,$user->room); break; case 'level7': Travel::toRoom(21,$user->room); diff --git a/classes/Travel.php b/classes/Travel.php index 8131856..b6a56f6 100644 --- a/classes/Travel.php +++ b/classes/Travel.php @@ -8,6 +8,7 @@ class Travel * @var string[] */ private static $roomFileName = [ + 1 => 'main.php', 20 => 'city.php', 21 => 'city.php', 22 => 'shop.php', @@ -88,8 +89,8 @@ class Travel * 13 location: quest_room.php * 222 Room 2702 [STREET] */ - $room[20] = [21, 22, 23, 25, 26, 27, 2702]; - $room[22] = $room[23] = $room[25] = $room[27] = [20]; + $room[20] = [1, 21, 22, 23, 25, 26, 27, 2702]; + $room[1] = $room[22] = $room[23] = $room[25] = $room[27] = [20]; /* * 3 Room 2111 [STREET] * 4 Room 20 [STREET]