paper-dynasty-discord/cogs/economy_new
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
..
__init__.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
admin_tools.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
help_system.py S10 Updates + PR Bugfix 2025-11-09 06:12:46 -06:00
marketplace.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
notifications.py Added search functionality to /player command 2025-10-08 14:45:41 -05:00
packs.py Fix pack type grouping logic in packs display 2026-01-08 14:22:06 -06:00
scouting.py feat: add buy-scout-token option when daily limit exceeded 2026-03-09 13:12:35 -05:00
team_setup.py fix: pack rarity targeting, StratGame methods, HR detection (#20 #21 #22) 2026-03-22 23:31:16 -05:00