Skip to content

Commit 22704b2

Browse files
authored
Undying Hate Flavour Text (#1296)
1 parent d73a84a commit 22704b2

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

src/Export/Scripts/flavourText.lua

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
--
44
local function normalizeId(id)
55
id = tostring(id)
6-
-- remove trailing underscores only. We can't match Hash sadly.
7-
return id:gsub("_+$", "")
6+
-- Remove underscore and everything after it. We can't match hash sadly.
7+
-- Grip of Kulemak is FourUniqueRing33_a in stash layout and FourUniqueRing33 in flavour text.
8+
return id:match("^[^_]+")
89
end
910

1011
local function cleanAndSplit(str)
@@ -31,22 +32,6 @@ local forcedNameMap = {
3132
["FourUniqueSceptre6a"] = "Guiding Palm of the Heart",
3233
["FourUniqueSceptre6b"] = "Guiding Palm of the Eye",
3334
["FourUniqueSceptre6c"] = "Guiding Palm of the Mind",
34-
["FourUniqueBootsStrDex4"] = "Shankgonne", -- 0.3.0 Uniques are missing from Unique Stash Layout.
35-
["FourUniqueBodyDexInt13"] = "Cospri's Will",
36-
["FourUniqueBelt23"] = "Darkness Enthroned",
37-
["FourUniqueCrossbow5"] = "Double Vision",
38-
["FourUniqueBow9"] = "Fairgraves' Curse",
39-
["FourUniqueBodyStrDex8"] = "Lightning Coil",
40-
["FourUniqueTwoHandMace10"] = "Marohi Erqi",
41-
["FourUniqueGlovesDexInt6"] = "Thunderfist",
42-
["FourUniqueBelt4"] = "Umbilicus Immortalis",
43-
["FourUniqueShieldDex5"] = "Kaltenhalt",
44-
["FourUniqueAmulet21"] = "Hinekora's Sight",
45-
["FourUniqueRing33"] = "Grip of Kulemak",
46-
["FourUniqueJewel12"] = "Heart of the Well",
47-
["FourUniqueLifeFlask1"] = "Blood of the Warrior",
48-
["FourUniqueStaff13"] = "The Unborn Lich",
49-
--["FourUnique"] = "Undying Hate", Unsure, flavour text per conqueror.
5035
}
5136

5237
for row in dat("UniqueStashLayout"):Rows() do

0 commit comments

Comments
 (0)