Refactor inventory menu logic
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Linq;
|
||||
using System;
|
||||
using Zennysoft.Game.Ma.Implementation;
|
||||
|
||||
namespace Zennysoft.Game.Ma.src.items;
|
||||
namespace Zennysoft.Game.Ma;
|
||||
|
||||
public class EffectService
|
||||
{
|
||||
@@ -189,7 +189,6 @@ public class EffectService
|
||||
var roomsGodotCollection = new Godot.Collections.Array<MonsterRoom>(validRooms);
|
||||
var randomRoom = roomsGodotCollection.PickRandom();
|
||||
var spawnPoint = randomRoom.PlayerSpawn;
|
||||
_game.ToggleInventory();
|
||||
player.TeleportPlayer(spawnPoint.Transform);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
using Zennysoft.Game.Ma.src.items;
|
||||
using Godot;
|
||||
using Zennysoft.Game.Ma.Implementation;
|
||||
using Zennysoft.Game.Abstractions;
|
||||
|
||||
Reference in New Issue
Block a user