Skip to content

Commit

Permalink
Fix inconsistency in trashcan amount rounding (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMaxii authored May 26, 2024
1 parent 211a3e8 commit 9454e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/cogs/commands/econ.py
Original file line number Diff line number Diff line change
Expand Up @@ -2103,9 +2103,9 @@ async def trash(self, ctx: Ctx):
async def trashcan_empty(self, ctx: Ctx):
total_ems, amount = await self.db.empty_trashcan(ctx.author.id)

total_ems = math.floor(total_ems)
total_ems *= (await self.db.fetch_item(ctx.author.id, "Rich Person Trophy") is not None) + 1
total_ems *= (await self.db.fetch_item(ctx.author.id, "Recycler") is not None) + 1
total_ems = math.floor(total_ems)

await self.db.balance_add(ctx.author.id, total_ems)

Expand Down

0 comments on commit 9454e54

Please sign in to comment.