Cheat buttons

This commit is contained in:
Marco 2025-03-12 16:31:53 +01:00
commit e637f69ce6
7 changed files with 98 additions and 16 deletions

View file

@ -130,14 +130,15 @@ public partial class InventoryManager : Node2D
switch (itm.Item.Item)
{
case ItemTypes.Medkit:
// Heal
case ItemTypes.FrogBomb:
// Use Bomb
case ItemTypes.Bomb:
// Bomb
case ItemTypes.Mine:
case ItemTypes.Battery:
EmitSignal(SignalName.ItemUsed, itm.Item, itm.Count);
if (itm.Item.ConsumeOnUse)
{
RemoveItem(itm.Item.ItemKey, 1);
}
break;
case ItemTypes.Weapon:
// Equip weapon