Item tooltip comparison and unique "Sort by" ignore skills granted by the candidate item
Maintainer thường phản hồi trong vòng 8 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start with the granted-skill handling in src/Modules/CalcSetup.lua, especially the sections around lines 846, 1465–1520, and 1566–1578; then trace the CALCULATOR-mode comparison paths in Calcs.lua, ItemDBControl.lua, and ItemsTab.lua. Check how candidate item skills and removed item groups are represented in non-MAIN calculations. Done means item comparison tooltips and unique-item sorting include skills granted by the candidate, while replacement comparisons also handle the prior granted skill correctly.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happens
Comparisons for an item that is not equipped (the unique/rare database "Sort by" stat sort and the item hover tooltip "Equipping this item will give you") never include a skill that the candidate item itself grants. The skill only starts to count after the item is actually equipped.
Example (derived from the code, not yet checked in the UI):
- Make a build whose main skill deals chaos damage with spells or attacks, and equip any one-handed sword.
- Items tab > Uniques, filter to One Handed Swords, hover United in Dream (Grants Level 25 Envy Skill). Or sort the list by Combined DPS.
- Equip United in Dream.
Expected: the tooltip/sort value predicts the DPS you get after equipping, including the added chaos damage from Envy.
Actual: the tooltip/sort value is computed without Envy. After equipping, DPS is higher than predicted, and items that grant skills (auras, buffs, triggered skills) sort lower than they should.
This is the other half of #8093 (that issue is about an equipped item's granted skill still being counted when the candidate replaces it). Both come from the same code path.
Cause
Socket groups for item- and tree-granted skills are only created or removed when env.mode == "MAIN":
- https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/a69391d6daaaea1aaf8054668a094aad88dd7eaa/src/Modules/CalcSetup.lua#L1468
- https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/a69391d6daaaea1aaf8054668a094aad88dd7eaa/src/Modules/CalcSetup.lua#L1480-L1520 (create or update the group for each entry in
env.grantedSkills) - https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/a69391d6daaaea1aaf8054668a094aad88dd7eaa/src/Modules/CalcSetup.lua#L1566-L1578 (remove groups whose item is gone)
The item comparisons run in "CALCULATOR" mode with a repSlotName/repItem override:
- https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/a69391d6daaaea1aaf8054668a094aad88dd7eaa/src/Modules/Calcs.lua#L100-L101
- https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/a69391d6daaaea1aaf8054668a094aad88dd7eaa/src/Classes/ItemDBControl.lua#L258-L263
- https://github.com/PathOfBuildingCommunity/PathOfBuilding/blob/a69391d6daaaea1aaf8054668a094aad88dd7eaa/src/Classes/ItemsTab.lua#L2578-L2579
In that mode env.grantedSkills does include the candidate's skill (CalcSetup.lua#L846, #L1465), but no socket group is made for it. Skill building only walks build.skillsTab.socketGroupList, so the candidate's skill never becomes an active skill in the comparison.
Possible fix
Work out the granted-skill groups for the env being calculated in every mode. In non-MAIN modes, build them into a per-env list instead of skipping them, and skip existing granted groups whose source item is not in env.player.itemList. MAIN mode keeps writing them to socketGroupList as it does now. That would also fix #8093.
- Ngôn ngữ chính
- Lua
- Star
- 5.5k
- Fork
- 2.4k
- Merge trung bình
- 6 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 13
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PathOfBuildingCommunity/PathOfBuilding
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
PathOfBuildingCommunity/PathOfBuilding#10431 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
PathOfBuildingCommunity/PathOfBuilding#10428 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
PathOfBuildingCommunity/PathOfBuilding#10420 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
PathOfBuildingCommunity/PathOfBuilding#10395 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
bug: accuracy
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PathOfBuildingCommunity/PathOfBuilding#9911 ·
Maintainer thường phản hồi trong vòng 8 ngày
Tất cả issue của PathOfBuildingCommunity/PathOfBuilding
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 5 ngày
-
enhancement priority::low upstream
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug reviewed-by-AI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
olimorris/codecompanion.nvim#3508 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The Balanced badge stays on a card after it changes to an enhancement that isn't rebalancedCó thể đã có người làm @Jr-JoshS đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
Balatro-Multiplayer/BalatroMultiplayerPvP#640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Babies count as citizens for housing and the lost-fort check, though a baby uses no bed or seatĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Layr-Labs/arena-fortress#141 ·
Maintainer thường phản hồi trong vòng 1 ngày