Skip to content

Commit f68de28

Browse files
brendan-corriganLocalIdentity
andauthored
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>
1 parent 7ada228 commit f68de28

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

src/Classes/ItemsTab.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,6 +2691,23 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
26912691
return a.defaultOrder < b.defaultOrder
26922692
end
26932693
end)
2694+
elseif sourceId == "BEASTCRAFT" then
2695+
for i, mod in pairs(self.build.data.beastCraft) do
2696+
t_insert(modList, {
2697+
label = table.concat(mod, "/") .. " (" .. mod.type .. ")",
2698+
mod = mod,
2699+
affixType = mod.type,
2700+
type = "custom",
2701+
defaultOrder = i,
2702+
})
2703+
end
2704+
table.sort(modList, function(a, b)
2705+
if a.affixType ~= b.affixType then
2706+
return a.affixType == "Prefix" and b.affixType == "Suffix"
2707+
else
2708+
return a.defaultOrder < b.defaultOrder
2709+
end
2710+
end)
26942711
end
26952712
end
26962713
if self.displayItem.type ~= "Tincture" then
@@ -2700,6 +2717,7 @@ function ItemsTabClass:AddCustomModifierToDisplayItem()
27002717
if self.displayItem.type ~= "Jewel" and self.displayItem.type ~= "Flask" then
27012718
t_insert(sourceList, { label = "Essence", sourceId = "ESSENCE" })
27022719
t_insert(sourceList, { label = "Veiled", sourceId = "VEILED"})
2720+
t_insert(sourceList, { label = "Beastcraft", sourceId = "BEASTCRAFT" })
27032721
end
27042722
if self.displayItem.type == "Helmet" or self.displayItem.type == "Body Armour" or self.displayItem.type == "Gloves" or self.displayItem.type == "Boots" then
27052723
t_insert(sourceList, { label = "Necropolis", sourceId = "NECROPOLIS"})

src/Data/BeastCraft.lua

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- This file is automatically generated, do not edit!
2+
-- Item data (c) Grinding Gear Games
3+
4+
return {
5+
["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" }, },
6+
["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" }, },
7+
["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" }, },
8+
["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" }, },
9+
["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" }, },
10+
["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" }, },
11+
["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" }, },
12+
["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" }, },
13+
}

src/Export/Scripts/mods.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,8 @@ writeMods("../Data/ModNecropolis.lua", function(mod)
174174
return mod.Domain == 1 and mod.Id:match("^NecropolisCrafting")
175175
end)
176176

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

178181
print("Mods exported.")

src/Modules/Data.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,10 +594,12 @@ do
594594
end
595595
data.essences = LoadModule("Data/Essence")
596596
data.veiledMods = LoadModule("Data/ModVeiled")
597+
data.beastCraft = LoadModule("Data/BeastCraft")
597598
data.necropolisMods = LoadModule("Data/ModNecropolis")
598599
data.crucible = LoadModule("Data/Crucible")
599600
data.pantheons = LoadModule("Data/Pantheons")
600601
data.costs = LoadModule("Data/Costs")
602+
601603
do
602604
local map = { }
603605
for i, value in ipairs(data.costs) do

0 commit comments

Comments
 (0)