Update economy.py

typo + pack limit for new teams
This commit is contained in:
Cal Corum 2023-04-25 02:57:35 -05:00
parent 622315ca6a
commit 4b034f6cdd

View File

@ -1121,13 +1121,15 @@ class Economy(commands.Cog):
anchor_all_stars = db_get(
'players/random',
params=[
('min_rarity', 3), ('max_rarity', 3), ('franchise', team_choice), ('pos_exclude', 'RP'), ('limit', 1)
('min_rarity', 3), ('max_rarity', 3), ('franchise', team_choice), ('pos_exclude', 'RP'), ('limit', 1),
('in_packs', True)
]
)
anchor_starters = db_get(
'players/random',
params=[
('min_rarity', 2), ('max_rarity', 2), ('franchise', team_choice), ('pos_exclude', 'RP'), ('limit', 2)
('min_rarity', 2), ('max_rarity', 2), ('franchise', team_choice), ('pos_exclude', 'RP'), ('limit', 2),
('in_packs', True)
]
)
if not anchor_all_stars:
@ -1500,9 +1502,9 @@ class Economy(commands.Cog):
conf_message = f'Alright, your sheet is linked to your team - good luck'
if owner_team == team:
conf_message += 'this season!'
conf_message += ' this season!'
else:
conf_message += 'on your run!'
conf_message += ' on your run!'
conf_message += f'\n\n{HELP_SHEET_SCRIPTS}'
await response.edit(content=f'{conf_message}')