33--
44local 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 (" ^[^_]+" )
89end
910
1011local 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
5237for row in dat (" UniqueStashLayout" ):Rows () do
0 commit comments