Теперь нельзя телепортироваться на улицы откуда угодно.

This commit is contained in:
lopar
2020-10-27 00:21:00 +02:00
parent e619669ba3
commit 4b569ab765
2 changed files with 10 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ class Travel
* @param int $roomIdCurrent ID откуда идём.
* @throws \Krugozor\Database\Mysql\Exception
*/
public static function toRoom(int $roomId, int $roomIdCurrent = 0): void
public static function toRoom(int $roomId, int $roomIdCurrent): void
{
$itemsWeight = db::c()->query('SELECT SUM(weight) AS all_weight FROM `inventory` WHERE owner_id = ?i AND on_sale = 0', $_SESSION['uid'])->fetch_assoc();
$eff = db::c()->query('SELECT type FROM users_effects WHERE owner_id = ?i AND (`type` = 10 OR `type` = 13 OR `type` = 14)', $_SESSION['uid'])->fetch_assoc();
@@ -90,7 +90,7 @@ class Travel
* 17 Room 50 ashop.php
* 222 Room 2702 [STREET]
*/
$room[20] = [20, 401, 660, 777, 2601];
$room[20] = [21, 401, 660, 777, 2601];
/*
* 3 Room 2111 [STREET]
* 4 Room 20 [STREET]
@@ -118,8 +118,6 @@ class Travel
$room[2111] = [21, 620, 666, 1055];
$room[2701] = [402, 2111];
$room[2702] = [20, 61];
// Улицы
$room[0] = [20, 21, 26, 51, 2111, 2601, 2655, 2702];
if ($room[$roomId] === null) {
return [];
}