psygic potion uncontrolled drink

esorochinskiy [05-31-22 - 12:15]
psygic potion uncontrolled drink
Filename
WellEater.lua
lang/en.lua
lang/ru.lua
diff --git a/WellEater.lua b/WellEater.lua
index fdc5e72..7131c81 100644
--- a/WellEater.lua
+++ b/WellEater.lua
@@ -75,6 +75,11 @@ NAMESPACE.blackList = {
     [89683] = true, -- erhöhter Erfahrungsgewinn
     [91369] = true, -- erhöhter Erfahrungsgewinn der Narrenpastete
 }
+
+NAMESPACE.skillUpItems = {
+    [64221] = true   -- Амброзия Псиджиков
+}
+
 -- local functions
 local function getActiveFoodBuff(abilityId)
     if NAMESPACE.blackList[abilityId] then
@@ -105,6 +110,10 @@ local function tryToUseItem(bagId, slotId)
     end
 end

+local function SkillUpItem(itemId)
+    return NAMESPACE.skillUpItems[itemId]
+end
+
 local function processAutoEat()
     if not WellEater:prepareToAnalize() then
         return
@@ -123,7 +132,8 @@ local function processAutoEat()
         local slotId = itemInfo.slotIndex
         if not itemInfo.stolen then
             local itemType, specialType = GetItemType(bagId, slotId)
-            if itemType == ITEMTYPE_FOOD or itemType == ITEMTYPE_DRINK then
+            local itemId = GetItemId(bagId, slotId)
+            if (itemType == ITEMTYPE_FOOD or itemType == ITEMTYPE_DRINK) and not SkillUpItem(itemId) then
                 local icon, stack, sellPrice, meetsUsageRequirement, locked, equipType, itemStyleId, quality = GetItemInfo(bagId, slotId)

                 local maxItemQ = WellEater:getUserPreference("maxQuality")
diff --git a/lang/en.lua b/lang/en.lua
index d0f10d7..c5883d1 100644
--- a/lang/en.lua
+++ b/lang/en.lua
@@ -3,7 +3,7 @@ local L = {
     generalSetupHeader = "Food search criteria to scan your inventory",
     generalSetupDescription = "Auto eat your preferred meals provided by your inventory after food or drink buff expiration",
     foodQualityMinHeader = "Food Quality Min Range",
-    foodQualityMaxHeader = "Food Quality Min Range",
+    foodQualityMaxHeader = "Food Quality Max Range",
     foodGreen = "Normal (green)",
     foodBlue = "Excellent (blue)",
     foodCyan = "Artifact (cyan)",
diff --git a/lang/ru.lua b/lang/ru.lua
index ae75fe7..fa55c67 100644
--- a/lang/ru.lua
+++ b/lang/ru.lua
@@ -12,8 +12,8 @@ local L = {
     timerSetupHeader = "Таймер опроса инвентаря",
     timerSetupLabel = "Период опроса, мс",
     timerSetupLabel_TT = "Как часто инвентарь сканируется на наличие еды." ..
-    "Большее значение - меньше нагрузка но большая вероятность оказаться без еды на некоторое время "..
-    "в критической ситуации",
+    " Большее значение - меньше нагрузка но большая вероятность оказаться без еды на некоторое время"..
+    " в критической ситуации",
 }

 function WellEater:getLocale()