Skip to content

Commit

Permalink
Fix reward logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Iapetus-11 committed Jun 23, 2024
1 parent d44f260 commit 8788e00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bot/cogs/core/quests.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ async def quest_completed(
await self.db.mark_daily_quest_as_done(user_id, quest.key)
quest = await self.fetch_user_daily_quest(user_id)

assert quest.reward_item == "emerald"
if quest.reward_amount == "emerald":
if quest.reward_item == "emerald":
await self.db.balance_add(user_id, quest.reward_amount)
elif quest.reward_item == "Barrel":
await self.db.add_item(user_id, "Barrel", 1024, quest.reward_amount)
Expand Down

0 comments on commit 8788e00

Please sign in to comment.