Skip to content

Commit

Permalink
add support for new charm assets (#6905)
Browse files Browse the repository at this point in the history
  • Loading branch information
Regisle authored Dec 5, 2023
1 parent 06562f4 commit 33a107f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Classes/PassiveTree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
self.assets["AzmiriJewelFrameUnallocated"] = {[0.3835]="https://web.poecdn.com/gen/image/WzIyLCJlMzIwYTYwYmNiZTY4ZmQ5YTc2NmE1ZmY4MzhjMDMyNCIseyJ0IjoyNywic3AiOjAuMzgzNX1d/3d68393250/AzmiriJewelFrameUnallocated.png"}
self.assets["AzmiriJewelFrameCanAllocate"] = {[0.3835]="https://web.poecdn.com/gen/image/WzIyLCJlMzIwYTYwYmNiZTY4ZmQ5YTc2NmE1ZmY4MzhjMDMyNCIseyJ0IjoyNywic3AiOjAuMzgzNX1d/3d68393250/AzmiriJewelFrameCanAllocate.png"}
self.assets["AzmiriJewelFrameAllocated"] = {[0.3835]="https://web.poecdn.com/gen/image/WzIyLCJlMzIwYTYwYmNiZTY4ZmQ5YTc2NmE1ZmY4MzhjMDMyNCIseyJ0IjoyNywic3AiOjAuMzgzNX1d/3d68393250/AzmiriJewelFrameAllocated.png"}
self.assets["CharmSocketActiveStr"] = {[0.3835]="https://web.poecdn.com/gen/image/WzIyLCJlMzIwYTYwYmNiZTY4ZmQ5YTc2NmE1ZmY4MzhjMDMyNCIseyJ0IjoyNywic3AiOjAuMzgzNX1d/3d68393250/CharmSocketActiveStr.png"}
self.assets["CharmSocketActiveInt"] = {[0.3835]="https://web.poecdn.com/gen/image/WzIyLCJlMzIwYTYwYmNiZTY4ZmQ5YTc2NmE1ZmY4MzhjMDMyNCIseyJ0IjoyNywic3AiOjAuMzgzNX1d/3d68393250/CharmSocketActiveInt.png"}
self.assets["CharmSocketActiveDex"] = {[0.3835]="https://web.poecdn.com/gen/image/WzIyLCJlMzIwYTYwYmNiZTY4ZmQ5YTc2NmE1ZmY4MzhjMDMyNCIseyJ0IjoyNywic3AiOjAuMzgzNX1d/3d68393250/CharmSocketActiveDex.png"}
end
end
ConPrintf("Loading passive tree assets...")
Expand Down
8 changes: 6 additions & 2 deletions src/Classes/PassiveTreeView.lua
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,12 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
overlay = node.expansionJewel and "JewelSocketActivePrismaticAlt" or "JewelSocketActivePrismatic"
elseif jewel.base.subType == "Abyss" then
overlay = node.expansionJewel and "JewelSocketActiveAbyssAlt" or "JewelSocketActiveAbyss"
elseif jewel.base.subType == "Charm" then
overlay = node.expansionJewel and "JewelSocketActiveAbyssAlt" or "JewelSocketActiveAbyss"
elseif jewel.base.subType == "Ursine Charm" then
overlay = "CharmSocketActiveStr"
elseif jewel.base.subType == "Corvine Charm" then
overlay = "CharmSocketActiveInt"
elseif jewel.base.subType == "Lupine Charm" then
overlay = "CharmSocketActiveDex"
elseif jewel.baseName == "Timeless Jewel" then
overlay = node.expansionJewel and "JewelSocketActiveLegionAlt" or "JewelSocketActiveLegion"
elseif jewel.baseName == "Large Cluster Jewel" then
Expand Down

0 comments on commit 33a107f

Please sign in to comment.