Update eid_api.lua

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-14 02:20:41 -05:00
1 parent fb9d2e7c55
commit a6b4f386da
1 file changed
+1 -3
+1 -3
View File
@@ -299,15 +299,13 @@ end
-- returns the description object of the specified entity
-- falls back to english if the objID isnt available
-- entity is optional
function EID:getDescriptionObj(Type, Variant, SubType, entity)
function EID:getDescriptionObj(Type, Variant, SubType)
local description = {}
description.ObjType = Type
description.ObjVariant = Variant
description.ObjSubType = SubType
description.fullItemString = Type.."."..Variant.."."..description.ObjSubType
description.Name = EID:getObjectName(Type, Variant, description.ObjSubType)
description.Entity = entity or nil
local tableEntry = EID:getDescriptionData(Type, Variant, description.ObjSubType)
description.Description = tableEntry and tableEntry[3] or EID:getXMLDescription(Type, Variant, description.ObjSubType)