Add egg encounter logging with route-lock bypass
Egg hatches can now be logged at any location without consuming the route's encounter slot. Adds an EggEncounterModal with pokemon search and a "Log Egg" button on the run encounters page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -58,7 +58,7 @@ async def create_encounter(
|
||||
|
||||
# Shiny clause: shiny encounters bypass the route-lock check
|
||||
shiny_clause_on = run.rules.get("shinyClause", True) if run.rules else True
|
||||
skip_route_lock = (data.is_shiny and shiny_clause_on) or data.origin == "shed_evolution"
|
||||
skip_route_lock = (data.is_shiny and shiny_clause_on) or data.origin in ("shed_evolution", "egg")
|
||||
|
||||
# If this route has a parent, check if sibling already has an encounter
|
||||
if route.parent_route_id is not None and not skip_route_lock:
|
||||
|
||||
Reference in New Issue
Block a user