Skip to content

Commit d8e2290

Browse files
author
LocalIdentity
committed
Merge branch 'dev' into rename-cryogenesis
2 parents 377d657 + 9cab334 commit d8e2290

110 files changed

Lines changed: 429868 additions & 470 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

fix_ascendancy_positions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __sub__(self, other: Point2D) -> Point2D:
3939
"Trickster": Point2D(10200, -3700),
4040
"Saboteur": Point2D(10200, -2200),
4141
"Ascendant": Point2D(-7800, 7200),
42+
"Reliquarian": Point2D(-7800, 8900),
4243
"Warden": Point2D(8250, 8350),
4344
"Primalist": Point2D(7200, 9400),
4445
"Warlock": Point2D(9300, 7300),
@@ -52,6 +53,7 @@ def __sub__(self, other: Point2D) -> Point2D:
5253
"KingInTheMists": Point2D(3750, 12000),
5354
"Olroth": Point2D(5250, 12000),
5455
"Oshabi": Point2D(6750, 12000),
56+
"Necromantic": Point2D(8250, 12000),
5557
}
5658
EXTRA_NODES = {
5759
"Necromancer": [{"Node": {"name": "Nine Lives", "icon": "Art/2DArt/SkillIcons/passives/Ascendants/Int.png", "isNotable": True, "skill" : 27602},

src/Classes/ImportTab.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ local ImportTabClass = newClass("ImportTab", "ControlHost", "Control", function(
7070
end
7171
self.controls.accountNameGo.tooltipFunc = function(tooltip)
7272
tooltip:Clear()
73-
if not self.controls.accountName.buf:match("[#%-]%d%d%d%d$") then
73+
if not self.controls.accountName.buf:match("[#%-]%d%d%d%d$") and self.controls.accountName.buf ~= "" then
7474
tooltip:AddLine(16, "^7Missing discriminator e.g. " .. self.controls.accountName.buf .. "#1234")
7575
end
7676
end
@@ -97,7 +97,7 @@ local ImportTabClass = newClass("ImportTab", "ControlHost", "Control", function(
9797

9898
self.controls.accountNameMissingDiscriminator = new("LabelControl", {"TOPLEFT",self.controls.accountName,"BOTTOMLEFT"}, {0, 8, 0, 16}, "^1Missing discriminator e.g. #1234")
9999
self.controls.accountNameMissingDiscriminator.shown = function()
100-
return not self.controls.accountName.buf:match("[#%-]%d%d%d%d$")
100+
return not self.controls.accountName.buf:match("[#%-]%d%d%d%d$") and self.controls.accountName.buf ~= ""
101101
end
102102

103103
self.controls.accountNameUnicode = new("LabelControl", {"TOPLEFT",self.controls.accountRealm,"BOTTOMLEFT"}, {0, 34, 0, 14}, "^7Note: if the account name contains non-ASCII characters it must be pasted into the textbox,\nnot typed manually.")
@@ -542,7 +542,7 @@ function ImportTabClass:BuildCharacterList(league)
542542
elseif (charClass == "Juggernaut" or charClass == "Berserker" or charClass == "Chieftain" or
543543
charClass == "Antiquarian" or charClass == "Behemoth" or charClass == "Ancestral Commander") then
544544
classColor = colorCodes["MARAUDER"]
545-
elseif (charClass == "Ascendant" or charClass == "Scavenger") then
545+
elseif (charClass == "Ascendant" or charClass == "Reliquarian" or charClass == "Scavenger") then
546546
classColor = colorCodes["SCION"]
547547
end
548548
end

src/Classes/Item.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
756756
self.prefixes.limit = (self.prefixes.limit or 0) + (tonumber(lineLower:match("%+(%d+) prefix modifiers? allowed")) or 0) - (tonumber(lineLower:match("%-(%d+) prefix modifiers? allowed")) or 0)
757757
elseif lineLower:match(" suffix modifiers? allowed") then
758758
self.suffixes.limit = (self.suffixes.limit or 0) + (tonumber(lineLower:match("%+(%d+) suffix modifiers? allowed")) or 0) - (tonumber(lineLower:match("%-(%d+) suffix modifiers? allowed")) or 0)
759-
elseif lineLower == "this item can be anointed by cassia" then
759+
elseif lineLower:find("can be anointed") then -- blight uniques and Cord Belt
760760
self.canBeAnointed = true
761761
elseif lineLower == "can have a second enchantment modifier" then
762762
self.canHaveTwoEnchants = true

src/Classes/ItemsTab.lua

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ for _, entry in pairs(data.flavourText) do
5656
end
5757
end
5858

59+
local function isAnointable(item)
60+
return (item.canBeAnointed or item.base.type == "Amulet")
61+
end
5962

6063
local ItemsTabClass = newClass("ItemsTab", "UndoHandler", "ControlHost", "Control", function(self, build)
6164
self.UndoHandler()
@@ -438,7 +441,7 @@ holding Shift will put it in the second.]])
438441
self.controls.displayItemAddSocket.shown = function()
439442
return #self.displayItem.sockets < self.displayItem.selectableSocketCount + self.displayItem.abyssalSocketCount
440443
end
441-
444+
442445
-- Section: Enchant / Anoint / Corrupt
443446
self.controls.displayItemSectionEnchant = new("Control", {"TOPLEFT",self.controls.displayItemSectionSockets,"BOTTOMLEFT"}, {0, 0, 0, function()
444447
return (self.controls.displayItemEnchant:IsShown() or self.controls.displayItemEnchant2:IsShown() or self.controls.displayItemAnoint:IsShown() or self.controls.displayItemAnoint2:IsShown() or self.controls.displayItemCorrupt:IsShown() ) and 28 or 0
@@ -459,14 +462,14 @@ holding Shift will put it in the second.]])
459462
self:AnointDisplayItem(1)
460463
end)
461464
self.controls.displayItemAnoint.shown = function()
462-
return self.displayItem and (self.displayItem.base.type == "Amulet" or self.displayItem.canBeAnointed)
465+
return self.displayItem and isAnointable(self.displayItem)
463466
end
464467
self.controls.displayItemAnoint2 = new("ButtonControl", {"TOPLEFT",self.controls.displayItemAnoint,"TOPRIGHT",true}, {8, 0, 100, 20}, "Anoint 2...", function()
465468
self:AnointDisplayItem(2)
466469
end)
467470
self.controls.displayItemAnoint2.shown = function()
468471
return self.displayItem and
469-
(self.displayItem.base.type == "Amulet" or self.displayItem.canBeAnointed) and
472+
isAnointable(self.displayItem) and
470473
self.displayItem.canHaveTwoEnchants and
471474
#self.displayItem.enchantModLines > 0
472475
end
@@ -475,7 +478,7 @@ holding Shift will put it in the second.]])
475478
end)
476479
self.controls.displayItemAnoint3.shown = function()
477480
return self.displayItem and
478-
(self.displayItem.base.type == "Amulet" or self.displayItem.canBeAnointed) and
481+
isAnointable(self.displayItem) and
479482
self.displayItem.canHaveThreeEnchants and
480483
#self.displayItem.enchantModLines > 1
481484
end
@@ -484,7 +487,7 @@ holding Shift will put it in the second.]])
484487
end)
485488
self.controls.displayItemAnoint4.shown = function()
486489
return self.displayItem and
487-
(self.displayItem.base.type == "Amulet" or self.displayItem.canBeAnointed) and
490+
isAnointable(self.displayItem) and
488491
self.displayItem.canHaveFourEnchants and
489492
#self.displayItem.enchantModLines > 2
490493
end
@@ -1582,9 +1585,10 @@ end
15821585
function ItemsTabClass:CreateDisplayItemFromRaw(itemRaw, normalise)
15831586
local newItem = new("Item", itemRaw)
15841587
if newItem.base then
1585-
-- if the new item is an amulet and does not have an anoint and your current amulet does, apply that anoint to the new item
1586-
if newItem.base.type == "Amulet" and #newItem.enchantModLines == 0 and self.activeItemSet["Amulet"].selItemId > 0 then
1587-
local currentAnoint = self.items[self.activeItemSet["Amulet"].selItemId].enchantModLines
1588+
local itemType = newItem.base.type
1589+
-- if the new item is anointable and does not have an anoint and your current respective item does, apply that anoint to the new item
1590+
if isAnointable(newItem) and #newItem.enchantModLines == 0 and self.activeItemSet[itemType].selItemId > 0 then
1591+
local currentAnoint = self.items[self.activeItemSet[itemType].selItemId].enchantModLines
15881592
if currentAnoint and #currentAnoint == 1 then -- skip if amulet has more than one anoint e.g. Stranglegasp
15891593
newItem.enchantModLines = currentAnoint
15901594
newItem:BuildAndParseRaw()

