Repository navigation
Add support for Seeker Runes unattached brand attachment range - #10574
Open
lucaskarsten wants to merge 1 commit into
Open
lucaskarsten wants to merge 1 commit into
lucaskarsten wants to merge 1 commit into
Conversation
"Unattached Brands gain X% increased Brand Attachment Range per second, up to a maximum of 100%" (Seeker Runes) was not parsed, nor the older tree wording "per second, up to 100%". Both now give BrandAttachmentRange per second unattached, capped at the maximum, with a new "Seconds Brands have been unattached" option in the Configuration tab, shown only when a mod uses it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #461 .
Description of the problem being solved:
Seeker Runes (Medium Cluster Jewel notable, brand damage clusters) has "Unattached Brands gain 20% increased Brand Attachment Range per second, up to a maximum of 100%", which was not parsed, so the notable showed as unsupported and the Attachment Range in Calcs ignored it.
In the client the stat is
unattached_sigil_attachment_range_+%_per_secondand its text has a line break ("...Brand Attachment Range per\nsecond, up to a maximum of 100%"). The tree splits the line in two; the first half does not parse, soPassiveTree:ProcessStatsjoins it with the next line and parses "... per second, up to a maximum of 100%". That joined form was the one missing from the parser.Changes:
ModParser: "unattached brands gain X% increased brand attachment range per second, up to a maximum of Y%" givesBrandAttachmentRangeINC perMultiplier:BrandUnattachedSeconds, withlimit = Y, limitTotal = true(same form as "per second you've been stationary, up to a maximum of"). A second entry covers the 3.11 to 3.27 tree wording, "per second, up to 100%", so builds saved on those trees get it too.ConfigOptions: new "Seconds Brands have been unattached:" count in the brand section, withifMult = "BrandUnattachedSeconds", so it only shows when a mod uses it. Default is 0, so nothing changes unless it is set.ModCache.lua: only the joined line changes. A full regeneration on currentdevalso changes 69 unrelated lines (added + removed), so I left those out.Not changed:
Steps taken to verify a working solution:
TestBrandAttachment_spec.lua:unknown, noextra) and hasBrandAttachmentRangeINC 20.dev(nodeunknown; 30 instead of 48) and pass with this PR. Removing the cap makes the 10 s case fail (90 instead of 60); removing the old-wording entry makes its case fail (30 instead of 48).busted --lua=luajit: 930 / 930 passing (devwith the new spec: 928 / 930, only the 2 new tests failing).--exclude-tags=none --tags=builds: 1264 ok / 900 failing on bothdevand this branch, with an identical list of failures.Link to a build that showcases this PR:
Checked headless on a real 3.29 build converted to the 3.30 tree: Armageddon Brand 20 as the main skill, the outer large jewel socket 21984 allocated, a Medium Cluster Jewel "Added Small Passive Skills grant: 12% increased Brand Damage / 1 Added Passive Skill is Seeker Runes" socketed in it, and Seeker Runes allocated:
devSame build converted to the 3.27 tree instead (old wording "per second, up to 100%"):
dev3.0m / 3.0m with the mod unknown, this PR 3.0m / 6.0m.Before screenshot:
Seeker Runes line shown as unsupported; Attachment Range 3.0m whatever the time.
After screenshot:
Attachment Range 6.0m with "Seconds Brands have been unattached" set to 5.