idk
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
class_name OnionSprig extends StaticBody3D
|
class_name OnionSprig extends StaticBody3D
|
||||||
|
|
||||||
@export var itemType:ItemType = ItemType.ONION;
|
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
$Entity/EntityInteractable.onInteract.connect(
|
$Entity/EntityInteractable.onInteract.connect(
|
||||||
self.onEntityInteract
|
self.onEntityInteract
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
enum ItemType {
|
|
||||||
POTION,
|
|
||||||
ONION
|
|
||||||
}
|
|
@@ -1,9 +1,14 @@
|
|||||||
extends Node
|
extends Node
|
||||||
const Inventory = preload("res://scripts/Item/Inventory.gd")
|
const Inventory = preload("res://scripts/Item/Inventory.gd")
|
||||||
|
|
||||||
# Item Constants
|
# # Item Constants
|
||||||
static var POTION = preload("res://scripts/Item/Potion.gd").new();
|
# static var POTION = preload("res://scripts/Item/Potion.gd").new();
|
||||||
static var ONION = preload("res://scripts/Item/Ingredient/Onion.gd").new();
|
# static var ONION = preload("res://scripts/Item/Ingredient/Onion.gd").new();
|
||||||
|
|
||||||
|
enum ItemType {
|
||||||
|
POTION,
|
||||||
|
ONION
|
||||||
|
};
|
||||||
|
|
||||||
# Static inventories
|
# Static inventories
|
||||||
static var PLAYER_INVENTORY = Inventory.new();
|
static var PLAYER_INVENTORY = Inventory.new();
|
||||||
|
Reference in New Issue
Block a user