From 682bef87ee8860545c581f42a7fb52bd83c945a2 Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Sat, 5 Nov 2022 17:25:56 +0100 Subject: [PATCH] Fixed some linting issues --- eid_debugging.lua | 2 +- main.lua | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/eid_debugging.lua b/eid_debugging.lua index 5634449c..8eae0358 100644 --- a/eid_debugging.lua +++ b/eid_debugging.lua @@ -213,7 +213,7 @@ local function onDebugRender(t) for i, v in ipairs(charsToDebug) do local pos = EID:getTextPosition() + Vector(-5, - 15 + ((i - 1) * 14)) - EID:renderString(v, pos, Vector(EID.Scale, EID.Scale), KColor(1, 1, 1, 1, 0, 0, 0)) + EID:renderString(v, pos, Vector(EID.Scale, EID.Scale), KColor(1, 1, 1, 1)) if not showDebugChars then break diff --git a/main.lua b/main.lua index 5f0c6186..c7e62fec 100644 --- a/main.lua +++ b/main.lua @@ -800,6 +800,8 @@ end -- RGB colors for each player's highlights (Red, Blue, Green, Yellow) local playerRGB = { {1,0.6,0.6}, {0.5,0.75,1}, {0.5,1,0.75}, {0.9, 0.9, 0.5} } + +---@param entity Entity function EID:renderIndicator(entity, playerNum) if EID.Config["Indicator"] == "none" then return @@ -870,6 +872,7 @@ function EID:renderIndicator(entity, playerNum) end end +---@param entity Entity function EID:PositionLocalMode(entity) -- don't use Local Mode for descriptions without an entity (or dice floors) if (EID.Config["DisplayMode"] == "local" or alwaysUseLocalMode) and entity and entity.Variant ~= EffectVariant.DICE_FLOOR then @@ -1304,7 +1307,7 @@ local function onRender(t) table.insert(searchGroups, Isaac.FindInRadius(sourcePos, tonumber(EID.Config["MaxDistance"])*40, searchPartitions)) for k,_ in pairs(EID.effectList) do - table.insert(searchGroups, Isaac.FindByType(EntityType.ENTITY_EFFECT, k, -1, true, false)) + table.insert(searchGroups, Isaac.FindByType(EntityType.ENTITY_EFFECT, tonumber(k), -1, true, false)) end for _, entitySearch in ipairs(searchGroups) do