Skip to content

Commit

Permalink
Raise Floor
Browse files Browse the repository at this point in the history
  • Loading branch information
atomflunder committed Sep 30, 2024
1 parent a11270c commit f920143
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cogs/funcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,16 +304,20 @@ async def parzcoin(self, ctx: commands.Context) -> None:

direction = random.choice(["up", "down"])

floor = 1

if self.parz_coin_value > 999.0:
direction = "down"
floor = 40
elif self.parz_coin_value < 100.0:
direction = "up"
floor = 80

if direction == "up":
percent = random.randint(1, 150)
percent = random.randint(floor, 150)
self.parz_coin_value *= 1 + (percent / 100)
else:
percent = random.randint(1, 75)
percent = random.randint(floor, 75)
self.parz_coin_value *= 1 - (percent / 100)

print_direction = "UP 📈" if direction == "up" else "DOWN 📉"
Expand Down

0 comments on commit f920143

Please sign in to comment.