Skip to content

Commit 39efe9c

Browse files
health regeneration
1 parent a702066 commit 39efe9c

24 files changed

Lines changed: 599 additions & 136 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# IntelliJ settings
1212
.idea/
1313

14+
# vscode settings
15+
.vscode/
16+
1417
#This is used for the atom build package, enables the build to happen on each save.
1518
.atom-build.yml
1619

.luacheckrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ stds.ecs = {
347347
"C_Debug.TeleportToMapLocation",
348348
"C_Engraving",
349349
"C_Engraving.GetRuneForEquipmentSlot",
350+
"C_EventUtils",
351+
"C_EventUtils.IsEventValid",
350352
"C_FriendList.AddFriend",
351353
"C_FriendList.AddIgnore",
352354
"C_FriendList.AddOrDelIgnore",
@@ -1495,6 +1497,7 @@ stds.ecs = {
14951497
"GetUICameraInfo",
14961498
"GetUITextureKitInfo",
14971499
"GetUnitHealthModifier",
1500+
"GetUnitHealthRegenRateFromSpirit",
14981501
"GetUnitMaxHealthModifier",
14991502
"GetUnitPowerModifier",
15001503
"GetUnitSpeed",
@@ -1742,6 +1745,7 @@ stds.ecs = {
17421745
"KBSystem_GetServerNotice",
17431746
"KBSystem_GetServerStatus",
17441747
"LE_EXPANSION_BURNING_CRUSADE",
1748+
"LE_UNIT_STAT_SPIRIT",
17451749
"LearnTalent",
17461750
"LeaveBattlefield",
17471751
"LeaveChannelByLocalID",

ECS.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ ECS = {...}
55
---@type boolean
66
ECS.IsClassic = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
77

8+
--- Addon is running on Classic "Vanilla" client and on Era realm (non-seasonal)
9+
---@type boolean
10+
ECS.IsEra = ECS.IsClassic and (not C_Seasons.HasActiveSeason())
11+
812
--- Addon is running on Classic TBC client
913
---@type boolean
1014
ECS.IsTBC = WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC

ExtendedCharacterStats-BCC.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Interface: 20505
2-
## Title: Extended Character Stats v5.0.0
3-
## Version: 5.0.0
2+
## Title: Extended Character Stats v5.1.0
3+
## Version: 5.1.0
44
## Author: BreakBB, Ethulu
55
## Notes: Displays an extra window with more information about your characters stats ( Crit/Hit/Block etc )
66
## Notes-esMX: Muestra una ventana adicional con más información sobre las estadísticas de tus personajes (Crítico/Golpe/Bloqueo, etc.)

ExtendedCharacterStats-Classic.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Interface: 11508
2-
## Title: Extended Character Stats v5.0.0
3-
## Version: 5.0.0
2+
## Title: Extended Character Stats v5.1.0
3+
## Version: 5.1.0
44
## Author: BreakBB, Ethulu
55
## Notes: Displays an extra window with more information about your characters stats ( Crit/Hit/Block etc )
66
## Notes-esMX: Muestra una ventana adicional con más información sobre las estadísticas de tus personajes (Crítico/Golpe/Bloqueo, etc.)

ExtendedCharacterStats-WOTLKC.toc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Interface: 38000
2-
## Title: Extended Character Stats v5.0.0
3-
## Version: 5.0.0
2+
## Title: Extended Character Stats v5.1.0
3+
## Version: 5.1.0
44
## Author: BreakBB, Ethulu
55
## Notes: Displays an extra window with more information about your characters stats ( Crit/Hit/Block etc )
66
## Notes-esMX: Muestra una ventana adicional con más información sobre las estadísticas de tus personajes (Crítico/Golpe/Bloqueo, etc.)

Modules/Config/GeneralSection.lua

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,32 @@ function _Config:LoadGeneralSection()
4040
Stats.RebuildStatInfos()
4141
end,
4242
},
43+
healthRegeneration = {
44+
type = "toggle",
45+
order = 2,
46+
name = function() return i18n("Health Regeneration") end,
47+
desc = function() return i18n("Shows/Hides the health regeneration value.") end,
48+
width = 1.5,
49+
disabled = function() return (not ExtendedCharacterStats.profile.general.display); end,
50+
get = function () return ExtendedCharacterStats.profile.general.healthRegeneration.display; end,
51+
set = function (_, value)
52+
ExtendedCharacterStats.profile.general.healthRegeneration.display = value
53+
Stats.RebuildStatInfos()
54+
end,
55+
},
56+
healthRegenerationCombat = {
57+
type = "toggle",
58+
order = 2.1,
59+
name = function() return i18n("Combat Health Regeneration") end,
60+
desc = function() return i18n("Shows/Hides the combat health regeneration value.") end,
61+
width = 1.5,
62+
disabled = function() return (not ExtendedCharacterStats.profile.general.display); end,
63+
get = function () return ExtendedCharacterStats.profile.general.healthRegenerationCombat.display; end,
64+
set = function (_, value)
65+
ExtendedCharacterStats.profile.general.healthRegenerationCombat.display = value
66+
Stats.RebuildStatInfos()
67+
end,
68+
},
4369
},
4470
}
4571
end