src/Classes/PassiveTree.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,9 @@ local PassiveTreeClass = newClass("PassiveTree", function(self, treeVersion)
531531
end
532532
else
533533
node.type = "Normal"
534-
if (node.ascendancyName == "Ascendant" and not node.isMultipleChoiceOption and not node.dn:find("Dexterity")
534+
if ((node.ascendancyName == "Ascendant" and not node.isMultipleChoiceOption and not node.dn:find("Dexterity")
535535
and not node.dn:find("Intelligence") and not node.dn:find("Strength") and not node.dn:find("Passive"))
536-
or (node.isMultipleChoiceOption and node.ascendancyName) then
536+
or (node.isMultipleChoiceOption and node.ascendancyName)) and node.ascendancyName ~= "Reliquarian" then
537537
local className = self.ascendNameMap[node.ascendancyName].class.name
538538
self.ascendancyMap[node.dn:lower()] = node
539539
if not self.classNotables[className] then

src/Classes/TreeTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
173173
}
174174
t_insert(self.treeVersions, value)
175175
end
176-
self.controls.versionText = new("LabelControl", { "LEFT", self.controls.reset, "RIGHT" }, { 8, 0, 0, 16 }, "Version:")
176+
self.controls.versionText = new("LabelControl", { "LEFT", self.controls.reset, "RIGHT" }, { 8, 0, 0, 16 }, "^7Version:")
177177
self.controls.versionSelect = new("DropDownControl", { "LEFT", self.controls.versionText, "RIGHT" }, { 8, 0, 100, 20 }, self.treeVersions, function(index, selected)
178178
if selected.value ~= self.build.spec.treeVersion then
179179
self:OpenVersionConvertPopup(selected.value, true)
@@ -1019,7 +1019,7 @@ function TreeTabClass:OpenMasteryPopup(node, viewPort)
10191019
main:ClosePopup()
10201020
end)
10211021
controls.effect = new("PassiveMasteryControl", {"TOPLEFT",nil,"TOPLEFT"}, {6, 25, 0, passiveMasteryControlHeight}, effects, self, node, controls.save)
1022-
main:OpenPopup(controls.effect.width + 12, controls.effect.height + 60, node.name, controls)
1022+
main:OpenPopup(controls.effect.width + 12, controls.effect.height + 60, node.name, controls, nil, nil, "close")
10231023
end
10241024
end
10251025

0 commit comments

Comments
 (0)