From 925db425e8ee443f765ae491901e531c6705232a Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Thu, 16 Mar 2023 16:43:58 -0400 Subject: [PATCH] minor changes to polarisxpconvert made the Polaris XP field round, made both embed fields non-inline --- galaxy/galaxy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 1a10151..72da804 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -20,11 +20,12 @@ class Galaxy(commands.Cog): async def polarisxpconvert(self, ctx, *, tatsu_studs: int): """Converts Tatsu Studs to Polaris XP.""" math = round((tatsu_studs/25)*10, 0) - output_from = f'{tatsu_studs:,}' + rounded_tatsu_studs = round(tatsu_studs, 0) + output_from = f'{rounded_tatsu_studs:,}' output_to = f'{math:,}' embed = discord.Embed(color=await self.bot.get_embed_color(None)) - embed.add_field(name="Tatsu Studs", value=f"{output_from}") - embed.add_field(name="Polaris XP", value=f"{output_to}") + embed.add_field(name="Tatsu Studs", value=f"{output_from}", inline=False) + embed.add_field(name="Polaris XP", value=f"{output_to}", inline=False) await ctx.send(embed=embed) @commands.command()