From 4233ee1430d315fb83503f754428a96e3ce4a053 Mon Sep 17 00:00:00 2001 From: Natalie Fearnley Date: Mon, 20 May 2024 22:14:04 -0400 Subject: [PATCH] clean up quake.py --- sizebot/lib/quake.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sizebot/lib/quake.py b/sizebot/lib/quake.py index 631d8a4d..a59a30cf 100644 --- a/sizebot/lib/quake.py +++ b/sizebot/lib/quake.py @@ -71,20 +71,20 @@ def mag_to_name(mag: float) -> str: return r.title() + b -def scale_to_joules(user: User, g: float, factor: float) -> Decimal: +def _scale_to_joules(user: User, g: float, factor: float) -> Decimal: return (Decimal(user.weight / 1000) / 2) * (Decimal(g) * Decimal(user.scale)) * Decimal(factor) def step_joules(user: User) -> Decimal: - return scale_to_joules(user, G, STEP_FACTOR) + return _scale_to_joules(user, G, STEP_FACTOR) def stomp_joules(user: User) -> Decimal: - return scale_to_joules(user, STOMP_G, STOMP_FACTOR) + return _scale_to_joules(user, STOMP_G, STOMP_FACTOR) def jump_joules(user: User) -> Decimal: - return scale_to_joules(user, G, JUMP_FACTOR) + return _scale_to_joules(user, G, JUMP_FACTOR) def breath_joules(user: User) -> Decimal: