we're cooking now

This commit is contained in:
Tabby 2026-01-11 16:37:57 +11:00
parent f58fd81ec5
commit da3dc64056
6 changed files with 86 additions and 15 deletions

View file

@ -15,16 +15,20 @@ func _process(delta: float) -> void:
func _on_loot_button_pressed() -> void:
loot_button.hide()
bin_inventory.show()
bin_inventory.add_item(pick_random_item())
bin_inventory.add_item(pick_random_item())
bin_inventory.add_item(pick_random_item())
bin_inventory.add_item(pick_random_item())
bin_inventory.add_item(pick_random_item())
bin_inventory.add_item(pick_random_item())
bin_inventory.add_item(pick_random_item())
bin_inventory.add_item(pick_random_item())
if Clock.has_time(10):
Clock.use_time(10)
bin_inventory.add_item(pick_random_item())
#loot_button.hide()
#bin_inventory.show()
#bin_inventory.add_item(pick_random_item())
#bin_inventory.add_item(pick_random_item())
#bin_inventory.add_item(pick_random_item())
#bin_inventory.add_item(pick_random_item())
#bin_inventory.add_item(pick_random_item())
#bin_inventory.add_item(pick_random_item())
#bin_inventory.add_item(pick_random_item())
#bin_inventory.add_item(pick_random_item())
func pick_random_item() -> ItemData:
var icount = loot_pool.size()