Add Pinwheel Clause support for zone-based encounters in route groups
Allows each sub-zone within a route group to have its own independent encounter when the Pinwheel Clause rule is enabled (default on), instead of the entire group sharing a single encounter. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1333,6 +1333,7 @@
|
||||
{
|
||||
"name": "Pinwheel Forest (Outside)",
|
||||
"order": 23,
|
||||
"pinwheel_zone": 1,
|
||||
"encounters": [
|
||||
{
|
||||
"pokeapi_id": 533,
|
||||
@@ -1379,6 +1380,7 @@
|
||||
{
|
||||
"name": "Pinwheel Forest (Inside)",
|
||||
"order": 24,
|
||||
"pinwheel_zone": 2,
|
||||
"encounters": [
|
||||
{
|
||||
"pokeapi_id": 550,
|
||||
|
||||
@@ -1321,6 +1321,7 @@
|
||||
{
|
||||
"name": "Pinwheel Forest (Outside)",
|
||||
"order": 25,
|
||||
"pinwheel_zone": 1,
|
||||
"encounters": [
|
||||
{
|
||||
"pokeapi_id": 535,
|
||||
@@ -1359,6 +1360,7 @@
|
||||
{
|
||||
"name": "Pinwheel Forest (Inside)",
|
||||
"order": 26,
|
||||
"pinwheel_zone": 2,
|
||||
"encounters": [
|
||||
{
|
||||
"pokeapi_id": 550,
|
||||
|
||||
@@ -1333,6 +1333,7 @@
|
||||
{
|
||||
"name": "Pinwheel Forest (Outside)",
|
||||
"order": 23,
|
||||
"pinwheel_zone": 1,
|
||||
"encounters": [
|
||||
{
|
||||
"pokeapi_id": 533,
|
||||
@@ -1379,6 +1380,7 @@
|
||||
{
|
||||
"name": "Pinwheel Forest (Inside)",
|
||||
"order": 24,
|
||||
"pinwheel_zone": 2,
|
||||
"encounters": [
|
||||
{
|
||||
"pokeapi_id": 10016,
|
||||
|
||||
@@ -1321,6 +1321,7 @@
|
||||
{
|
||||
"name": "Pinwheel Forest (Outside)",
|
||||
"order": 25,
|
||||
"pinwheel_zone": 1,
|
||||
"encounters": [
|
||||
{
|
||||
"pokeapi_id": 535,
|
||||
@@ -1359,6 +1360,7 @@
|
||||
{
|
||||
"name": "Pinwheel Forest (Inside)",
|
||||
"order": 26,
|
||||
"pinwheel_zone": 2,
|
||||
"encounters": [
|
||||
{
|
||||
"pokeapi_id": 10016,
|
||||
|
||||
@@ -109,9 +109,14 @@ async def upsert_routes(
|
||||
game_id=game_id,
|
||||
order=child["order"],
|
||||
parent_route_id=parent_id,
|
||||
pinwheel_zone=child.get("pinwheel_zone"),
|
||||
).on_conflict_do_update(
|
||||
constraint="uq_routes_game_name",
|
||||
set_={"order": child["order"], "parent_route_id": parent_id},
|
||||
set_={
|
||||
"order": child["order"],
|
||||
"parent_route_id": parent_id,
|
||||
"pinwheel_zone": child.get("pinwheel_zone"),
|
||||
},
|
||||
)
|
||||
await session.execute(stmt)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user