Adding Beastcrafts to Item Crafter (#8904)

* Added beastcrafts to item crafter

* Fixed a formatting issue

* Formatting

* Fix end block

* Remove Flask mods as they are the exact same as t3 regular mods

* Move

---------

Co-authored-by: LocalIdentity <localidentity2@gmail.com>
This commit is contained in:
brendan-corrigan
2025-08-01 15:36:10 +08:00
committed by GitHub
parent 7ada228a02
commit f68de28e82
4 changed files with 36 additions and 0 deletions

View File

@@ -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
@@ -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"})

13
src/Data/BeastCraft.lua Normal file
View File

@@ -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" }, },
}

View File

@@ -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.")

View File

@@ -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