Skip to content

Quest rewards 0.5#2027

Open
rasmuskl wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
rasmuskl:quest-rewards-0.5
Open

Quest rewards 0.5#2027
rasmuskl wants to merge 1 commit into
PathOfBuildingCommunity:devfrom
rasmuskl:quest-rewards-0.5

Conversation

@rasmuskl
Copy link
Copy Markdown
Contributor

Description of the problem being solved:

0.5 API now serves quest_stats as aggregated instead of exact lines per quest. So the +30/30/40 lines for spirit becomes a single +100 line instead. This PR adds a simple greedy algorithm to configure quests in import by decomposing the rolled up values.

Adds a simple disambiguation table for spirit specifically, since the 30+30+40 spirit values can result in wrong values with the greedy algorithm. An alternative solution would be to try all combinations, but I decided to keep it simple since it was only a single case to avoid the additional complexity.

Also added the new Tribal Medicine quest: https://poe2db.tw/us/Tribal_Medicine

Steps taken to verify a working solution:

Added new tests and tested in UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant