From 77dcac1ba97b53685bd324a6a406abbef19682eb Mon Sep 17 00:00:00 2001 From: DigiDuncan Date: Sun, 26 Nov 2023 20:52:30 -0500 Subject: [PATCH] new quake types --- sizebot/lib/quake.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sizebot/lib/quake.py b/sizebot/lib/quake.py index 3d7f8bb8..e64d3669 100644 --- a/sizebot/lib/quake.py +++ b/sizebot/lib/quake.py @@ -41,10 +41,16 @@ def mag_to_name(mag: float) -> str: return "unprecedented" elif mag < 21: # 13 - 21 return "apocalyptic" - elif mag < 22: # 22 - 23 + elif mag < 22: # 21 - 23 return "earth-cracking" - else: # 23 - inf + elif mag < 25: # 23 - 25 return "earth-crumbling" + elif mag < 32: # 25 - 32 + return "sun-shattering" + elif mag < 63: # 32 - 63 + return "galaxy-collapsing" + else: # 63+ + return "universe-ending" def scale_to_joules(user: User, g: float, factor: float) -> Decimal: return Decimal((user.weight * Decimal(0.4536)) / 2 * Decimal(g) * (Decimal(factor) * user.scale))