16 lines
305 B
GDScript
16 lines
305 B
GDScript
extends Node
|
|
|
|
|
|
func _ready() -> void:
|
|
_generate_item()
|
|
|
|
|
|
func _generate_item() -> void:
|
|
# TODO: use weighted
|
|
var random_index = randi_range(0, 10)
|
|
print(random_index)
|
|
# TODO: create global of item types, create _generate funcs, use match
|
|
|
|
|
|
func _generate_gear() -> Node:
|
|
return |