Added config option to display object ids in the description text
This commit is contained in:
1 parent
b60c32df85
commit
cee5f1c85d
3 files changed
+38
-1
No files matched your search
@@ -137,4 +137,15 @@ local game = Game()
|
||||
EID:addDescriptionModifier("Golden Trinket", GoldenTrinketCondition, GoldenTrinketCallback)
|
||||
|
||||
|
||||
|
||||
-- Handle ItemID
|
||||
local function ItemIDCondition(descObj)
|
||||
return EID.Config["ShowObjectID"] and descObj.ObjType > 0
|
||||
end
|
||||
|
||||
local function ItemIDCallback(descObj)
|
||||
descObj.Name = descObj.Name.."{{ColorGray}} "..descObj.ObjType.."."..descObj.ObjVariant.."."..descObj.ObjSubType
|
||||
return descObj
|
||||
end
|
||||
EID:addDescriptionModifier("ItemID", ItemIDCondition, ItemIDCallback)
|
||||
end
|
||||
Reference in new issue
Block a user