mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-17 02:43:21 +12:00
had min instead of max when leveling down
This commit is contained in:
parent
afac700585
commit
b0c410e167
|
@ -110,7 +110,7 @@ class EconomyTrickle(commands.Cog):
|
|||
continue
|
||||
|
||||
# loose exp per interval
|
||||
xp = min(data["xp_per_interval"] * data["decay_rate"], 1)
|
||||
xp = max(data["xp_per_interval"] * data["decay_rate"], 1)
|
||||
xp = await self.config.member(member).xp() - xp
|
||||
xp = max(xp, 0)
|
||||
await self.config.member(member).xp.set(xp)
|
||||
|
|
Loading…
Reference in a new issue