Small code cleanup & linting
This commit is contained in:
1 parent
95583c057d
commit
9cbccf5c73
6 files changed
+29
-30
No files matched your search
+5
-5
@@ -478,14 +478,14 @@ if REPENTANCE then
|
||||
end
|
||||
if pickupHistory then
|
||||
local lastUsedPill = PillEffect.PILLEFFECT_VURP + 1
|
||||
local i = 1
|
||||
while (i <= #pickupHistory) do
|
||||
local entry = pickupHistory[i]
|
||||
local j = 1
|
||||
while (j <= #pickupHistory) do
|
||||
local entry = pickupHistory[j]
|
||||
if entry[1] == "pill" then
|
||||
lastUsedPill = entry[3]
|
||||
break
|
||||
end
|
||||
i = i + 1
|
||||
j = j + 1
|
||||
end
|
||||
local tableName = EID:getTableName(descObj.ObjType, descObj.ObjVariant, descObj.ObjSubType)
|
||||
local name = EID:getPillName(lastUsedPill, tableName == "horsepills")
|
||||
@@ -660,7 +660,7 @@ end
|
||||
EID:addDescriptionModifier("EID Afterbirth+", EIDConditionsAB, nil)
|
||||
|
||||
-- should this be done differently so that mods can add tab previews? (tab conditions is done last, but would be done before callbacks mods add, maybe tab should be checked in EID:getDescriptionObj
|
||||
local function TabConditions(descObj)
|
||||
local function TabConditions(_)
|
||||
if EID:PlayersActionPressed(EID.Config["BagOfCraftingToggleKey"]) and not EID.inModifierPreview then return true end
|
||||
EID.TabPreviewID = 0
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user