Map-A-Droid / MAD

Map PoGo stuff with Android devices
211 stars 133 forks source link

Add support for experience quest reward #1271

Closed wraythex closed 2 years ago

wraythex commented 2 years ago

This PR:

Grennith commented 2 years ago

Thanks :)

wraythex commented 2 years ago

I'm sorry to report, I did some extra testing and found an issue. The quest_item_amount is a tinyint which can only hold values from -128 -> +127. Since the experience reward was 700, the stored value was getting truncated down to 127 (the max of the tinyint). I have a solution to fix this by storing the experience in the stardust column, which is a smallint which can hold up to 32767. I'm not sure if we can revert this PR so I can fix it, or if you'd want me to create a new PR?

Grennith commented 2 years ago

Doesn't sound like a breaking issue, feel free to PR whenever it fits your schedule :)