Commit Graph

213 Commits

Author SHA1 Message Date
Cal Corum
3d333dabc3 Update api logging
New Position exception
Pull scouting data with lineups
More bunt types
String validation on gameplay models
AI Defensive alignment
2024-11-16 00:31:54 -06: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
c3418c4dfd New show-card dropdown view
Added PlayInitException
Added complete_and_post_play for log commands
Added many more log plays
Add undo-play
Added query logging
2024-11-09 00:48:13 -06:00
Cal Corum
fc3b407f2d ask_confirm helper added to buttons
Singles are complete
Doubles are complete
Uncapped advance is complete
2024-11-08 10:10:30 -06:00
Cal Corum
0327b6af62 Added ThrowResponse as managerai response
Added /log single, all but uncapped complete
Added check_uncapped_advance, ai on defense complete
2024-11-07 11:38:45 -06:00
Cal Corum
736897efad Added tag_from_second decision for AI
Flyball A and B complete
2024-11-04 00:12:35 -06:00
Cal Corum
8da859b63a Merge branch 'master' into sqlmodel-alembic-pytests-rebuild 2024-11-03 18:20:01 -06:00
Cal Corum
209dea2921 Add database environment variable
Fix team choice + cardset packs
2024-11-03 17:58:10 -06:00
Cal Corum
27429d5b80 Remove test line forcing me to be SKB 2024-11-03 15:15:29 -06:00
Cal Corum
d02e973499 Prod push for Season 8 Updates 2024-11-03 13:38:41 -06:00
Cal Corum
b2a2f24cc1 Update owner sync
Set 1998 gauntlet opponents
2024-11-03 01:07:22 -06:00
Cal Corum
41ea34c333 Add event_literal import 2024-11-02 19:48:30 -05:00
Cal Corum
7dfd077b94 Season 8 Updates 2024-11-02 19:47:54 -05:00
Cal Corum
86818e322c checks_log_interaction ready for use 2024-10-24 20:54:29 -05:00
Cal Corum
ee685f1415 Updated scorebug embed
Added play initialization
2024-10-24 17:14:11 -05:00
Cal Corum
79efceb6dd refactor exceptions and continue gameplay cog rebuild 2024-10-24 15:32:07 -05:00
Cal Corum
19e781137e Complete /new-game campaign
Add scorebug function to Game
Add card links prop to players
Add scorebug prop to play
2024-10-15 01:23:04 -05:00
Cal Corum
5fc89b5ce4 Added play table 2024-10-14 23:24:13 -05:00
Cal Corum
46860fb3c0 /read-lineup logic is complete 2024-10-14 20:46:55 -05:00
Cal Corum
428afe048e Finish loading utilities
Push queries from _models to _queries
2024-10-14 12:22:05 -05:00
Cal Corum
c253ae90a3 Migrate Confirm class to utilities 2024-10-14 01:17:09 -05:00
Cal Corum
a7189be67e Completed new-game mlb-campaign 2024-10-14 00:44:49 -05:00
Cal Corum
b35b25615d Update get_<x> functions to return x or None 2024-10-13 20:39:58 -05:00
Cal Corum
59fa207212 Add Card table
Updating factory to do all work in session fixture
2024-10-13 01:53:20 -05:00
Cal Corum
97519fc8d5 Move db creation to entry
Nearing completion of new-game mlb-campaign
2024-10-13 00:25:29 -05:00
Cal Corum
5ab2080f6d Add Player tests
Continuing /new-game
2024-10-12 22:08:36 -05: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
5fe91c0729 Team cache validating properly and tests green 2024-10-12 11:36:09 -05:00
Cal Corum
57610fe8a7
Add experimental getgamebychannel function 2024-10-12 09:26:55 -05:00
Cal Corum
0deb547257 Added Team table with caching and tests 2024-10-12 02:08:05 -05:00
Cal Corum
5d76a49583 Update to Python 3.12
Update new_game_campaign role check
2024-10-11 22:52:09 -05:00
Cal Corum
9dda254421 Just begun new-game command 2024-10-11 21:44:22 -05:00
Cal Corum
033b028b85 Begin gameplay cog rewrite 2024-10-11 20:15:08 -05:00
Cal Corum
ccaf61e73a Update 2024 Live to 2024 Season 2024-10-11 08:45:32 -05:00
Cal Corum
78bcdc07bf Add support for MVP packs with set team 2024-08-31 23:37:54 -05:00
Cal Corum
d50595d49a Added /gauntlets reset 2024-07-26 16:54:23 -05:00
Cal Corum
305914c758 Add support for exhibition games 2024-07-14 13:22:50 -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
183af68164 Update owner.py 2024-06-27 00:31:36 -05:00
Cal Corum
53f789844f Update admins.py 2024-06-27 00:31:25 -05:00
Cal Corum
f7934d464f Refactoring gameplay AI / Automate subs 2024-05-19 02:12:35 -05:00
Cal Corum
cb6319cf29 Bring back market watch 2024-05-18 17:07:17 -05:00
Cal Corum
31d78f0315 Update gameplay.py
Added additional gamestate after flyball Bs
2024-05-17 16:07:31 -05:00
Cal Corum
42c3719baf Update gameplay.py
Runners on the corners, a steal of home does not move the runner from first to second on a CS.
RP on PO result for Catcher Check results in redoing the PA, instead of an SI1
RP on FO result also results in redoing the play, instead of catcher interference result. No way to manually fix this with a runner on third without giving the hitter a walk or HBP
2024-05-17 15:38:25 -05:00
Cal Corum
2e3990a931 Update gameplay.py
SI1 RP rules the runner as out rather than advancing to 2nd
2024-05-17 15:23:11 -05:00
Cal Corum
913689034c Fixed interaction bug 2024-05-17 15:22:54 -05:00
Cal Corum
a1c44a0540 Refactor /buy pack 2024-05-13 17:02:32 -05:00
Cal Corum
3127bf2df8 Add support for 2024 Live gauntlet 2024-05-13 15:36:10 -05:00
Cal Corum
731862e006 Add support for Promo Choice pack 2024-05-13 15:35:57 -05:00
Cal Corum
0035090ad9 Fix weekly automation 2024-04-27 07:43:44 -05:00
Cal Corum
ca3b1f56d5 Debug logging 2024-04-27 07:43:28 -05:00
Cal Corum
a40c1c9e93 2024 Updates 2024-04-21 17:49:10 -05:00
Cal Corum
89c0c508db Fixed xcheck F1/F2 bug 2024-03-09 20:40:09 -06:00
Cal Corum
32b3f586eb Update /reset-image perms 2024-03-09 20:36:59 -06:00
Cal Corum
04201be18c Fix notifications and SUC gauntlet 2024-03-08 11:14:05 -06:00
Cal Corum
f65ec66724 Added Backyard Baseball Gauntlet 2024-03-08 00:47:58 -06:00
Cal Corum
710d759d57 Move daily command to app_command 2024-03-07 21:25:10 -06:00
Cal Corum
bddc7144d9 Update legal check error 2024-03-01 20:02:09 -06:00
Cal Corum
d8d2831978 Update rare play string 2024-02-24 21:30:50 -06:00
Cal Corum
67da23cc17 Add rare play support 2024-02-24 20:47:06 -06: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
5e89c898e6 Update gameplay.py
Add Flashback descriptor to scorebugs
2023-11-27 09:28:05 -06:00
Cal Corum
502759d6cd Activate Flashback campaign 2023-11-20 00:59:49 -06:00
Cal Corum
726f8324ed Update economy.py
Refactor buy_card and add buy card-by-id
2023-11-19 12:29:04 -06:00
Cal Corum
e2e114d06a Add Task Loop Check 2023-11-17 22:17:40 -06:00
Cal Corum
d1e731b57d Add gif search and /reset-cache 2023-11-16 13:05:45 -06:00
Cal Corum
16225aea13 Major League Campaign update
Prepping for Flashback campaign
2023-11-05 20:02:43 -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
fc35a3a1b8 Update gameplay.py
Update read-lineup text helpers
2023-10-30 21:14:47 -05:00
Cal Corum
a5171d4e07 Add /reset-image command 2023-10-29 14:14:05 -05:00
Cal Corum
e46955a16d Bug fixes
Fixed end of gauntlet ping bug
Fixed "too many dupes" bug
2023-10-28 10:58:43 -05:00
Cal Corum
1ca1e538af MVP Pack fix & pcard update 2023-10-28 00:26:29 -05:00
Cal Corum
296b9ec486 Update gameplay.py
Update name reference for new get_player function
2023-10-27 00:53:53 -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
8339eb63eb Add /lookup command & fix mvp choice pack 2023-10-24 23:44:42 -05:00
Cal Corum
d15050242a All-Star TC packs updated 2023-10-24 21:57:10 -05:00
Cal Corum
d735466fe3 Frame check strikeout bug 2023-10-24 18:34:30 -05:00
Cal Corum
d6276ec22a Activate Cardset-Locked Team Choice packs 2023-10-24 14:08:37 -05:00
Cal Corum
e0ef5616bd Day 1 Updates 2023-10-24 09:48:46 -05:00
Cal Corum
f68a8166e7 2018 Cardset Update 2023-10-23 10:57:28 -05:00
Cal Corum
96f783bb63 2018 gauntlet in place 2023-10-23 00:58:10 -05:00
Cal Corum
e8df6fc4c3 RE24 calc added & post-game embed complete 2023-10-22 22:40:50 -05:00
Cal Corum
30ea1f300a Update 2023 Live cardset name to 2023 Season 2023-10-22 16:42:14 -05:00
Cal Corum
5668b7f04e Added /update-player command 2023-10-22 14:00:06 -05:00
Cal Corum
b39fb13a6a Post stats via game/play/decision 2023-10-22 13:59:22 -05:00
Cal Corum
72d6129b17 Player description update & bugfixes
Fixed trail runners not advancing for uncapped doubles and steals of home
2023-10-21 15:30:14 -05:00
Cal Corum
baf8ddb664 Update gameplay.py 2023-10-20 17:03:11 -05:00
Cal Corum
347dc33b45 Add early game-end logic 2023-10-20 16:02:14 -05:00
Cal Corum
ebfab450b9 Update players.py
Update /player pagination to only fire with more than one card
2023-10-17 21:19:52 -05:00
Cal Corum
714c47b877 Added /frame-pitch command 2023-10-17 21:19:38 -05:00
Cal Corum
0155eb0631 Updated rare play and added /player pagination 2023-10-16 16:33:18 -05:00
Cal Corum
504a33f8f7 Hash update for marketplace 2023-09-12 21:06:04 -05:00
Cal Corum
ae699ead4d Update gameplay.py
Add catcher to gamestate embed when there are baserunners
2023-09-11 18:01:11 -05:00
Cal Corum
4031767f82 Command -> app_command completion 2023-09-11 15:00:02 -05:00
Cal Corum
125a4b5918 Add batting stats to /player 2023-09-09 17:47:01 -05:00
Cal Corum
48b10bfaec Speedup Updates
Update initial player pull
Move substitution command to app_command
2023-09-09 15:59:04 -05:00