Add freshwater habitats and saltwater tide ribbons

This commit is contained in:
Alexander Sellite 2026-07-31 16:05:44 -04:00
parent 53fdc9ef21
commit 69b7969e25
40 changed files with 1323 additions and 148 deletions

View file

@ -269,7 +269,9 @@ func _handle_cast_request(peer_id: int, data: Dictionary) -> void:
var selected_fish: FishDataType = _select_authoritative_fish(
region, data, effects
)
if selected_fish == null:
if selected_fish == null or not selected_fish.is_allowed_in_water(
region.water_type
):
_record_and_reject(peer_id, request_id, "Nothing is biting here.")
return
var attempt := NetworkFishingAttempt.new()
@ -389,7 +391,11 @@ func _select_authoritative_fish(
)
selector.begin_roll()
var context: FishingContextType = _fishing_spot.build_network_context(region)
return selector.select_fish(region.fish_pool, context, evidence_log)
var selected_fish := selector.select_fish(
region.fish_pool, context, evidence_log
)
evidence_log.free()
return selected_fish
func _start_bite(attempt: NetworkFishingAttempt) -> void: