onion test 0
This commit is contained in:
13
scripts/Item/Ingredient/Onion.gd
Normal file
13
scripts/Item/Ingredient/Onion.gd
Normal 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");
|
1
scripts/Item/Ingredient/Onion.gd.uid
Normal file
1
scripts/Item/Ingredient/Onion.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bmfaw3kid1pqx
|
4
scripts/Item/ItemType.gd
Normal file
4
scripts/Item/ItemType.gd
Normal file
@@ -0,0 +1,4 @@
|
||||
enum ItemType {
|
||||
POTION,
|
||||
ONION
|
||||
}
|
1
scripts/Item/ItemType.gd.uid
Normal file
1
scripts/Item/ItemType.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://nibssdy3ardv
|
Reference in New Issue
Block a user