From c68d76545792764b79bd8a7261b9cee84f380feb Mon Sep 17 00:00:00 2001 From: aikaterna Date: Sat, 13 Oct 2018 21:44:06 -0700 Subject: [PATCH] [V3 Trick or Treat] Adjustments --- trickortreat/trickortreat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trickortreat/trickortreat.py b/trickortreat/trickortreat.py index 47fbefd..8a684b5 100644 --- a/trickortreat/trickortreat.py +++ b/trickortreat/trickortreat.py @@ -93,7 +93,7 @@ class TrickOrTreat(BaseCog): ) await self.config.guild(ctx.guild).pick.set(pick_now + lost_candy) - await self.config.user(ctx.author).eaten.set(userdata["eaten"] + number) + await self.config.user(ctx.author).eaten.set(userdata["eaten"] + (userdata["candies"] - lost_candy)) return await ctx.send( f"You begin to think you don't need all this candy, maybe...\n*{lost_candy} candies are left behind*" @@ -108,7 +108,7 @@ class TrickOrTreat(BaseCog): lost_candy = userdata["candies"] - random.randint(1, 5) await self.config.guild(ctx.guild).pick.set(pick + lost_candy) await self.config.user(ctx.author).candies.set(0) - await self.config.user(ctx.author).eaten.set(userdata["eaten"] + number) + await self.config.user(ctx.author).eaten.set(userdata["eaten"] + (userdata["candies"] - lost_candy)) return await message.edit( content=f"You toss your candies on the ground in disgust.\n*{lost_candy} candies are left behind*" )