This commit is contained in:
Seaswimmer 2023-02-28 00:37:37 -05:00
parent 8932e38b2a
commit eca76b5d48

View file

@ -16,9 +16,9 @@ class Galaxy(commands.Cog):
output = warehouse_levels[lvlto] - warehouse_levels[lvlfrom] output = warehouse_levels[lvlto] - warehouse_levels[lvlfrom]
total = (f'{output:,}') total = (f'{output:,}')
embed = discord.Embed(title="Warehouse Cost", color=await self.bot.get_embed_color(None)) embed = discord.Embed(title="Warehouse Cost", color=await self.bot.get_embed_color(None))
embed.add_field(name="From:", value=f"Warehouse Level: {lvlfrom}\nTotal Cost: {total_from} Credits", inline=False) embed.add_field(name="From:", value=f"Warehouse Level: {lvlfrom}\nTotal Cost: {total_from} Credits")
embed.add_field(name="To:", value=f"Warehouse Level: {lvlto}\nTotal Cost: {total_to} Credits", inline=False) embed.add_field(name="To:", value=f"Warehouse Level: {lvlto}\nTotal Cost: {total_to} Credits")
embed.add_field(name="Output:", value=f"{total} Credits") embed.add_field(name="Output:", value=f"{total} Credits", inline=False)
if lvlfrom == lvlto: if lvlfrom == lvlto:
await ctx.send(contents="``lvlfrom`` cannot be the same as ``lvlto``.") await ctx.send(contents="``lvlfrom`` cannot be the same as ``lvlto``.")
elif lvlfrom > lvlto: elif lvlfrom > lvlto: