onion test 0

This commit is contained in:
2025-05-14 16:46:46 -05:00
parent 3b7da70e42
commit 151d93e433
10 changed files with 98 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
class_name Onion extends "res://scripts/Item/Item.gd"
func getName() -> String:
return "Onion"
func getCategory() -> ItemCategory:
return ItemCategory.MEDICINE;
func isConsumable() -> bool:
return true;
func consume() -> void:
print("Consuming Potion");

View File

@@ -0,0 +1 @@
uid://bmfaw3kid1pqx

4
scripts/Item/ItemType.gd Normal file
View File

@@ -0,0 +1,4 @@
enum ItemType {
POTION,
ONION
}

View File

@@ -0,0 +1 @@
uid://nibssdy3ardv