Newly picked gem keeps its level 1 attribute requirement until the group is reprocessed
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 79/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- backend
Hướng nghiên cứu
Bắt đầu tại src/Classes/SkillsTab.lua, ở callback thay đổi tên gem quanh dòng 795–829. Sau đó đọc ProcessSocketGroup quanh dòng 1226–1230 để theo dõi thời điểm các yêu cầu được tính toán. Kiểm tra cách cấp cấp độ cho gem và thời điểm xử lý nhóm; công việc hoàn tất khi gem vừa được chọn dùng cấp độ mặc định cho yêu cầu thuộc tính và cảnh báo được hiển thị mà không cần thao tác nào khác. Issue không nêu tệp kiểm thử, vì vậy hãy tìm các kiểm thử SkillsTab hoặc kiểm thử yêu cầu gem có liên quan.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happens
When you pick a gem into an empty gem row, its attribute requirement is worked out at gem level 1. That happens even though the row is then set to the default gem level (for example 20). The wrong requirement stays until something else reprocesses the socket group: selecting another group and coming back, editing the level, or reopening the build.
Steps:
- Skills tab, create a new socket group.
- In the first gem row, type and pick Arc (default gem level setting: e.g. "Normal maximum", so the row shows level 20).
- Look at the Int requirement: the sidebar requirement/warning, Calcs tab > Attributes "Int Requirement", or the gem's requirement in its tooltip.
Expected: the level-20 Arc Int requirement.
Actual: the level-1 Arc Int requirement. Clicking another socket group and then back to this one (or saving and reopening) changes it to the level-20 value with no edit made. A missing "you do not meet the Int requirement" warning can appear or disappear the same way.
Cause
In the gem-name change callback the group is processed before the new gem's level is set:
ProcessSocketGroup works out reqLevel/reqStr/reqDex/reqInt from gemInstance.level, which is still 1 for a new row (the instance is created with level = 1 at #L795-L804):
Then gemInstance.level = self:ProcessGemLevel(...) sets the real level, but nothing works out the requirement again. The rebuild that follows (Build.lua OnFrame -> UpdateSocketGroups -> BuildOutput) does not call ProcessSocketGroup for user groups. So CalcSetup puts the stale values into env.requirementsTableGems:
Possible fix
Call self:ProcessSocketGroup(self.displayGroup) again after gemInstance.level is assigned in the name callback, or compute the level before the first call.
- 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
-
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
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PathOfBuildingCommunity/PathOfBuilding#7548 · 4 bình luận · 1 reaction ·
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