Fix up debug info overlay

This commit is contained in:
2026-02-13 10:14:42 -08:00
parent 68b1455c53
commit d6faf8642a
8 changed files with 29 additions and 42 deletions

View File

@@ -233,9 +233,6 @@ public partial class Game : Node3D, IGame
case EffectItem effectItem:
EnactEffectItemEffects(effectItem);
break;
case Jewel jewel:
EnactJewelItemEffects(jewel);
break;
}
await ToSignal(GetTree().CreateTimer(0.3f), "timeout");
@@ -570,13 +567,6 @@ public partial class Game : Node3D, IGame
}
}
private void EnactJewelItemEffects(Jewel jewel)
{
switch (jewel.Stats.JewelTag)
{
//case JewelTags.AeolicElement
}
}
private void RemoveItemOrSubtractFromItemCount(InventoryItem item)
{
if (item is IStackable stackableItem && stackableItem.Count.Value > 1)
@@ -585,6 +575,8 @@ public partial class Game : Node3D, IGame
_player.Inventory.Remove(item);
}
public void ShowDebugInfo(bool show) => InGameUI.DebugInfo.Visible = show;
private void MovePlayer((Vector3 Rotation, Vector3 Position) spawnPoint) => _player.TeleportPlayer(spawnPoint);
private void OnNewGame()