diff --git a/sizebot/cogs/quake.py b/sizebot/cogs/quake.py index 6f84b905..da5c1b1a 100644 --- a/sizebot/cogs/quake.py +++ b/sizebot/cogs/quake.py @@ -4,7 +4,7 @@ import discord from discord.ext import commands -from sizebot.lib.constants import colors +from sizebot.lib.constants import colors, emojis from sizebot.lib.fakeplayer import FakePlayer from sizebot.lib.quake import breath_joules, joules_to_mag, jump_joules, mag_to_name, mag_to_radius, poke_joules, step_joules, stomp_joules from sizebot.lib.units import SV @@ -12,6 +12,7 @@ from sizebot.lib.errors import UserMessedUpException EARTH_RAD = 10_018_570 +UNI_RAD = 4.4E26 QuakeType = typing.Literal["step", "stomp", "jump", "poke", "breath", "breathe"] class QuakeCog(commands.Cog): @@ -51,9 +52,12 @@ async def earthquake(self, ctx, quake_type: typing.Optional[QuakeType] = "step", print_mag = max(mag, Decimal(0.0)) if rad < EARTH_RAD: print_rad = f"{rad:,.1mu}" - else: + elif rad < UNI_RAD: e_rad = rad / EARTH_RAD print_rad = f"{e_rad:,.2} 🌎" + else: + u_rad = rad / UNI_RAD + print_rad = f"{u_rad:,.2} {emojis.universe}" e = Embed( title=f"Earthquake generated by {userdata.nickname} {verb}", description=f"{userdata.nickname} is {userdata.height:,.3mu} tall, and weighs {userdata.weight:,.3mu}.", diff --git a/sizebot/data/constants.ini b/sizebot/data/constants.ini index 5e8e5d41..b5969e73 100644 --- a/sizebot/data/constants.ini +++ b/sizebot/data/constants.ini @@ -37,6 +37,7 @@ run_program = "<:run:788307532577636372>" star = "<:favorite:788307532228722699>" info = "<:info:788307532586287114>" error = "<:error:788307532278923275>" +universe = "<:universe_ball:1180685289094660167>" [colors] red = 0xFF1F00