paper-dynasty-discord/cogs
Cal Corum c0af0c3d32
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m19s
fix: pack rarity targeting, StratGame methods, HR detection (#20 #21 #22)
- Fix pack distribution to use exact rarity targeting (rarity=0 for
  Replacement, rarity=1 for Reserve) instead of max_rarity=1 which
  matched both tiers; applied to cogs/economy.py and
  cogs/economy_new/team_setup.py

- Add get_away_team() and get_home_team() async methods to StratGame
  dataclass, delegating to get_game_team() with the appropriate
  team_id; remove stale TODO comment from Game model

- Standardize home-run detection in complete_play(): set
  batter_final = batter_to_base when not None before the HR check,
  then only check batter_final == 4 (removes redundant batter_to_base
  path and the patch comment)

Closes #20, Closes #21, Closes #22

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 23:31:16 -05:00
..
economy_new fix: pack rarity targeting, StratGame methods, HR detection (#20 #21 #22) 2026-03-22 23:31:16 -05:00
players_new fix: log and handle ZeroDivisionError in gauntlet draft (#31) 2026-03-10 10:04:14 -05:00
admins.py fix: remove db_patch call — no PATCH endpoint for scout_opportunities 2026-03-09 10:55:22 -05:00
economy.py fix: pack rarity targeting, StratGame methods, HR detection (#20 #21 #22) 2026-03-22 23:31:16 -05:00
gameplay_legacy.py Add responders check to dropdowns 2024-12-27 22:33:25 -06:00
gameplay.py fix: guard GUILD_ID env var cast against missing/invalid value (#26) 2026-03-10 09:37:34 -05:00
owner.py New sync method 2024-12-18 09:59:39 -06:00
players.py fix: log and handle ZeroDivisionError in gauntlet draft (#31) 2026-03-10 10:04:14 -05:00