Skip to content

Commit

Permalink
😎 Add better formatting and numerize
Browse files Browse the repository at this point in the history
  • Loading branch information
tookender committed Oct 18, 2024
1 parent cc93e5a commit e64309a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/dq/calculators.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ async def calc_damage(self, ctx, ability: app_commands.Choice[str], helmet_power
ei_avg = damage['With Enhanced Inner']['Average']
ei_high = damage["With Enhanced Inner"]["High Damage"]

embed = Embed(title="Damage Range Calculator", description=f"{damage}")
embed = Embed(title="Damage Range Calculator")

embed.add_field(name="❌ No Inner", value=f"Low Damage: {ni_low:,} ({n(ni_low)})\nAverage Damage: {ni_avg:,} ({n(ni_avg)})\n High Damage: {ni_high:,} ({n(ni_high)})", inline=False)
embed.add_field(name="✨ With Inner", value=f"Low Damage: {wi_low:,} ({n(wi_low)})\nAverage Damage: {wi_avg:,} ({n(wi_avg)})\n High Damage: {wi_high:,} ({n(wi_high)})", inline=False)
embed.add_field(name="🌟 With Inner", value=f"Low Damage: {ei_low:,} ({n(ei_low)})\nAverage Damage: {ei_avg:,} ({n(ei_avg)})\n High Damage: {ei_high:,} ({n(ei_high)})", inline=False)
embed.add_field(name="❌ No Inner", value=f"**Low Damage:** {n(ni_low)}\n**Average Damage:** {n(ni_avg)}\n**High Damage:** {n(ni_high)}", inline=False)
embed.add_field(name="✨ With Inner", value=f"**Low Damage:** {n(wi_low)}\n**Average Damage:** {n(wi_avg)}\n**High Damage:** {n(wi_high)}", inline=False)
embed.add_field(name="🌟 With Inner", value=f"**Low Damage:** {n(ei_low)}\n**Average Damage:** {n(ei_avg)}\n**High Damage:** {n(ei_high)}", inline=False)

return await ctx.send(embed=embed)

0 comments on commit e64309a

Please sign in to comment.