Cal Corum
c0af0c3d32
fix: pack rarity targeting, StratGame methods, HR detection ( #20 #21 #22 )
...
Build Docker Image / build (pull_request) Successful in 1m19s
- 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
Cal Corum
bfd72ae0f5
Update logging to RotatingFileHandler
...
Add auto game end
Calculate stats and decisions
Support raising instantiated exceptions
2024-11-09 23:14:54 -06:00
Cal Corum
512efe98c4
db_calls -> api_calls
...
gameplay_db -> gameplay_models
new-game campaign in progress
added Player model
2024-10-12 18:22:13 -05:00
Cal Corum
0deb547257
Added Team table with caching and tests
2024-10-12 02:08:05 -05:00
Cal Corum
2046ebcdde
Add support for Exhibition games
2024-07-11 15:08:06 -05:00
Cal Corum
701e89eaf2
Early pass at matchup sim and added is_fatigued to Lineup
2024-07-07 23:13:22 -05:00
Cal Corum
899f214259
Update db_calls_gameplay.py
2024-05-24 22:03:58 -05:00
Cal Corum
f7934d464f
Refactoring gameplay AI / Automate subs
2024-05-19 02:12:35 -05:00
Cal Corum
4a5a305077
December updates
2023-12-04 13:39:51 -06:00
Cal Corum
462525ab5c
Bug fixes for 3-inning and Ranked games
2023-11-29 10:33:37 -06:00
Cal Corum
97c042c1f3
Groundball Automation Update
2023-11-17 22:17:20 -06:00
Cal Corum
eb22960f2c
Add show_outfield_cards
2023-11-01 23:26:58 -05:00
Cal Corum
b941f1641e
Refactor /substitution to /substitute pitcher and batter
2023-10-31 00:17:46 -05:00
Cal Corum
e77172d1c3
Added player cache
2023-10-26 23:27:29 -05:00
Cal Corum
1c3e7ef148
Bug fixes & /record
...
- Added walk-off scenario for end-game
2023-10-26 00:36:36 -05:00
Cal Corum
e0ef5616bd
Day 1 Updates
2023-10-24 09:48:46 -05:00
Cal Corum
e8df6fc4c3
RE24 calc added & post-game embed complete
2023-10-22 22:40:50 -05:00
Cal Corum
49bc017fd3
Update db_calls_gameplay.py
...
Update run and earned run calculation
2023-10-22 16:42:38 -05:00
Cal Corum
b39fb13a6a
Post stats via game/play/decision
2023-10-22 13:59:22 -05:00
Cal Corum
4031767f82
Command -> app_command completion
2023-09-11 15:00:02 -05:00
Cal Corum
b10543e09f
RBI Walk bugfix
2023-06-15 09:20:29 -05:00
Cal Corum
4b59919d57
Gameplay bug fixes
2023-05-03 14:14:14 -05:00
Cal Corum
f5bf7df166
DB calls to async
2023-05-03 13:28:14 -05:00
Cal Corum
0e56e1992e
Add support for xcheck reswing
2023-05-02 16:09:57 -05:00
Cal Corum
7f9a92e654
Added undo_subs to the /log undo-play
2023-04-28 13:49:38 -05:00
Cal Corum
bd59b018f5
Gameplay bug fixes
...
Typos in help message; fix groundball b error
2023-04-22 15:24:12 -05:00
Cal Corum
0915fbfd32
Win/Loss tracking complete
2023-03-20 01:43:29 -05:00
Cal Corum
0c638ae6a5
Initial commit
2023-02-19 21:34:38 -06:00