Fix Void and Echo Chamber issues
This commit is contained in:
1 parent
b290b28437
commit
a9679e3d1a
1 file changed
+29
-18
+29
-18
@@ -69,12 +69,16 @@ function EID:getHoldMapDescription(player, checkingTwin)
|
|||||||
|
|
||||||
-- Echo Chamber Description
|
-- Echo Chamber Description
|
||||||
if REPENTANCE and player:HasCollectible(700) then
|
if REPENTANCE and player:HasCollectible(700) then
|
||||||
local playerID = player:GetPlayerType()
|
local playerID = EID:getPlayerID(player)
|
||||||
local pickupHistory = EID.PlayerItemInteractions[playerID].pickupHistory
|
local pickupHistory = EID.PlayerItemInteractions[playerID].pickupHistory
|
||||||
|
-- Dead Tainted Lazarus exception
|
||||||
|
if player:GetPlayerType() == 38 then
|
||||||
|
pickupHistory = EID.PlayerItemInteractions[playerID].altPickupHistory or pickupHistory
|
||||||
|
end
|
||||||
if pickupHistory then
|
if pickupHistory then
|
||||||
local pickupNames = ""
|
local pickupNames = ""
|
||||||
for i = 1, math.min(3, #pickupHistory) do
|
for i = 1, math.min(3, #pickupHistory) do
|
||||||
if pickupHistory[i][2] == playerID and pickupHistory[i][4] then -- Echo chamber is owned
|
if pickupHistory[i][4] then -- Echo chamber was owned before this card/pill was used
|
||||||
if pickupHistory[i][1] == "pill" then
|
if pickupHistory[i][1] == "pill" then
|
||||||
local name = EID:getPillName(pickupHistory[i][3], false)
|
local name = EID:getPillName(pickupHistory[i][3], false)
|
||||||
pickupNames = pickupNames .. "{{Pill}} " .. name .. "#"
|
pickupNames = pickupNames .. "{{Pill}} " .. name .. "#"
|
||||||
@@ -118,7 +122,7 @@ function EID:getHoldMapDescription(player, checkingTwin)
|
|||||||
elseif heldActive == 44 and EID.Config["ItemReminderShowRNGCheats"] then
|
elseif heldActive == 44 and EID.Config["ItemReminderShowRNGCheats"] then
|
||||||
blacklist["5.100.44"] = true
|
blacklist["5.100.44"] = true
|
||||||
-- The result preview changes as soon as we activate Teleport, which looks awkward, so try to not display the result while mid-teleport. Doesn't work perfectly and only in Rep
|
-- The result preview changes as soon as we activate Teleport, which looks awkward, so try to not display the result while mid-teleport. Doesn't work perfectly and only in Rep
|
||||||
if not REPENTANCE or currentPlayer:GetSprite():GetAnimation() ~= "TeleportUp" then
|
if not REPENTANCE or player:GetSprite():GetAnimation() ~= "TeleportUp" then
|
||||||
append("{{Collectible44}}", EID:getObjectName(5,100,44) .. EID:getDescriptionEntry("HoldMapHeader"), EID:Teleport1Prediction(getSeed(44)))
|
append("{{Collectible44}}", EID:getObjectName(5,100,44) .. EID:getDescriptionEntry("HoldMapHeader"), EID:Teleport1Prediction(getSeed(44)))
|
||||||
end
|
end
|
||||||
-- Teleport 2.0 location
|
-- Teleport 2.0 location
|
||||||
@@ -128,30 +132,37 @@ function EID:getHoldMapDescription(player, checkingTwin)
|
|||||||
-- D Infinity
|
-- D Infinity
|
||||||
elseif heldActive == 489 then
|
elseif heldActive == 489 then
|
||||||
blacklist["5.100.489"] = true
|
blacklist["5.100.489"] = true
|
||||||
addObjectDesc(5, 100, EID:CurrentDInfinity(getSeed(489), currentPlayer), "{{Collectible489}}")
|
addObjectDesc(5, 100, EID:CurrentDInfinity(getSeed(489), player), "{{Collectible489}}")
|
||||||
-- D1
|
-- D1
|
||||||
elseif heldActive == 476 and EID.Config["ItemReminderShowRNGCheats"] then
|
elseif heldActive == 476 and EID.Config["ItemReminderShowRNGCheats"] then
|
||||||
blacklist["5.100.476"] = true
|
blacklist["5.100.476"] = true
|
||||||
append("{{Collectible476}}", EID:getObjectName(5,100,476) .. EID:getDescriptionEntry("HoldMapHeader"), EID:D1Prediction(getSeed(476)))
|
append("{{Collectible476}}", EID:getObjectName(5,100,476) .. EID:getDescriptionEntry("HoldMapHeader"), EID:D1Prediction(getSeed(476)))
|
||||||
-- Void
|
-- Void
|
||||||
elseif heldActive == 477 then
|
elseif heldActive == 477 then
|
||||||
blacklist["5.100.477"] = true
|
|
||||||
local absorbedActives = ""
|
local absorbedActives = ""
|
||||||
|
local printNormalDesc = true
|
||||||
local absorbedItems = EID.absorbedItems[tostring(EID:getPlayerID(player))]
|
local absorbedItems = EID.absorbedItems[tostring(EID:getPlayerID(player))]
|
||||||
local countItems = 0
|
if absorbedItems then
|
||||||
for _, _ in pairs(absorbedItems) do
|
local countItems = 0
|
||||||
countItems = countItems + 1
|
for _, _ in pairs(absorbedItems) do
|
||||||
end
|
countItems = countItems + 1
|
||||||
if countItems > 5 then
|
end
|
||||||
absorbedActives = "{{Blank}} "
|
if countItems > 0 then
|
||||||
end
|
if countItems > 5 then
|
||||||
for k, _ in pairs(absorbedItems) do
|
absorbedActives = "{{Blank}} "
|
||||||
absorbedActives = absorbedActives .. "{{Collectible" .. k .. "}} "
|
end
|
||||||
if countItems <= 5 then
|
for k, _ in pairs(absorbedItems) do
|
||||||
absorbedActives = absorbedActives .. " " .. EID:getObjectName(5, 100, tonumber(k)) .. "#"
|
absorbedActives = absorbedActives .. "{{Collectible" .. k .. "}} "
|
||||||
|
if countItems <= 5 then
|
||||||
|
absorbedActives = absorbedActives .. EID:getObjectName(5, 100, tonumber(k)) .. "#"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
blacklist["5.100.477"] = true
|
||||||
|
append("{{Collectible477}}", EID:getObjectName(5, 100, 477) .. EID:getDescriptionEntry("HoldMapHeader"), absorbedActives)
|
||||||
|
printNormalDesc = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
append("{{Collectible477}}", EID:getObjectName(5, 100, 477), absorbedActives)
|
if printNormalDesc then addObjectDesc(5, 100, heldActive) end
|
||||||
else
|
else
|
||||||
addObjectDesc(5, 100, heldActive)
|
addObjectDesc(5, 100, heldActive)
|
||||||
end
|
end
|
||||||
@@ -211,7 +222,7 @@ function EID:getHoldMapDescription(player, checkingTwin)
|
|||||||
-- Don't display Mysterious Paper's 1-frame temporary trinket granting
|
-- Don't display Mysterious Paper's 1-frame temporary trinket granting
|
||||||
local hasPaper = player:HasTrinket(21)
|
local hasPaper = player:HasTrinket(21)
|
||||||
for i = 1, TrinketType.NUM_TRINKETS - 1 do
|
for i = 1, TrinketType.NUM_TRINKETS - 1 do
|
||||||
local tempTrinketFound = EID.player:HasTrinket(i, true) ~= EID.player:HasTrinket(i, false)
|
local tempTrinketFound = player:HasTrinket(i, true) ~= player:HasTrinket(i, false)
|
||||||
if tempTrinketFound and (not mysteriousPaperBlacklist[i] or not hasPaper) then
|
if tempTrinketFound and (not mysteriousPaperBlacklist[i] or not hasPaper) then
|
||||||
addObjectDesc(5, 350, i, "{{Trinket75}}")
|
addObjectDesc(5, 350, i, "{{Trinket75}}")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user