Overhaul item and inventory and clean up bits and pieces

This commit is contained in:
2026-02-15 01:19:27 -08:00
parent a1f4a29eb3
commit 69b25aacb9
219 changed files with 4378 additions and 2355 deletions

View File

@@ -33,7 +33,7 @@ public partial class PauseDebugMenu : Control, IDebugMenu
private readonly string _floorFilePath = @"res://src/map/dungeon/floors/";
private readonly string _enemyFilePath = @"res://src/enemy/enemy_types";
private ImmutableList<InventoryItem> _spawnableItems;
private ImmutableList<IBaseInventoryItem> _spawnableItems;
private ImmutableList<string> _spawnableEnemies;
private ItemDatabase _itemDatabase;
@@ -110,7 +110,7 @@ public partial class PauseDebugMenu : Control, IDebugMenu
private void SpawnItemDropDown_ItemSelected(long index)
{
var itemToSpawn = _spawnableItems.ElementAt((int)index);
var itemToSpawn = _spawnableItems.ElementAt((int)index) as Node3D;
var duplicated = itemToSpawn.Duplicate((int)DuplicateFlags.UseInstantiation) as Node3D;
_game.AddChild(duplicated);
duplicated.GlobalPosition = new Vector3(_player.GlobalPosition.X, _player.GlobalPosition.Y + 1, _player.GlobalPosition.Z) + (-_player.GlobalBasis.Z * 2);