change to InsideItemReminder
This commit is contained in:
1 parent
ee707bbb7a
commit
c316b9a392
1 file changed
+3
-3
+3
-3
@@ -5,8 +5,6 @@ EID.TabPreviewID = 0
|
|||||||
EID.inModifierPreview = false
|
EID.inModifierPreview = false
|
||||||
-- The "Hold Map Helper" needs to know if it shouldn't display because we're in a Hold Tab desc
|
-- The "Hold Map Helper" needs to know if it shouldn't display because we're in a Hold Tab desc
|
||||||
EID.TabDescThisFrame = false
|
EID.TabDescThisFrame = false
|
||||||
-- ...and likewise we need to know when we're in the Item Reminder (this is getting out of hand)
|
|
||||||
EID.ReminderThisFrame = false
|
|
||||||
|
|
||||||
-- List of collectible IDs for us to check if a player owns them; feel free to add to this in mods that add description modifiers!
|
-- List of collectible IDs for us to check if a player owns them; feel free to add to this in mods that add description modifiers!
|
||||||
EID.collectiblesToCheck = { CollectibleType.COLLECTIBLE_VOID, }
|
EID.collectiblesToCheck = { CollectibleType.COLLECTIBLE_VOID, }
|
||||||
@@ -87,6 +85,7 @@ EID.BlackRuneStatIncreases = {{},{},{}}
|
|||||||
EID.VoidOptionIndexes = {}
|
EID.VoidOptionIndexes = {}
|
||||||
|
|
||||||
local function VoidCallback(descObj, isRune)
|
local function VoidCallback(descObj, isRune)
|
||||||
|
if EID.InsideItemReminder then return descObj end
|
||||||
-- Recheck RNG periodically (picking up passive collectibles will change the Void results without any easy trigger to track)
|
-- Recheck RNG periodically (picking up passive collectibles will change the Void results without any easy trigger to track)
|
||||||
-- Do both Void and Rune here since they could both be requested in the same frame
|
-- Do both Void and Rune here since they could both be requested in the same frame
|
||||||
if EID.GameUpdateCount >= lastVoidCheck + 30 or EID.RecheckVoid then
|
if EID.GameUpdateCount >= lastVoidCheck + 30 or EID.RecheckVoid then
|
||||||
@@ -281,6 +280,7 @@ if REPENTANCE then
|
|||||||
|
|
||||||
-- Handle Spindown Dice description addition
|
-- Handle Spindown Dice description addition
|
||||||
local function SpindownDiceCallback(descObj)
|
local function SpindownDiceCallback(descObj)
|
||||||
|
if EID.InsideItemReminder then return descObj end
|
||||||
-- get the ID of the player that owns the Spindown Dice
|
-- get the ID of the player that owns the Spindown Dice
|
||||||
local playerID = (EID.collectiblesOwned[723] or EID.collectiblesAbsorbed[723])
|
local playerID = (EID.collectiblesOwned[723] or EID.collectiblesAbsorbed[723])
|
||||||
EID:appendToDescription(descObj, "#{{Collectible723}} :")
|
EID:appendToDescription(descObj, "#{{Collectible723}} :")
|
||||||
@@ -322,7 +322,7 @@ if REPENTANCE then
|
|||||||
if hasCarBattery then
|
if hasCarBattery then
|
||||||
EID:appendToDescription(descObj, " (Results with {{Collectible356}})")
|
EID:appendToDescription(descObj, " (Results with {{Collectible356}})")
|
||||||
end
|
end
|
||||||
if not EID.ReminderThisFrame and firstID ~= 0 and EID.TabPreviewID == 0 then
|
if firstID ~= 0 and EID.TabPreviewID == 0 then
|
||||||
EID.TabPreviewID = firstID
|
EID.TabPreviewID = firstID
|
||||||
EID:appendToDescription(descObj, "#{{Blank}} ".. EID:getDescriptionEntry("FlipItemToggleInfo"))
|
EID:appendToDescription(descObj, "#{{Blank}} ".. EID:getDescriptionEntry("FlipItemToggleInfo"))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user