From f06cd11f165f79f7dd9185e91a43784a70b1dd67 Mon Sep 17 00:00:00 2001 From: lili-ffxi <40600148+lili-ffxi@users.noreply.github.com> Date: Sat, 27 Apr 2024 14:17:57 +0100 Subject: [PATCH] Update helper_functions.lua Preserve numerical values for spell.skill and spell.element as they're potentially useful in multiple scenarios, most often when comparing stuff against resources --- addons/GearSwap/helper_functions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/GearSwap/helper_functions.lua b/addons/GearSwap/helper_functions.lua index 1afaa222c..68f82c909 100644 --- a/addons/GearSwap/helper_functions.lua +++ b/addons/GearSwap/helper_functions.lua @@ -1072,10 +1072,12 @@ function spell_complete(rline) end if rline.skill and tonumber(rline.skill) then + rline.skill_id = rline.skill rline.skill = res.skills[rline.skill][language] end if rline.element and tonumber(rline.element) then + rline.element_id = rline.element rline.element = res.elements[rline.element][language] end