Modules/Data/Constants.lua

Lines changed: 189 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,90 @@ Data.Aura = {
6464
[17800] = (ECS.IsWotlk and -5 or nil), -- Shadow Mastery 5/5
6565
[22959] = (ECS.IsWotlk and -5 or nil), -- Improved Scorch
6666
},
67+
HealthRegen = {
68+
[433] = 17, -- Food
69+
[434] = 58, -- Food
70+
[435] = 115, -- Food
71+
[1127] = 162, -- Food
72+
[1129] = 232, -- Food
73+
[1131] = 358, -- Food
74+
[2639] = 70, -- Food
75+
[5004] = 17, -- Food
76+
[5005] = 58, -- Food
77+
[5006] = 115, -- Food
78+
[5007] = 162, -- Food
79+
[6410] = 70, -- Food
80+
[7737] = 10, -- Food
81+
[9177] = 134, -- Tigule's Strawberry Ice Cream
82+
[10256] = 232, -- Food
83+
[10257] = 358, -- Food
84+
[12732] = 13, -- Shard of Afrasa
85+
[13787] = 7, -- Demon Armor
86+
[18124] = 358, -- Blessed Sunfruit
87+
[18229] = 162, -- Food
88+
[18230] = 162, -- Food
89+
[18231] = 162, -- Food
90+
[18232] = 162, -- Food
91+
[18233] = 162, -- Food
92+
[18234] = (ECS.IsClassic and 358 or 720), -- Food
93+
[20798] = 3, -- Demon Skin
94+
[21149] = 17, -- Egg Nog
95+
[22731] = 358, -- Food
96+
[24800] = 358, -- Food
97+
[25660] = (ECS.IsClassic and 425 or 720), -- Food
98+
[25695] = 358, -- Food
99+
[25697] = 358, -- Old Enriched Manna Biscuit
100+
[25700] = 37, -- Food
101+
[25702] = 90, -- Food
102+
[25886] = 135, -- Food
103+
[25888] = 200, -- Food
104+
[26030] = 358, -- Windblossom Berries
105+
[26260] = 735, -- Food
106+
[26401] = (ECS.IsClassic and 425 or 720), -- Food
107+
[26472] = 268, -- Food
108+
[26474] = 37, -- Food
109+
[28616] = 597, -- Food
110+
[29008] = 358, -- Food
111+
[29038] = 200, -- Fizzy Energy Drink
112+
[29041] = 368, -- Tasty Summer Treat
113+
[29073] = (ECS.IsClassic and 530 or 720), -- Food
114+
[446713] = 538, -- Food
115+
[470362] = 358, -- Food
116+
[470369] = 232, -- Food
117+
[1225769] = 425, -- Food
118+
[1225771] = 425, -- Food
119+
[1225772] = 425, -- Food
120+
[1225774] = 425, -- Food
121+
},
122+
HealthRegenModifier = {
123+
[3150] = -0.5, -- Rabies
124+
[8384] = 0.5, -- Pure Water
125+
[16143] = (ECS.IsWotlk and -0.5 or -1), -- Cadaver Worms
126+
[16573] = (ECS.IsWotlk and -0.5 or -1), -- Putrid Bile
127+
[24705] = (ECS.IsClassic and 0.25 or nil), -- Invocation of the Wickerman
128+
[25794] = 1, -- Ahn'Qiraj Reward Buff (Melee - 20)
129+
[25795] = 1, -- Ahn'Qiraj Reward Buff (Melee - 40)
130+
[25796] = 1, -- Ahn'Qiraj Reward Buff (Melee - 60)
131+
[30843] = -1, -- Enfeeble
132+
[41292] = -1, -- Aura of Suffering
133+
[430493] = -0.99, -- WoW Variety Show - Unhealthy!
134+
},
135+
IsFelOrDemonArmor = {
136+
[706] = true,
137+
[1086] = true,
138+
[11733] = true,
139+
[11734] = true,
140+
[11735] = true,
141+
[27260] = true,
142+
[28176] = true,
143+
[28189] = true,
144+
[44520] = true,
145+
[44977] = true,
146+
[47793] = true,
147+
[47889] = true,
148+
[47892] = true,
149+
[47893] = true,
150+
},
67151
IsFeralForm = {
68152
[768] = true, -- Cat Form
69153
[5487] = true, -- Bear Form
@@ -222,15 +306,15 @@ Data.Aura = {
222306
[10491] = (ECS.IsWotlk and 5/2 or nil), -- Mana Spring rank 2
223307
[10493] = (ECS.IsWotlk and 5/2 or nil), -- Mana Spring rank 3
224308
[10494] = (ECS.IsWotlk and 5/2 or nil), -- Mana Spring rank 4
225-
[19742] = ((ECS.IsTBC or ECS.IsWotlk) and 1 or nil), -- Blessing of Wisdom rank 1
226-
[19850] = ((ECS.IsTBC or ECS.IsWotlk) and 1 or nil), -- Blessing of Wisdom rank 2
227-
[19852] = ((ECS.IsTBC or ECS.IsWotlk) and 1 or nil), -- Blessing of Wisdom rank 3
228-
[19853] = ((ECS.IsTBC or ECS.IsWotlk) and 1 or nil), -- Blessing of Wisdom rank 4
229-
[19854] = ((ECS.IsTBC or ECS.IsWotlk) and 1 or nil), -- Blessing of Wisdom rank 5
230-
[25290] = ((ECS.IsTBC or ECS.IsWotlk) and 1 or nil), -- Blessing of Wisdom rank 6
309+
[19742] = (ECS.IsClassic and nil or 1), -- Blessing of Wisdom rank 1
310+
[19850] = (ECS.IsClassic and nil or 1), -- Blessing of Wisdom rank 2
311+
[19852] = (ECS.IsClassic and nil or 1), -- Blessing of Wisdom rank 3
312+
[19853] = (ECS.IsClassic and nil or 1), -- Blessing of Wisdom rank 4
313+
[19854] = (ECS.IsClassic and nil or 1), -- Blessing of Wisdom rank 5
314+
[25290] = (ECS.IsClassic and nil or 1), -- Blessing of Wisdom rank 6
231315
[25569] = (ECS.IsWotlk and 5/2 or nil), -- Mana Spring rank 5
232-
[25894] = ((ECS.IsTBC or ECS.IsWotlk) and 1 or nil), -- Greater Blessing of Wisdom rank 1
233-
[25918] = ((ECS.IsTBC or ECS.IsWotlk) and 1 or nil), -- Greater Blessing of Wisdom rank 2
316+
[25894] = (ECS.IsClassic and nil or 1), -- Greater Blessing of Wisdom rank 1
317+
[25918] = (ECS.IsClassic and nil or 1), -- Greater Blessing of Wisdom rank 2
234318
[27142] = 1, -- Blessing of Wisdom rank 7
235319
[27143] = 1, -- Greater Blessing of Wisdom rank 3
236320
[48935] = 1, -- Blessing of Wisdom rank 8
@@ -242,13 +326,83 @@ Data.Aura = {
242326
[58776] = 5/2, -- Mana Spring rank 7
243327
[58777] = 5/2, -- Mana Spring rank 8
244328
},
329+
PercentageHealthRegen = {
330+
[1234] = 1.01*5, -- Tony's God Mode
331+
[1908] = (ECS.IsClassic and 1/3 or 1/0.5)*5, -- Uber Heal Over Time
332+
[16488] = (ECS.IsWotlk and 0.01/3 or 0.01/6)*5, -- Blood Craze Rank 1
333+
[16490] = (ECS.IsWotlk and 0.01/1.5 or 0.01/3)*5, -- Blood Craze Rank 2
334+
[16491] = (ECS.IsWotlk and 0.01 or 0.01/2)*5, -- Blood Craze Rank 3
335+
[18790] = (ECS.IsClassic and 0.03 or 0.02)/4*5, -- Fel Stamina
336+
[20578] = 0.07/2*5, -- Cannibalize
337+
[24005] = 0.02*5, -- Food
338+
[24707] = 0.03*5, -- Food
339+
[24869] = 0.02*5, -- Food
340+
[25990] = 0.05*5, -- Graccu's Mince Meat Fruitcake
341+
[26263] = 0.04*5, -- Dim Sum
342+
[28176] = (ECS.IsWotlk and 0.02/5*5 or nil), -- Fel Armor Rank 1
343+
[28189] = (ECS.IsWotlk and 0.02/5*5 or nil), -- Fel Armor Rank 2
344+
[29055] = 0.04*5, -- Refreshing Red Apple
345+
[29841] = 0.01/2*5, -- Second Wind
346+
[29842] = 0.02/2*5, -- Second Wind
347+
[29963] = 0.06*5, -- Mass Polymorph
348+
[30839] = 1/3*5, -- Debuff Uber Heal Over Time
349+
[30874] = 0.05*5, -- Gift of the Water Spirit
350+
[36506] = 0.05*5, -- Energy Charge
351+
[37460] = 0.05*5, -- Regeneration
352+
[37709] = 0.04/2*5, -- Wild Regeneration
353+
[38730] = 0.09/2*5, -- Refreshing Mist
354+
[39578] = 0.05*5, -- Spirit Bond
355+
[40503] = 0.2*5, -- Possession Transfer
356+
[41962] = 0.2*5, -- Possession Transfer
357+
[42771] = 0.01*5, -- Second Wind
358+
[47892] = 0.02/5*5, -- Fel Armor Rank 3
359+
[47893] = 0.02/5*5, -- Fel Armor Rank 4
360+
[48082] = 0.05/5*5, -- Seed Pod
361+
[48591] = 1*5, -- Periodic Heal Full Health Self
362+
[48775] = 0.05*5, -- Healing Beam
363+
[52011] = 0.04/2*5, -- Renewing Beam
364+
[52067] = 0.04/2*5, -- Aura of Regeneration
365+
[52979] = 0.05*5, -- Frigid Absorbtion
366+
[53073] = 0.02*5, -- Worgen's Blood
367+
[53087] = 0.02*5, -- Worgen's Blood
368+
[53088] = 0.02*5, -- Worgen's Blood
369+
[53089] = 0.02*5, -- Worgen's Blood
370+
[53642] = 0.2*5, -- The Might of Mograine
371+
[55549] = 0.1/2*5, -- Healing Winds
372+
[55694] = 0.03*5, -- Enraged Regeneration
373+
[57056] = 0.04/2*5, -- Aura of Regeneration
374+
[58026] = 0.1/2*5, -- Blessing of the Crusade
375+
[58361] = 0.25/2*5, -- The Might of Mograine
376+
[60509] = 0.1*5, -- Strength of Wrynn
377+
[60964] = 0.25*5, -- Strength of Wrynn
378+
[61212] = 0.25*5, -- Warchief's Blessing
379+
[61874] = 0.02*5, -- Food
380+
[64660] = 0.3*5, -- First Aid Kit
381+
[64670] = 0.25*5, -- Warchief's Blessing
382+
[69634] = 0.05/2*5, -- Taste of Blood
383+
[71068] = 0.04*5, -- Food
384+
[71071] = 0.04*5, -- Food
385+
[71073] = 0.04/5, -- Food
386+
[71953] = 0.03/3*5, -- Radiance Aura
387+
[74079] = 0.25*5, -- Elemental Blessing
388+
[74503] = 0.25*5, -- Surgeon General's Warding
389+
[75341] = 0.25*5, -- Elemental Blessing
390+
[402913] = 0.04*5, -- Enraged Regeneration
391+
[403619] = 0.02, -- Fel Armor
392+
[413433] = 1.01/5*5, -- Degreelessness Mode
393+
[413548] = 1.01, -- Degreelessness Mode
394+
[437791] = 0.2*5, -- Ritual Leader
395+
[449879] = 0.06*5, -- Dream Fog
396+
[1226808] = 0.05*5, -- Food
397+
[1231444] = 0.04/2*5, -- Eat Apple
398+
},
245399
PercentageMp5 = {
246-
[12051] = ((ECS.IsTBC or ECS.IsWotlk) and 0.15/2*5 or nil), -- Evocation
247-
[18792] = ((ECS.IsTBC or ECS.IsWotlk) and 0.03/4 or 0.02/4)*5, -- Fel Energy
400+
[12051] = (ECS.IsClassic and nil or 0.15/2*5), -- Evocation
401+
[18792] = (ECS.IsClassic and 0.02/4 or 0.03/4)*5, -- Fel Energy
248402
[24355] = 0.02*5, -- Drink
249403
[24707] = 0.03*5, -- Food
250404
[25990] = 0.05*5, -- Graccu's Mince Meat Fruitcake
251-
[26263] = ((ECS.IsTBC or ECS.IsWotlk) and 0.03 or 0.04)*5, -- Dim Sum
405+
[26263] = (ECS.IsClassic and 0.04 or 0.03)*5, -- Dim Sum
252406
[29055] = 0.04*5, -- Refreshing Red Apple
253407
[30024] = 0.2*5, -- Drink
254408
[30254] = 0.05*5, -- Evocation
@@ -325,19 +479,19 @@ Data.Aura = {
325479
[10491] = (ECS.IsWotlk and nil or 5/2), -- Mana Spring rank 2
326480
[10493] = (ECS.IsWotlk and nil or 5/2), -- Mana Spring rank 3
327481
[10494] = (ECS.IsWotlk and nil or 5/2), -- Mana Spring rank 4
328-
[19742] = ((ECS.IsTBC or ECS.IsWotlk) and nil or 1), -- Blessing of Wisdom rank 1
329-
[19850] = ((ECS.IsTBC or ECS.IsWotlk) and nil or 1), -- Blessing of Wisdom rank 2
330-
[19852] = ((ECS.IsTBC or ECS.IsWotlk) and nil or 1), -- Blessing of Wisdom rank 3
331-
[19853] = ((ECS.IsTBC or ECS.IsWotlk) and nil or 1), -- Blessing of Wisdom rank 4
332-
[19854] = ((ECS.IsTBC or ECS.IsWotlk) and nil or 1), -- Blessing of Wisdom rank 5
482+
[19742] = (ECS.IsClassic and 1 or nil), -- Blessing of Wisdom rank 1
483+
[19850] = (ECS.IsClassic and 1 or nil), -- Blessing of Wisdom rank 2
484+
[19852] = (ECS.IsClassic and 1 or nil), -- Blessing of Wisdom rank 3
485+
[19853] = (ECS.IsClassic and 1 or nil), -- Blessing of Wisdom rank 4
486+
[19854] = (ECS.IsClassic and 1 or nil), -- Blessing of Wisdom rank 5
333487
[24853] = 5/2, -- Mana Spring
334-
[25290] = ((ECS.IsTBC or ECS.IsWotlk) and nil or 1), -- Blessing of Wisdom rank 6
488+
[25290] = (ECS.IsClassic and 1 or nil), -- Blessing of Wisdom rank 6
335489
[25569] = (ECS.IsWotlk and nil or 5/2), -- Mana Spring rank 5
336-
[25894] = ((ECS.IsTBC or ECS.IsWotlk) and nil or 1), -- Greater Blessing of Wisdom rank 1
337-
[25918] = ((ECS.IsTBC or ECS.IsWotlk) and nil or 1), -- Greater Blessing of Wisdom rank 2
490+
[25894] = (ECS.IsClassic and 1 or nil), -- Greater Blessing of Wisdom rank 1
491+
[25918] = (ECS.IsClassic and 1 or nil), -- Greater Blessing of Wisdom rank 2
338492
},
339493
SpellCrit = {
340-
[24907] = ((ECS.IsTBC or ECS.IsWotlk) and 5 or nil), -- Moonkin Aura
494+
[24907] = (ECS.IsClassic and nil or 5), -- Moonkin Aura
341495
[29177] = 6, -- Elemental Devastation Rank 2
342496
[29178] = 9, -- Elemental Devastation Rank 3
343497
[30165] = 3, -- Elemental Devastation Rank 1
@@ -355,6 +509,10 @@ Data.Enchant = {
355509
[3849] = 81, -- Titanium Plating
356510
[7633] = 15, -- Presence of Valor
357511
},
512+
CombatHealthRegen = {
513+
[2656] = 4, -- Enchant Boots - Vitality
514+
[3244] = 7, -- Enchant Boots - Greater Vitality
515+
},
358516
Ids = {
359517
BIZNICK_SCOPE = 2523, -- 3% Hit from Biznicks 247x128 Accurascope
360518
},
@@ -460,3 +618,14 @@ Data.setNames = {
460618
VESTMENTS_OF_TRANSCENDENCE = "Vestments of Transcendence",
461619
WINDHAWK_ARMOR = "Windhawk Armor",
462620
}
621+
Data.SpiritToHP5Constants = {
622+
[Data.DRUID] = {0.09, 6.5},
623+
[Data.HUNTER] = {0.25, 6},
624+
[Data.MAGE] = {0.10, 6},
625+
[Data.PALADIN] = {0.25, 6},
626+
[Data.PRIEST] = {0.10, 6},
627+
[Data.ROGUE] = {0.50, 2},
628+
[Data.SHAMAN] = {0.11, 7},
629+
[Data.WARLOCK] = {0.07, 6},
630+
[Data.WARRIOR] = {0.80, 6},
631+
}

Modules/Data/Data.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ end
1919

2020
dataFunctionRefs = {
2121
["MovementSpeed"] = function() return Data:GetMovementSpeed() end,
22+
["HealthRegen"] = function()
23+
local hp5, _ = Data:GetHP5()
24+
return hp5
25+
end,
26+
["HealthRegenCombat"] = function()
27+
local _, hp5 = Data:GetHP5()
28+
return hp5
29+
end,
2230
-- Melee
2331
["MeleeAttackPower"] = function() return Data:GetMeleeAttackPower() end,
2432
["MeleeCritChance"] = function() return Data:MeleeCrit() end,

Modules/Data/DataUtils.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ end
105105
---@return number|nil
106106
function DataUtils:GetEnchantFromItemLink(itemLink)
107107
if itemLink then
108-
local _, itemStringLink = GetItemInfo(itemLink)
108+
local _, itemStringLink = C_Item.GetItemInfo(itemLink)
109109
if itemStringLink then
110110
local _, _, enchant = string.find(itemStringLink, "item:%d+:(%d*)")
111111
return tonumber(enchant)
@@ -132,7 +132,7 @@ end
132132
---@return number | nil, number | nil, number | nil
133133
function DataUtils:GetSocketedGemsFromItemLink(itemLink)
134134
if itemLink then
135-
local _, itemStringLink = GetItemInfo(itemLink)
135+
local _, itemStringLink = C_Item.GetItemInfo(itemLink)
136136
if itemStringLink then
137137
local _, _, gem1, gem2, gem3 = string.find(itemStringLink, "item:%d*:%d*:(%d*):(%d*):(%d*)")
138138
return gem1, gem2, gem3

0 commit comments

Comments
 (0)