Small code cleanup
This commit is contained in:
1 parent
e2133d935a
commit
8d2b86bcdf
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1572,7 +1572,7 @@ end
|
|||||||
|
|
||||||
-- Returns the quality of the described entity
|
-- Returns the quality of the described entity
|
||||||
function EID:getObjectQuality(descObj)
|
function EID:getObjectQuality(descObj)
|
||||||
if descObj.ObjType == 5 and descObj.ObjVariant == 100 then
|
if REPENTANCE and descObj.ObjType == 5 and descObj.ObjVariant == 100 then
|
||||||
return tonumber(EID.itemConfig:GetCollectible(tonumber(descObj.ObjSubType)).Quality)
|
return tonumber(EID.itemConfig:GetCollectible(tonumber(descObj.ObjSubType)).Quality)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -523,7 +523,6 @@ function EID:printDescription(desc, cachedID)
|
|||||||
end
|
end
|
||||||
local renderPos = EID:getTextPosition()
|
local renderPos = EID:getTextPosition()
|
||||||
|
|
||||||
--print(cachedID)
|
|
||||||
if cachedID then
|
if cachedID then
|
||||||
local localModeDiff = renderPos - EID.CachedRenderPoses[cachedID]
|
local localModeDiff = renderPos - EID.CachedRenderPoses[cachedID]
|
||||||
-- Drawing our currently saved description
|
-- Drawing our currently saved description
|
||||||
@@ -561,6 +560,7 @@ function EID:printDescription(desc, cachedID)
|
|||||||
offsetX = offsetX + 14
|
offsetX = offsetX + 14
|
||||||
EID:renderInlineIcons({{desc.Icon,0}}, renderPos.X - 3 * EID.Scale, renderPos.Y - 4 * EID.Scale)
|
EID:renderInlineIcons({{desc.Icon,0}}, renderPos.X - 3 * EID.Scale, renderPos.Y - 4 * EID.Scale)
|
||||||
end
|
end
|
||||||
|
|
||||||
--Display ItemType / Charge
|
--Display ItemType / Charge
|
||||||
local itemType = -1
|
local itemType = -1
|
||||||
if desc.ObjSubType ~= nil and desc.ObjType == 5 and desc.ObjVariant == 100 then
|
if desc.ObjSubType ~= nil and desc.ObjType == 5 and desc.ObjVariant == 100 then
|
||||||
|
|||||||
Reference in new issue
Block a user