mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-06 03:45:55 +00:00
Cheat buttons
This commit is contained in:
parent
0a631bf5b7
commit
e637f69ce6
7 changed files with 98 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue