Skip to content

Commit

Permalink
wait oops the laws of physics actually suck
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Dec 2, 2023
1 parent dc6e321 commit 1f5db52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sizebot/lib/quake.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def mag_to_name(mag: float) -> str:
return "universe-ending"

def scale_to_joules(user: User, g: float, factor: float) -> Decimal:
return (Decimal(user.weight / 1000) / 2) * Decimal(g) * Decimal(factor)
return (Decimal(user.weight / 1000) / 2) * (Decimal(g) * Decimal(user.scale)) * Decimal(factor)

def step_joules(user: User) -> int:
return scale_to_joules(user, G, STEP_FACTOR)
Expand Down

0 comments on commit 1f5db52

Please sign in to comment.