feat: expand seasonal creature collection

This commit is contained in:
Alexander Sellite 2026-08-18 21:20:02 -04:00
parent 925bbb79e5
commit 95c6b8b053
415 changed files with 1688 additions and 389 deletions

View file

@ -2,6 +2,7 @@ class_name GatherableCatalog
extends Resource
const GatherableDataType = preload("res://gathering/gatherable_data.gd")
const CalendarSeasonType = preload("res://world/calendar_season.gd")
@export var entries: Array[GatherableDataType] = []
@ -15,9 +16,11 @@ func get_entry(type_id: StringName) -> GatherableDataType:
return null
func get_available_entries() -> Array[GatherableDataType]:
func get_available_entries(
season: int = CalendarSeasonType.UNKNOWN,
) -> Array[GatherableDataType]:
var available: Array[GatherableDataType] = []
for entry: GatherableDataType in entries:
if entry != null and entry.is_available():
if entry != null and entry.is_available(season):
available.append(entry)
return available