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
8 changes: 8 additions & 0 deletions src/Classes/ImportTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@

local rarityMap = { [0] = "NORMAL", "MAGIC", "RARE", "UNIQUE", [9] = "RELIC", [10] = "RELIC" }
local slotMap = { ["Weapon"] = "Weapon 1", ["Offhand"] = "Weapon 2", ["Weapon2"] = "Weapon 1 Swap", ["Offhand2"] = "Weapon 2 Swap", ["Helm"] = "Helmet", ["BodyArmour"] = "Body Armour", ["Gloves"] = "Gloves", ["Boots"] = "Boots", ["Amulet"] = "Amulet", ["Ring"] = "Ring 1", ["Ring2"] = "Ring 2", ["Ring3"] = "Ring 3", ["Belt"] = "Belt" }

Check warning on line 819 in src/Classes/ImportTab.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (Brequel)

Check warning on line 819 in src/Classes/ImportTab.lua

View workflow job for this annotation

GitHub Actions / spellcheck

Unknown word (Brequel)
function ImportTabClass:ImportItem(itemData, slotName)
if not slotName then
if itemData.inventoryId == "PassiveJewels" then
Expand Down Expand Up @@ -1032,6 +1032,14 @@
end
end
end
if itemData.mutatedMods then
for _, line in ipairs(itemData.mutatedMods) do
for line in line:gmatch("[^\n]+") do
local modList, extra = modLib.parseMod(line)
t_insert(item.explicitModLines, { line = line, extra = extra, mods = modList or { }, mutated = true })
end
end
end
-- Sometimes flavour text has actual mods that PoB cares about
-- Right now, the only known one is "This item can be anointed by Cassia"
if itemData.flavourText then
Expand Down
4 changes: 4 additions & 0 deletions src/Classes/Item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ end
local lineFlags = {
["crafted"] = true, ["crucible"] = true, ["custom"] = true, ["eater"] = true, ["enchant"] = true,
["exarch"] = true, ["fractured"] = true, ["implicit"] = true, ["scourge"] = true, ["synthesis"] = true,
["mutated"] = true
}

-- Special function to store unique instances of modifier on specific item slots
Expand Down Expand Up @@ -1115,6 +1116,9 @@ function ItemClass:BuildRaw()
if modLine.crucible then
line = "{crucible}" .. line
end
if modLine.mutated then
line = "{mutated}" .. line
end
if modLine.fractured then
line = "{fractured}" .. line
end
Expand Down
1 change: 1 addition & 0 deletions src/Data/Global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ colorCodes = {
SHAPER = "^x55BBFF",
ELDER = "^xAA77CC",
FRACTURED = "^xA29160",
MUTATED = "^xCD2285",
ADJUDICATOR = "^xE9F831",
BASILISK = "^x00CB3A",
CRUSADER = "^x2946FC",
Expand Down
233 changes: 233 additions & 0 deletions src/Data/ModFoulborn.lua

Large diffs are not rendered by default.

Loading
Loading