From d74d2b3ac5c6b2bd880e6c65d857dc38f1b29acd Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 25 Apr 2023 10:22:06 -0500 Subject: [PATCH] Add 23 Season as options --- ai_manager.py | 5 +++-- cogs/players.py | 2 +- helpers.py | 6 ++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ai_manager.py b/ai_manager.py index 9cf1e71..88e0f1f 100644 --- a/ai_manager.py +++ b/ai_manager.py @@ -18,9 +18,10 @@ db = SqliteDatabase( } ) -MINOR_CARDSET_PARAMS = [('cardset_id', 1), ('cardset_id', 3)] +MINOR_CARDSET_PARAMS = [('cardset_id', 9), ('cardset_id', 3)] MAJOR_CARDSET_PARAMS = [ - ('cardset_id', 1), ('cardset_id', 3), ('cardset_id', 4), ('cardset_id', 5), ('cardset_id', 6), ('cardset_id', 7) + ('cardset_id', 1), ('cardset_id', 3), ('cardset_id', 4), ('cardset_id', 5), ('cardset_id', 6), ('cardset_id', 7), + ('cardset_id', 9), ('cardset_id', 10) ] diff --git a/cogs/players.py b/cogs/players.py index 117e177..641b70a 100644 --- a/cogs/players.py +++ b/cogs/players.py @@ -368,7 +368,7 @@ class Players(commands.Cog): async def player_slash_command( self, interaction: discord.Interaction, player_name: str, cardset: Literal['All', '2012 Season', '2013 Season', '2019 Season', '2021 Season', '2022 Season', - '2022 Promos', 'Mario Super Sluggers', 'Sams Choice'] = 'All'): + '2022 Promos', '2022 Season', 'Mario Super Sluggers', 'Sams Choice'] = 'All'): # min_rarity: Literal['Replacement', 'Reserve', 'Starter', 'All-Star', 'MVP'] = None): ephemeral = False if interaction.channel.name in ['paper-dynasty-chat', 'pd-news-ticker']: diff --git a/helpers.py b/helpers.py index 71f8c11..d45c5d8 100644 --- a/helpers.py +++ b/helpers.py @@ -503,6 +503,7 @@ class SelectOpenPack(discord.ui.Select): class SelectPaperdexCardset(discord.ui.Select): def __init__(self): options = [ + discord.SelectOption(label='2023 Season'), discord.SelectOption(label='2022 Season'), discord.SelectOption(label='2022 Promos'), discord.SelectOption(label='2021 Season'), @@ -530,6 +531,8 @@ class SelectPaperdexCardset(discord.ui.Select): cardset_id = 7 elif self.values[0] == 'Mario Super Sluggers': cardset_id = 8 + elif self.values[0] == '2023 Season': + cardset_id = 9 c_query = db_get('cardsets', object_id=cardset_id, none_okay=False) await interaction.response.edit_message(content=f'Okay, sifting through your cards...', view=None) @@ -654,6 +657,7 @@ class SelectPaperdexTeam(discord.ui.Select): class SelectBuyPacksCardset(discord.ui.Select): def __init__(self, team: dict, quantity: int, pack_type_id: int, pack_embed: discord.Embed, cost: int): options = [ + discord.SelectOption(label='2023 Season'), discord.SelectOption(label='2022 Season'), discord.SelectOption(label='2021 Season'), discord.SelectOption(label='2019 Season'), @@ -680,6 +684,8 @@ class SelectBuyPacksCardset(discord.ui.Select): cardset_id = 6 elif self.values[0] == '2012 Season': cardset_id = 7 + elif self.values[0] == '2023 Season': + cardset_id = 9 self.pack_embed.description = f'{self.pack_embed.description} - {self.values[0]}' view = Confirm(responders=[interaction.user], timeout=30)