From 932e17afa9d02077acae659cde0b8b6f3504f58c Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Fri, 21 May 2021 01:42:37 +0200 Subject: [PATCH] Fixes transformation assignment of pills closes #91 --- eid_api.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index b8ce4767..6d04e772 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -358,14 +358,15 @@ end -- Get the transformation uniqueName / ID of a given entity -- Example: EID:getTransformation(5,100,34) will return "12" which is the id for Bookworm function EID:getTransformation(id, variant, subType) - local entityString = id.."."..variant.."."..subType + local adjustedSubtype = EID:getAdjustedSubtype(id, variant, subType) + local entityString = id.."."..variant.."."..adjustedSubtype local listToTest = "" local default = EID.EntityTransformations[entityString] if default~= nil then listToTest = default end local customLegacy = nil if id == 5 and variant == 100 then - customLegacy = __eidItemTransformations[subType] + customLegacy = __eidItemTransformations[adjustedSubtype] if customLegacy~= nil then listToTest = listToTest..","..customLegacy end end