Season 9 Updates

This commit is contained in:
Cal Corum 2025-05-03 19:38:29 -05:00
parent cffc9380f1
commit 6a355def4b
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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'])