Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix config options not applying to Vaal skill gems #7300

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

sida-wang
Copy link
Contributor

@sida-wang sida-wang commented Jan 24, 2024

Fixes #7292, fixes #7298 .

Description of the problem being solved:

#7126 introduced a bug where the ModStore comparison would use cfg.SkillGem with the intent to save a function call as the GameId seemed to be immediately accessible. This is not the case for item provided skills as fixed in #7291 and also presents an issue for Vaal skill gems as the comparison should be based on the base skill.

This PR removes the logic accessing cfg.SkillGem in favouring of using calcLib.getGameIdFromGemName for all the comparisons (essentially superseding #7291).

A further change is made to update the logic that applies the dropVaal flag in calcLib.getGameIdFromGemName. This was using a gsub which proved problematic for skills like Reap, Caustic Arrow, Dominating blow etc where the gemIds of the Vaal gem differ with the base gemIds in more than just a Vaal term.
A lookup table from VaalGemId => BaseGemId has been implemented in Data.lua to allow for a robust method of obtaining the base gems of vaal gems.

Steps taken to verify a working solution:

After screenshot:

image

#7298 after
image

@LocalIdentity LocalIdentity merged commit dfcaa40 into PathOfBuildingCommunity:dev Jan 24, 2024
2 checks passed
Wires77 pushed a commit to Wires77/PathOfBuilding that referenced this pull request Mar 23, 2024
…munity#7300)

* fix: set skillName match to use function

* fix: method of getting base gem from vaal gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: behaviour Behavioral differences
Projects
None yet
2 participants