refactor and errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user