refactor and errors

This commit is contained in:
2023-11-05 04:46:07 +02:00
parent def933dca4
commit 3e753c8b93
125 changed files with 1353 additions and 1435 deletions
+2 -1
View File
@@ -68,6 +68,7 @@ class Dungeon
isset($_GET['take_obj']) => $this->takeit((int)$_GET['take_obj']),
isset($_GET['look']) => $this->look((int)$_GET['look'], $user),
isset($_GET['go']) => $this->testGo((int)$_GET['go']), // перемещение
default => null,
};
/* генерируем вид персонажа (только карта) */
@@ -1274,7 +1275,7 @@ class Dungeon
//Розыгрыш предмета
private function testGo($id)
private function testGo($id): void
{
match ($id) {
1 => $go = $this->sg[$this->gs][1], // up