Add gathering, unified inventory, and real-time world
This commit is contained in:
parent
173371e6fc
commit
fa57edca83
113 changed files with 6700 additions and 1307 deletions
|
|
@ -45,6 +45,17 @@ func _run() -> void:
|
|||
for owned: OwnedItem in tackle_items:
|
||||
sorted_ids.append(owned.item_id)
|
||||
assert(sorted_ids == EXPECTED_BAIT_ORDER)
|
||||
var bag := PlayerBag.new()
|
||||
bag.setup(Catalog)
|
||||
assert(bag.add_item(&"worms", 1))
|
||||
assert(bag.add_item(&"shrimp", 1))
|
||||
var worms_slot: int = bag.get_storage_slot(&"worms")
|
||||
var shrimp_slot: int = bag.get_storage_slot(&"shrimp")
|
||||
assert(worms_slot >= 0 and shrimp_slot >= 0 and worms_slot != shrimp_slot)
|
||||
assert(bag.move_item_to_storage_slot(&"worms", shrimp_slot))
|
||||
assert(bag.get_storage_slot(&"worms") == shrimp_slot)
|
||||
assert(bag.get_storage_slot(&"shrimp") == worms_slot)
|
||||
bag.free()
|
||||
player_menu.free()
|
||||
print("Tackle order validation: PASS")
|
||||
quit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue