CLAUDE: Add Event ID 9 (Live 25) gauntlet configuration

Fixed missing draft configuration for Event ID 9 "Live 25" gauntlet that was causing crashes when users tried to start a gauntlet run.

Changes:
- Added cardset configuration for Event 9 (cardsets 27, 28, 29)
- Added Event 9 to max_counts progressive difficulty logic
- Added Event 9 to draft_loop() events list
- Opponent configuration for Event 9 was already present

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2025-11-09 13:03:41 -06:00
parent 904dae9a47
commit 07195f9ad3

View File

@ -364,6 +364,10 @@ async def run_draft(interaction: discord.Interaction, main_team: Team, this_even
embed_description = f'{this_event["name"]}'
base_params = [('cardset_id', 24), ('cardset_id', 25), ('cardset_id', 22), ('cardset_id', 23),
('limit', 8)]
elif this_event['id'] == 9:
embed_title = f'{main_team.lname} - {this_event['name']} Draft'
embed_description = f'{this_event["name"]}'
base_params = [('cardset_id', 27), ('cardset_id', 28), ('cardset_id', 29), ('limit', 8)]
else:
logger.error(f'run_draft - Event ID {this_event["id"]} not recognized')
raise KeyError(f'Draft data not found for Gauntlet {this_event["id"]}')
@ -418,7 +422,7 @@ async def run_draft(interaction: discord.Interaction, main_team: Team, this_even
}
if this_event['id'] in [1, 2]:
max_counts['MVP'] = 2
elif this_event['id'] in [5, 6, 8]:
elif this_event['id'] in [5, 6, 8, 9]:
g_query = await db_get(
'games',
params=[('season', draft_team.season), ('team1_id', draft_team.id), ('gauntlet_id', this_event['id'])]
@ -1548,7 +1552,7 @@ async def run_draft(interaction: discord.Interaction, main_team: Team, this_even
# Update roster embed
round_num += 1
await last_message.edit(content=None, embeds=get_embeds(include_links=False))
elif this_event['id'] in [5, 6, 8]:
elif this_event['id'] in [5, 6, 8, 9]:
await draft_loop()
elif this_event['id'] == 7:
round_num = 1