semi-idle-arpg/scripts/Item.gd

12 lines
221 B
GDScript3
Raw Normal View History

2024-09-19 19:03:06 -06:00
class_name Item
extends Object
var quality: int = 0
var tier: int = 0
2024-09-19 19:03:06 -06:00
func _init() -> void:
# simple random integer from 0 to 5 for the different item qualities
randomize()
self.quality = randi_range(0, 5)