feat: expand seasonal creature collection
This commit is contained in:
parent
925bbb79e5
commit
95c6b8b053
415 changed files with 1688 additions and 389 deletions
|
|
@ -1,6 +1,8 @@
|
|||
class_name FishingContext
|
||||
extends RefCounted
|
||||
|
||||
const CalendarSeasonType = preload("res://world/calendar_season.gd")
|
||||
|
||||
var location_tags: Array[StringName] = []
|
||||
var water_type: WaterType.Type = WaterType.Type.FRESH_WATER
|
||||
var active_event_tags: Array[StringName] = []
|
||||
|
|
@ -9,3 +11,4 @@ var is_night: bool = false
|
|||
var is_day_night_transition: bool = false
|
||||
var is_raining: bool = false
|
||||
var is_foggy: bool = false
|
||||
var season: int = CalendarSeasonType.UNKNOWN
|
||||
|
|
|
|||
|
|
@ -527,7 +527,7 @@ func _unhandled_input(event: InputEvent) -> void:
|
|||
if (
|
||||
state == FishingState.READY
|
||||
and selected_item != null
|
||||
and selected_item.item_id == FishingShopStockType.CRAB_NET_ID
|
||||
and FishingShopStockType.is_gathering_tool(selected_item.item_id)
|
||||
):
|
||||
return
|
||||
if event.is_pressed():
|
||||
|
|
@ -1572,6 +1572,7 @@ func _build_fishing_context(
|
|||
if _world_time != null:
|
||||
context.is_night = _world_time.is_night_period()
|
||||
context.is_day_night_transition = _world_time.is_transition()
|
||||
context.season = _world_time.get_season()
|
||||
if _world_weather != null:
|
||||
context.is_raining = _world_weather.is_raining()
|
||||
context.is_foggy = _world_weather.is_foggy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue