we're cooking now
This commit is contained in:
parent
f58fd81ec5
commit
da3dc64056
6 changed files with 86 additions and 15 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue