Skip to content

Commit 5eb5b28

Browse files
LocalIdentityLocalIdentity
andauthored
Add Weapon requirements to gem tooltip (#1017)
The gem tooltip now shows the weapon requirements for a skill if it has one It has annoyed me for a while that we don't show this. Should show the same thing for PoB 1 too Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 62c7677 commit 5eb5b28

File tree

3 files changed

+143
-0
lines changed

3 files changed

+143
-0
lines changed

src/Classes/GemSelectControl.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,9 @@ function GemSelectClass:AddGrantedEffectInfo(gemInstance, grantedEffect, addReq)
637637
if grantedEffectLevel.critChance then
638638
self.tooltip:AddLine(16, string.format("^x7F7F7FCritical Hit Chance: ^7%.2f%%", grantedEffectLevel.critChance))
639639
end
640+
if gemInstance.gemData.weaponRequirements then
641+
self.tooltip:AddLine(16, "^x7F7F7F Requires: ^7" .. gemInstance.gemData.weaponTypesString)
642+
end
640643
end
641644
if addReq and displayInstance.quality > 0 then
642645
self.tooltip:AddLine(16, string.format("^x7F7F7FQuality: "..colorCodes.MAGIC.."+%d%%^7%s",

0 commit comments

Comments
 (0)