1 parent
8e7465bb1d
commit
932e17afa9
1 file changed
+3
-2
+3
-2
@@ -358,14 +358,15 @@ end
|
|||||||
-- Get the transformation uniqueName / ID of a given entity
|
-- Get the transformation uniqueName / ID of a given entity
|
||||||
-- Example: EID:getTransformation(5,100,34) will return "12" which is the id for Bookworm
|
-- Example: EID:getTransformation(5,100,34) will return "12" which is the id for Bookworm
|
||||||
function EID:getTransformation(id, variant, subType)
|
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 listToTest = ""
|
||||||
local default = EID.EntityTransformations[entityString]
|
local default = EID.EntityTransformations[entityString]
|
||||||
if default~= nil then listToTest = default end
|
if default~= nil then listToTest = default end
|
||||||
|
|
||||||
local customLegacy = nil
|
local customLegacy = nil
|
||||||
if id == 5 and variant == 100 then
|
if id == 5 and variant == 100 then
|
||||||
customLegacy = __eidItemTransformations[subType]
|
customLegacy = __eidItemTransformations[adjustedSubtype]
|
||||||
if customLegacy~= nil then listToTest = listToTest..","..customLegacy end
|
if customLegacy~= nil then listToTest = listToTest..","..customLegacy end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user