From cc2e90d640f5d7907fe920a27d4988bd0f0259ed Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sat, 5 Jun 2021 02:57:29 +0200 Subject: [PATCH] Fixed Pill names being displayed wrong --- eid_api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index 0745713e..e0a90c3c 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -350,9 +350,9 @@ end -- falls back to english if it doesnt exist function EID:getDescriptionData(Type, Variant, SubType) local fullString = Type.."."..Variant - local moddedDesc = EID:getDescriptionEntry("custom", fullString.."."..SubType) - local tableName = EID:getTableName(Type, Variant, SubType) local adjustedID = EID:getAdjustedSubtype(Type, Variant, SubType) + local moddedDesc = EID:getDescriptionEntry("custom", fullString.."."..adjustedID) + local tableName = EID:getTableName(Type, Variant, adjustedID) local legacyModdedDescription = EID:getLegacyModDescription(Type, Variant, adjustedID) local defaultDesc = EID:getDescriptionEntry(tableName, adjustedID) @@ -425,7 +425,7 @@ end -- tries to get the ingame name of an item based on its ID function EID:getObjectName(Type, Variant, SubType) local tableName = EID:getTableName(Type, Variant, SubType) - local tableEntry = EID:getDescriptionData(Type, Variant, EID:getAdjustedSubtype(Type, Variant, SubType)) + local tableEntry = EID:getDescriptionData(Type, Variant, SubType) local name = nil if tableEntry ~= nil then if tableEntry[2] ~= nil and tableEntry[2] ~= "" and tableEntry[2] ~= EID.descriptions["en_us"][tableName][SubType] then