Skip to content

Commit

Permalink
add IPD as a stat
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Jul 3, 2024
1 parent 58ffb13 commit c862724
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sizebot/lib/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
AVERAGE_CAL_PER_DAY = 2000
AVERAGE_WATER_PER_DAY = WV(3200)
AVERAGE_HUMAN_DRAG_COEFFICIENT = Decimal("1.123")
AVERAGE_HUMAN_IPD = SV("0.064")
GRAVITY = Decimal("9.807") # m/s^2
AIR_DENSITY = Decimal("1.204") # kg/m3
HOUR = Decimal("3600")
Expand Down Expand Up @@ -1031,6 +1032,16 @@ def bool_to_icon(value: bool) -> str:
value=(lambda v: v["height"] / 65),
tags=["keypoint", "speedcompare"],
aliases=["toe", "toes"]),
StatDef("ipd",
title="Inter Pupillary Distance",
string="{nickname} has an inter pupillary distance of **{ipd:,.3mu}**.",
body="{ipd:,.3mu}",
is_shown=False,
requires=["averagescale"],
power=1,
type=SV,
value=(lambda v: AVERAGE_HUMAN_IPD * v["averagescale"]),
aliases=["interpupillarydistance", "eyedistance", "eyedist", "vr"]),
StatDef("height+",
title=lambda s: s['height'].title,
string="",
Expand Down

0 comments on commit c862724

Please sign in to comment.