isaacscript-common 1.2.82 → 1.2.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,14 +21,14 @@ function ____exports.willMysteriousPaperRevive(self, player)
|
|
|
21
21
|
return frameOfDeath % 4 == 3
|
|
22
22
|
end
|
|
23
23
|
function ____exports.willReviveFromHeartbreak(self, player)
|
|
24
|
-
if player:HasCollectible(CollectibleType.COLLECTIBLE_HEARTBREAK) then
|
|
24
|
+
if not player:HasCollectible(CollectibleType.COLLECTIBLE_HEARTBREAK) then
|
|
25
25
|
return false
|
|
26
26
|
end
|
|
27
|
+
local maxHeartContainers = getPlayerMaxHeartContainers(nil, player)
|
|
27
28
|
local numBrokenHeartsThatWillBeAdded = isKeeper(nil, player) and 1 or 2
|
|
28
29
|
local brokenHearts = player:GetBrokenHearts()
|
|
29
30
|
local numBrokenHeartsAfterRevival = numBrokenHeartsThatWillBeAdded + brokenHearts
|
|
30
|
-
|
|
31
|
-
return numBrokenHeartsAfterRevival < maxHeartContainers
|
|
31
|
+
return maxHeartContainers > numBrokenHeartsAfterRevival
|
|
32
32
|
end
|
|
33
33
|
function ____exports.willReviveFromSpiritShackles(self, player)
|
|
34
34
|
if not player:HasCollectible(CollectibleType.COLLECTIBLE_SPIRIT_SHACKLES) then
|