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
- local maxHeartContainers = getPlayerMaxHeartContainers(nil, player)
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.82",
3
+ "version": "1.2.83",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",