From 6a355def4bb6d3dfdfe7b99d128f8b3989f04bf8 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 3 May 2025 19:38:29 -0500 Subject: [PATCH] Season 9 Updates --- cogs/players.py | 2 +- helpers.py | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cogs/players.py b/cogs/players.py index 9521342..0c65103 100644 --- a/cogs/players.py +++ b/cogs/players.py @@ -445,7 +445,7 @@ class Players(commands.Cog): @app_commands.checks.has_any_role(PD_PLAYERS_ROLE_NAME) async def player_slash_command( self, interaction: discord.Interaction, player_name: str, - cardset: Literal['All', '2024 Season', '2024 Promos', '2023 Season', '2023 Promos', '2022 Season', '2022 Promos', '2021 Season', '2019 Season', '2018 Season', '2018 Promos', '2016 Season', '2013 Season', '2012 Season', '2008 Season', '1998 Season', '1998 Promos', 'Backyard Baseball', 'Mario Super Sluggers', 'Sams Choice'] = 'All'): + cardset: Literal['All', '2025 Live', '2024 Season', '2024 Promos', '2023 Season', '2023 Promos', '2022 Season', '2022 Promos', '2021 Season', '2019 Season', '2018 Season', '2018 Promos', '2016 Season', '2013 Season', '2012 Season', '2008 Season', '1998 Season', '1998 Promos', 'Backyard Baseball', 'Mario Super Sluggers', 'Sams Choice'] = 'All'): ephemeral = False if interaction.channel.name in ['paper-dynasty-chat', 'pd-news-ticker']: ephemeral = True diff --git a/helpers.py b/helpers.py index b1c919d..1540f2e 100644 --- a/helpers.py +++ b/helpers.py @@ -20,8 +20,8 @@ from typing import Optional, Literal from in_game.gameplay_models import Team -SBA_SEASON = 10 -PD_SEASON = 8 +SBA_SEASON = 11 +PD_SEASON = 9 ranked_cardsets = [20, 21, 22, 17, 18, 19] LIVE_CARDSET_ID = 20 LIVE_PROMO_CARDSET_ID = 21 @@ -283,6 +283,8 @@ RARITY = { 'Replacement': 0 } SELECT_CARDSET_OPTIONS = [ + discord.SelectOption(label='2025 Live', value='24'), + discord.SelectOption(label='2025 Promos', value='25'), discord.SelectOption(label='1998 Season', value='20'), discord.SelectOption(label='1998 Promos', value='21'), discord.SelectOption(label='2024 Season', value='17'), @@ -760,6 +762,7 @@ class SelectOpenPack(discord.ui.Select): class SelectPaperdexCardset(discord.ui.Select): def __init__(self): options = [ + discord.SelectOption(label='2025 Live'), discord.SelectOption(label='1998 Season'), discord.SelectOption(label='2024 Season'), discord.SelectOption(label='2023 Season'), @@ -807,6 +810,8 @@ class SelectPaperdexCardset(discord.ui.Select): cardset_id = 18 elif self.values[0] == '1998 Season': cardset_id = 20 + elif self.values[0] == '2025 Live': + cardset_id = 24 c_query = await db_get('cardsets', object_id=cardset_id, none_okay=False) await interaction.response.edit_message(content=f'Okay, sifting through your cards...', view=None) @@ -934,6 +939,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='2025 Live'), discord.SelectOption(label='1998 Season'), discord.SelectOption(label='Pokemon - Brilliant Stars'), discord.SelectOption(label='2024 Season'), @@ -979,6 +985,8 @@ class SelectBuyPacksCardset(discord.ui.Select): cardset_id = 17 elif self.values[0] == '1998 Season': cardset_id = 20 + elif self.values[0] == '2025 Live': + cardset_id = 24 elif self.values[0] == 'Pokemon - Brilliant Stars': cardset_id = 23 self.pack_embed.set_image(url=IMAGES['pack-pkmnbs'])