--- # nuzlocke-tracker-fv7w title: Add team size limit rule status: todo type: feature priority: normal created_at: 2026-02-20T19:56:22Z updated_at: 2026-02-20T20:01:53Z parent: nuzlocke-tracker-49xj --- Cap the active party size with warnings when the limit is exceeded. ## Design Decisions **Configurable limit:** Add `teamSizeLimit: number | null` to `NuzlockeRules`. `null` means no limit (disabled). Default Pokemon party size is 6, but variants like "trio-locke" use 3. **What counts:** "Active team" = encounters with status `caught` and not fainted. The tracker already tracks this — alive Pokemon are shown in the team section on RunEncounters. **No PC box tracking:** The tracker doesn't model a PC box. Excess catches beyond the team limit are still logged normally. The tracker just warns that the team is over capacity. **Enforcement:** Soft enforcement. Show a warning banner on the encounters page when alive count exceeds the limit. Highlight the count in the team section header. Don't block new catches. **UI:** Add a numeric input to `RulesConfiguration` (shown when team size toggle is on, min 1, max 6). Display the limit in the sticky bar alongside level caps if enabled. ## Checklist - [ ] Add `teamSizeLimit: number | null` to `NuzlockeRules` interface (default: `null`) - [ ] Add `RuleDefinition` entry under `'difficulty'` category - [ ] Add numeric input to `RulesConfiguration` (shown when enabled, min 1, max 6) - [ ] Show warning banner on RunEncounters when alive team count exceeds limit - [ ] Display team size limit in sticky bar alongside level caps - [ ] Show count in team section header (e.g., "Team (4/3)" in red when over)