Skip to content

Commit

Permalink
Process xl candy reward type
Browse files Browse the repository at this point in the history
  • Loading branch information
wraythex authored Sep 22, 2023
1 parent 4ad4729 commit 9ef79ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mapadroid/db/DbPogoProtoSubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,9 @@ async def quest(self, session: AsyncSession, quest_proto: dict, quest_gen: Quest
if reward_type == 4:
item_amount = reward.get('candy', {}).get('amount', 0)
pokemon_id = reward.get('candy', {}).get('pokemon_id', 0)
if reward_type == 9:
item_amount = reward.get('xl_candy', {}).get('amount', 0)
pokemon_id = reward.get('xl_candy', {}).get('pokemon_id', 0)
elif reward_type == 12:
item_amount = reward.get('mega_resource', {}).get('amount', 0)
pokemon_id = reward.get('mega_resource', {}).get('pokemon_id', 0)
Expand Down

0 comments on commit 9ef79ed

Please sign in to comment.