repurpose format_required
@@ -158,14 +158,14 @@ class Econ(commands.Cog):
await self.bot.send(ctx, f'Withdrew {amount}{self.bot.custom_emojis["emerald_block"]}'
f'({amount * 9}{self.bot.custom_emojis["emerald"]}) from your vault.')
- async def format_required(self, item):
+ async def format_required(self, item, amount=1):
if item[3][0] == 'Netherite Pickaxe':
- return f' {item[1]}{self.bot.custom_emojis["emerald"]} + 6{self.bot.custom_emojis["netherite"]}'
+ return f' {item[1] * amount}{self.bot.custom_emojis["emerald"]} + {4 * amount}}{self.bot.custom_emojis["netherite"]}'
if item[3][0] == 'Netherite Sword':
- return f' {item[1]}{self.bot.custom_emojis["emerald"]} + 6{self.bot.custom_emojis["netherite"]}'
+ return f' {item[1] * amount}{self.bot.custom_emojis["emerald"]} + {6 * amount}{self.bot.custom_emojis["netherite"]}'
- return f' {item[1]}{self.bot.custom_emojis["emerald"]}'
+ return f' {item[1] * amount}{self.bot.custom_emojis["emerald"]}'
@commands.group(name='shop')
async def shop(self, ctx):
