Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2691,6 +2691,23 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
return a.defaultOrder < b.defaultOrder
end
end)
elseif sourceId == "BEASTCRAFT" then
for i, mod in pairs(self.build.data.beastCraft) do
t_insert(modList, {
label = table.concat(mod, "/") .. " (" .. mod.type .. ")",
mod = mod,
affixType = mod.type,
type = "custom",
defaultOrder = i,
})
end
table.sort(modList, function(a, b)
if a.affixType ~= b.affixType then
return a.affixType == "Prefix" and b.affixType == "Suffix"
else
return a.defaultOrder < b.defaultOrder
end
end)
end
end
if self.displayItem.type ~= "Tincture" then
Expand All @@ -2700,6 +2717,7 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
if self.displayItem.type ~= "Jewel" and self.displayItem.type ~= "Flask" then
t_insert(sourceList, { label = "Essence", sourceId = "ESSENCE" })
t_insert(sourceList, { label = "Veiled", sourceId = "VEILED"})
t_insert(sourceList, { label = "Beastcraft", sourceId = "BEASTCRAFT" })
end
if self.displayItem.type == "Helmet" or self.displayItem.type == "Body Armour" or self.displayItem.type == "Gloves" or self.displayItem.type == "Boots" then
t_insert(sourceList, { label = "Necropolis", sourceId = "NECROPOLIS"})
Expand Down
13 changes: 13 additions & 0 deletions src/Data/BeastCraft.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games

return {
["GrantsCatAspectCrafted"] = { type = "Suffix", affix = "of Farrul", "Grants Level 20 Aspect of the Cat Skill", statOrder = { 597 }, level = 20, group = "GrantsCatAspect", weightKey = { "default", }, weightVal = { 0 }, modTags = { "skill" }, },
["GrantsBirdAspectCrafted"] = { type = "Suffix", affix = "of Saqawal", "Grants Level 20 Aspect of the Avian Skill", statOrder = { 593 }, level = 20, group = "GrantsBirdAspect", weightKey = { "default", }, weightVal = { 0 }, modTags = { "skill" }, },
["GrantsSpiderAspectCrafted"] = { type = "Suffix", affix = "of Fenumus", "Grants Level 20 Aspect of the Spider Skill", statOrder = { 621 }, level = 20, group = "GrantsSpiderAspect", weightKey = { "default", }, weightVal = { 0 }, modTags = { "skill" }, },
["GrantsCrabAspectCrafted"] = { type = "Suffix", affix = "of Craiceann", "Grants Level 20 Aspect of the Crab Skill", statOrder = { 599 }, level = 20, group = "GrantsCrabAspect", weightKey = { "default", }, weightVal = { 0 }, modTags = { "blue_herring", "skill" }, },
["GrantsCatAspectCrafted30"] = { type = "Suffix", affix = "of Farrul", "Grants Level 30 Aspect of the Cat Skill", statOrder = { 597 }, level = 20, group = "GrantsCatAspect", weightKey = { "default", }, weightVal = { 0 }, modTags = { "skill" }, },
["GrantsBirdAspectCrafted30"] = { type = "Suffix", affix = "of Saqawal", "Grants Level 30 Aspect of the Avian Skill", statOrder = { 593 }, level = 20, group = "GrantsBirdAspect", weightKey = { "default", }, weightVal = { 0 }, modTags = { "skill" }, },
["GrantsSpiderAspectCrafted30"] = { type = "Suffix", affix = "of Fenumus", "Grants Level 30 Aspect of the Spider Skill", statOrder = { 621 }, level = 20, group = "GrantsSpiderAspect", weightKey = { "default", }, weightVal = { 0 }, modTags = { "skill" }, },
["GrantsCrabAspectCrafted30"] = { type = "Suffix", affix = "of Craiceann", "Grants Level 30 Aspect of the Crab Skill", statOrder = { 599 }, level = 20, group = "GrantsCrabAspect", weightKey = { "default", }, weightVal = { 0 }, modTags = { "blue_herring", "skill" }, },
}
3 changes: 3 additions & 0 deletions src/Export/Scripts/mods.lua
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,8 @@ writeMods("../Data/ModNecropolis.lua", function(mod)
return mod.Domain == 1 and mod.Id:match("^NecropolisCrafting")
end)

writeMods("../Data/BeastCraft.lua", function(mod)
return (mod.Id:match("Aspect") and mod.GenerationType == 2) -- Aspect Crafts
end)

print("Mods exported.")
2 changes: 2 additions & 0 deletions src/Modules/Data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -594,10 +594,12 @@ do
end
data.essences = LoadModule("Data/Essence")
data.veiledMods = LoadModule("Data/ModVeiled")
data.beastCraft = LoadModule("Data/BeastCraft")
data.necropolisMods = LoadModule("Data/ModNecropolis")
data.crucible = LoadModule("Data/Crucible")
data.pantheons = LoadModule("Data/Pantheons")
data.costs = LoadModule("Data/Costs")

do
local map = { }
for i, value in ipairs(data.costs) do
Expand Down