[wip] code smell, psr-12, mvc, other, forgot by 1 year.
This commit is contained in:
@@ -10,7 +10,7 @@ class Travel
|
||||
* Соответствие ID комнаты игровому файлу.
|
||||
* @var string[]
|
||||
*/
|
||||
public static $roomFileName = [
|
||||
public static array $roomFileName = [
|
||||
1 => 'main.php',
|
||||
20 => 'city.php',
|
||||
21 => 'city.php',
|
||||
@@ -98,7 +98,7 @@ class Travel
|
||||
*/
|
||||
public static function toRoom(int $roomId, int $roomIdCurrent): void
|
||||
{
|
||||
UserStats::getInstance()->
|
||||
//UserStats::getInstance()->
|
||||
$itemsWeightOverflow = Db::getInstance()->fetchColumn('SELECT SUM(weight) - (select strength * 4 from users where id = ?) AS weight_overflow FROM inventory WHERE owner_id = ? AND on_sale = 0', [$_SESSION['uid'], $_SESSION['uid']]);
|
||||
$eff = Db::getInstance()->fetchColumn('SELECT type FROM users_effects WHERE owner_id = ? AND (`type` = 10 OR `type` = 13 OR `type` = 14)', $_SESSION['uid']);
|
||||
$errors = [];
|
||||
|
||||
Reference in New Issue
Block a user