Extensive work on VFX for the guild, assets for the world, and portrait variance. Work on quests. Extra work on User Flow completion and file saving.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
class_name Item extends Resource
|
||||
|
||||
enum Slots{
|
||||
WEAPON,
|
||||
ARMOR,
|
||||
ACCESSORY
|
||||
}
|
||||
|
||||
@export var image : Texture2D
|
||||
@export var name : StringName
|
||||
@@ -10,5 +15,16 @@ class_name Item extends Resource
|
||||
@export var per : bool
|
||||
@export var grade : String = "F"
|
||||
|
||||
|
||||
func item_type_name() -> String:
|
||||
return "Item"
|
||||
|
||||
func can_equip_slot(slot : Slots) -> bool:
|
||||
return false
|
||||
|
||||
static func slot_name(slot : Slots) -> String:
|
||||
match(slot):
|
||||
Slots.WEAPON: return "Weapon"
|
||||
Slots.ARMOR: return "Armor"
|
||||
Slots.ACCESSORY: return "Accessory"
|
||||
return "ERROR"
|
||||
|
||||
Reference in New Issue
Block a user