Hide Pinwheel Clause rule toggle for games without pinwheel zones

Fetches routes for the selected game during run creation and hides
the Pinwheel Clause option when no routes have pinwheel zone data.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 10:40:18 +01:00
parent d50d189114
commit 8fbf658a27
3 changed files with 31 additions and 11 deletions

View File

@@ -1,10 +1,11 @@
---
# nuzlocke-tracker-v04g
title: Hide Pinwheel Clause when game has no pinwheel zones
status: todo
status: completed
type: bug
priority: normal
created_at: 2026-02-07T21:08:27Z
updated_at: 2026-02-07T21:08:27Z
updated_at: 2026-02-08T09:37:48Z
---
The Pinwheel Clause rule option is currently shown for all games, even those that have no locations using pinwheel zones (i.e. no routes with pinwheel_zone IDs). It should only be displayed when the selected game actually has routes with pinwheel zone data.