Add inventory system
This commit is contained in:
13
scripts/Items/Potion.gd
Normal file
13
scripts/Items/Potion.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
class_name Potion extends "res://scripts/Items/Item.gd"
|
||||
|
||||
func getName() -> String:
|
||||
return "Potion"
|
||||
|
||||
func getCategory() -> ItemCategory:
|
||||
return ItemCategory.MEDICINE;
|
||||
|
||||
func isConsumable() -> bool:
|
||||
return true;
|
||||
|
||||
func consume() -> void:
|
||||
print("Consuming Potion");
|
Reference in New Issue
Block a user