Теперь и по ЦП можно гулять.

This commit is contained in:
lopar 2020-10-27 01:18:02 +02:00
parent f4fb3b11a8
commit 5ec1219b04
2 changed files with 7 additions and 4 deletions

View File

@ -90,7 +90,7 @@ class Travel
* 17 Room 50 ashop.php
* 222 Room 2702 [STREET]
*/
$room[20] = [21, 401, 660, 777, 2601];
$room[20] = [21, 22, 23, 25, 26, 27, 50, 2702];
/*
* 3 Room 2111 [STREET]
* 4 Room 20 [STREET]
@ -102,7 +102,7 @@ class Travel
*/
$room[21] = [20, 29, 30, 31, 34, 650, 2111];
$room[26] = [3, 4, 6, 660];
$room[26] = [20, 401, 660, 777, 2601];
$room[2601] = [26, 37, 404, 1051, 2655];
$room[2655] = [603, 2601];

View File

@ -66,6 +66,10 @@ if ($_POST['move_outside'] ?? 0 && $user->room != 20) {
header('Location: main.php?goto=plo');
exit();
}
if ($_POST['main_page'] ?? 0) {
header('Location: main.php');
exit();
}
/* === проверяем соответствие комнаты и скрипта === */
if (in_array($user->room, [20, 21, 26, 48, 51, 52, 651, 2655, 2601, 2701, 2702, 2111], 1)) {
@ -562,8 +566,7 @@ Template::header('Игра');
<?php else: ?>
<input class="button icon move" type="submit" name="move_outside" value="Выйти на улицу">
<?php endif; ?>
<button class="button icon loop" onclick="window.location.href='main.php';">Обновить страницу
</button>
<input class="button" type="submit" name="main_page" value="На главную">
</div>
</div>
<div> <!--рюкзак-->