Skip to content

Commit

Permalink
remove some speeds from compare
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiDuncan committed Dec 3, 2023
1 parent ca81afd commit 5d12907
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sizebot/lib/proportions.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ async def toEmbed(self, requesterID = None):
embed.add_field(name="Lift/Carry Strength", value=(
f"{emojis.comparebig}{self.bigToSmall.liftstrength:,.3mu}\n"
f"{emojis.comparesmall}{self.smallToBig.liftstrength:,.3mu}"), inline=True)
embed.add_field(name=f"{emojis.comparebig} Speeds", value=self.bigToSmall.get_speeds(), inline=False)
embed.add_field(name=f"{emojis.comparesmall} Speeds", value=self.smallToBig.get_speeds(), inline=False)
embed.add_field(name=f"{emojis.comparebig} Speeds", value=self.bigToSmall.get_speeds(True), inline=False)
embed.add_field(name=f"{emojis.comparesmall} Speeds", value=self.smallToBig.get_speeds(True), inline=False)
embed.set_footer(text=(
f"{self.small.nickname} would have to look {self.lookdirection} {self.lookangle:.0f}° to look at {self.big.nickname}'s face.\n"
f"{self.big.nickname} is {self.multiplier:,.3}x taller than {self.small.nickname}.\n"
Expand Down Expand Up @@ -799,7 +799,13 @@ def getFormattedStat(self, stat: str):
return glitch_string(returndict.get(stat))
return returndict.get(stat)

def get_speeds(self):
def get_speeds(self, simple = False):
if simple:
return (f"{emojis.walk} {self.walkperhour:,.1M} per hour / {self.walkperhour:,.1U} per hour\n"
f"{emojis.run} {self.runperhour:,.1M} per hour / {self.runperhour:,.1U} per hour\n"
f"{emojis.climb} {self.climbperhour:,.1M} per hour / {self.climbperhour:,.1U} per hour\n"
f"{emojis.swim} {self.swimperhour:,.1M} per hour / {self.swimperhour:,.1U} per hour")

return (f"{emojis.walk} {self.walkperhour:,.1M} per hour / {self.walkperhour:,.1U} per hour\n"
f"{emojis.run} {self.runperhour:,.1M} per hour / {self.runperhour:,.1U} per hour\n"
f"{emojis.climb} {self.climbperhour:,.1M} per hour / {self.climbperhour:,.1U} per hour\n"
Expand Down

0 comments on commit 5d12907

Please sign in to comment.