2018 Cardset Update
This commit is contained in:
parent
96f783bb63
commit
f68a8166e7
@ -248,7 +248,7 @@ class Economy(commands.Cog):
|
||||
value=f'{get_roster_sheet({"gsheet": current["gsheet_template"]}, allow_embed=True)}'
|
||||
)
|
||||
embed.add_field(
|
||||
name='Paper Dynasty Season 5 Guidelines',
|
||||
name='Paper Dynasty Season 6 Guidelines',
|
||||
value='https://docs.google.com/document/d/1ngsjbz8wYv7heSiPMJ21oKPa6JLStTsw6wNdLDnt-k4/edit?usp=sharing',
|
||||
inline=False
|
||||
)
|
||||
|
||||
@ -367,7 +367,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', '2008 Season', '2012 Season', '2013 Season', '2016 Season', '2019 Season',
|
||||
cardset: Literal['All', '2008 Season', '2012 Season', '2013 Season', '2016 Season', '2018 Live', '2019 Season',
|
||||
'2021 Season', '2022 Season', '2022 Promos', '2023 Season', '2023 Promos',
|
||||
'Mario Super Sluggers', 'Sams Choice'] = 'All'):
|
||||
# min_rarity: Literal['Replacement', 'Reserve', 'Starter', 'All-Star', 'MVP'] = None):
|
||||
|
||||
10
helpers.py
10
helpers.py
@ -641,6 +641,7 @@ class SelectPaperdexCardset(discord.ui.Select):
|
||||
discord.SelectOption(label='2022 Promos'),
|
||||
discord.SelectOption(label='2021 Season'),
|
||||
discord.SelectOption(label='2019 Season'),
|
||||
discord.SelectOption(label='2018 Season'),
|
||||
discord.SelectOption(label='2016 Season'),
|
||||
discord.SelectOption(label='2013 Season'),
|
||||
discord.SelectOption(label='2012 Season'),
|
||||
@ -672,6 +673,8 @@ class SelectPaperdexCardset(discord.ui.Select):
|
||||
cardset_id = 11
|
||||
elif self.values[0] == '2008 Season':
|
||||
cardset_id = 12
|
||||
elif self.values[0] == '2018 Season':
|
||||
cardset_id = 13
|
||||
|
||||
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)
|
||||
@ -803,6 +806,7 @@ class SelectBuyPacksCardset(discord.ui.Select):
|
||||
discord.SelectOption(label='2022 Season'),
|
||||
discord.SelectOption(label='2021 Season'),
|
||||
discord.SelectOption(label='2019 Season'),
|
||||
discord.SelectOption(label='2018 Season'),
|
||||
discord.SelectOption(label='2016 Season'),
|
||||
discord.SelectOption(label='2013 Season'),
|
||||
discord.SelectOption(label='2012 Season'),
|
||||
@ -834,6 +838,8 @@ class SelectBuyPacksCardset(discord.ui.Select):
|
||||
cardset_id = 11
|
||||
elif self.values[0] == '2008 Season':
|
||||
cardset_id = 12
|
||||
elif self.values[0] == '2018 Season':
|
||||
cardset_id = 13
|
||||
|
||||
self.pack_embed.description = f'{self.pack_embed.description} - {self.values[0]}'
|
||||
view = Confirm(responders=[interaction.user], timeout=30)
|
||||
@ -1941,7 +1947,7 @@ async def get_test_pack(ctx, team):
|
||||
await db_post('notifs', payload={
|
||||
'created': int(datetime.datetime.timestamp(datetime.datetime.now())*1000),
|
||||
'title': 'Rare Pull',
|
||||
'field_name': f'{pull["description"]} ({pull["rarity"]["name"]})',
|
||||
'field_name': f'{player_desc(pull)} ({pull["rarity"]["name"]})',
|
||||
'message': f'Pulled by {team["abbrev"]}',
|
||||
'about': f'Player-{pull["player_id"]}'
|
||||
})
|
||||
@ -2184,7 +2190,7 @@ async def roll_for_cards(all_packs: list, extra_val=None) -> list:
|
||||
await db_post('notifs', payload={
|
||||
'created': int(datetime.datetime.timestamp(datetime.datetime.now())*1000),
|
||||
'title': 'Rare Pull',
|
||||
'field_name': f'{pull["description"]} ({pull["rarity"]["name"]})',
|
||||
'field_name': f'{player_desc(pull)} ({pull["rarity"]["name"]})',
|
||||
'message': f'Pulled by {team["abbrev"]}',
|
||||
'about': f'Player-{pull["player_id"]}'
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user