Skip to content

Commit

Permalink
[hotfix] Fix webhook for experience quest missing amount
Browse files Browse the repository at this point in the history
Was missing item_amount because (iirc) we changed to store experience in stardust due to database field limit.

https://github.com/Map-A-Droid/MAD/blob/fd76cb901a27d734838e34c3e6a0e7f35eed3d1f/mapadroid/db/DbPogoProtoSubmitRaw.py#L707
  • Loading branch information
JabLuszko authored Oct 6, 2024
1 parent fd76cb9 commit 69f91a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapadroid/utils/questGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async def generate_quest(self, stop: Pokestop, quest: TrsQuest):
pokemon_name = await i8ln(await self.pokemonname(str(pokemon_id)))
elif quest_reward_type == _('Experience'):
item_type = quest_reward_type
item_amount = quest.quest_item_amount
item_amount = quest.quest_stardust
elif quest_reward_type == _('XL Candy'):
item_amount = quest.quest_item_amount
item_type = quest_reward_type
Expand Down

0 comments on commit 69f91a9

Please sign in to comment.