11 lines
203 B
GDScript3
11 lines
203 B
GDScript3
|
class_name Item
|
||
|
extends Object
|
||
|
|
||
|
|
||
|
var quality: int = 0
|
||
|
|
||
|
func _init() -> void:
|
||
|
# simple random integer from 0 to 5 for the different item qualities
|
||
|
randomize()
|
||
|
self.quality = randi_range(0, 5)
|