Expand fish and equipment catalogs

This commit is contained in:
Alexander Sellite 2026-08-14 16:31:28 -04:00
parent 63e50e285d
commit f55663c105
380 changed files with 9430 additions and 575 deletions

View file

@ -39,7 +39,7 @@ func add_item(item_id: StringName, quantity: int = 1) -> bool:
func can_add_item(item_id: StringName, quantity: int = 1) -> bool:
var item: ItemDataType = _resolve_valid_item(item_id)
var item: ItemDataType = _resolve_available_item(item_id)
if item == null or quantity <= 0:
return false
var existing: OwnedItemType = get_owned_item(item_id)
@ -156,3 +156,8 @@ func _resolve_valid_item(item_id: StringName) -> ItemDataType:
return null
var item: ItemDataType = _catalog.get_item_by_id(item_id)
return item if item != null and item.is_valid() else null
func _resolve_available_item(item_id: StringName) -> ItemDataType:
var item: ItemDataType = _resolve_valid_item(item_id)
return item if item != null and item.active else null

View file

@ -249,7 +249,7 @@ func _can_assign(item_id: StringName) -> bool:
if _catalog == null:
return false
var item: ItemDataType = _catalog.get_item_by_id(item_id)
return item != null and item.is_valid() and item.hotbar_allowed
return item != null and item.is_available() and item.hotbar_allowed
func _can_assign_fish(catch_id: StringName) -> bool: