Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paixlukee committed Feb 18, 2025
1 parent 05337fd commit bf0ff9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ async def clean(self, ctx):
return
to_clean = [{'name': 'sink', 'exp': 6}, {'name': 'oven', 'exp': 12}, {'name': 'counters', 'exp': 16}, {'name': 'floors', 'exp': 18}, {'name': 'bathrooms', 'exp': 22}, {'name': 'kitchen', 'exp': 26}]
rn = rnd(to_clean)
count = await self.add_exp(user=ctx.author.id, count=rn['exp'])
count = await self.add_exp(user=ctx.author.id, count=rn['exp'], check_tasks=True)
await ctx.send(f"{ctx.author.mention}, You cleaned the {rn['name']} and earned {count} EXP.")
if "clean_onefifty" in post['tasks']:
user = post
Expand Down Expand Up @@ -2380,9 +2380,9 @@ async def add_exp(self, user, count, check_tasks=False):
if "earn_exp" in data['tasks']:
ix = data['tasks'].index("earn_exp")
print(f'IX: {ix}')
print(data['task_list'] + "\n\n\n")
print(data['task_list'], "\n\n\n")
print(data['task_list'][ix])
print("\n\n\n" + data['task_list'][ix]['completed'])
print("\n\n\n", data['task_list'][ix]['completed'])
if data['task_list'] and data['task_list'][ix]['completed']+count >= data['task_list'][ix]['total']:
await ctx.author.send(f"You have completed the **{data['task_list'][ix]['description']}** task. You have been awarded {bbux}**{data['task_list'][ix]['rewards']}**.")
await db.market.update_one({"owner": user}, {"$inc":{"money": data['task_list'][ix]['rewards']}})
Expand Down

0 comments on commit bf0ff9e

Please sign in to comment.