isaacscript-common 1.0.511 → 1.0.515

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.
Files changed (125) hide show
  1. package/dist/callbacks/itemPickup.lua +6 -2
  2. package/dist/callbacks/postBombInitLate.lua +5 -1
  3. package/dist/callbacks/postCursedTeleport.lua +10 -8
  4. package/dist/callbacks/postEffectInitLate.lua +5 -1
  5. package/dist/callbacks/postEsauJr.lua +4 -2
  6. package/dist/callbacks/postFamiliarInitLate.lua +5 -1
  7. package/dist/callbacks/postFlip.lua +4 -2
  8. package/dist/callbacks/postGridEntity.lua +18 -8
  9. package/dist/callbacks/postKnifeInitLate.lua +5 -1
  10. package/dist/callbacks/postLaserInitLate.lua +5 -1
  11. package/dist/callbacks/postNPCInitLate.lua +5 -1
  12. package/dist/callbacks/postPickupCollect.lua +5 -1
  13. package/dist/callbacks/postPickupInitLate.lua +5 -1
  14. package/dist/callbacks/postPlayerChangeHealth.lua +13 -9
  15. package/dist/callbacks/postPlayerChangeType.lua +5 -1
  16. package/dist/callbacks/postPlayerFatalDamage.lua +2 -2
  17. package/dist/callbacks/postPlayerInitLate.lua +5 -1
  18. package/dist/callbacks/postPlayerReordered.lua +1 -1
  19. package/dist/callbacks/postProjectileInitLate.lua +5 -1
  20. package/dist/callbacks/postPurchase.lua +15 -17
  21. package/dist/callbacks/postSacrifice.lua +3 -3
  22. package/dist/callbacks/postSlotInitUpdate.lua +11 -3
  23. package/dist/callbacks/postSlotRenderBroken.lua +8 -2
  24. package/dist/callbacks/postTearInitLate.lua +5 -1
  25. package/dist/callbacks/postTransformation.lua +5 -1
  26. package/dist/callbacks/reorderedCallbacks.lua +4 -4
  27. package/dist/callbacks/subscriptions/postBombInitLate.lua +3 -3
  28. package/dist/callbacks/subscriptions/postCursedTeleport.lua +1 -1
  29. package/dist/callbacks/subscriptions/postCustomRevive.lua +3 -3
  30. package/dist/callbacks/subscriptions/postEffectInitLate.lua +3 -3
  31. package/dist/callbacks/subscriptions/postEsauJr.lua +1 -1
  32. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +3 -3
  33. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +1 -1
  34. package/dist/callbacks/subscriptions/postFirstFlip.lua +1 -1
  35. package/dist/callbacks/subscriptions/postFlip.lua +1 -1
  36. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +1 -1
  37. package/dist/callbacks/subscriptions/postGridEntityInit.lua +3 -3
  38. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +3 -3
  39. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +3 -3
  40. package/dist/callbacks/subscriptions/postItemPickup.lua +5 -5
  41. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +3 -3
  42. package/dist/callbacks/subscriptions/postLaserInitLate.lua +3 -3
  43. package/dist/callbacks/subscriptions/postNPCInitLate.lua +3 -3
  44. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +1 -1
  45. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +1 -1
  46. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +1 -1
  47. package/dist/callbacks/subscriptions/postPickupCollect.lua +3 -3
  48. package/dist/callbacks/subscriptions/postPickupInitLate.lua +3 -3
  49. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +3 -3
  50. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +1 -1
  51. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +3 -3
  52. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +3 -3
  53. package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +3 -3
  54. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +3 -3
  55. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +3 -3
  56. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +3 -3
  57. package/dist/callbacks/subscriptions/postPurchase.lua +2 -8
  58. package/dist/callbacks/subscriptions/postSacrifice.lua +1 -1
  59. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +3 -3
  60. package/dist/callbacks/subscriptions/postSlotInit.lua +3 -3
  61. package/dist/callbacks/subscriptions/postSlotRender.lua +3 -3
  62. package/dist/callbacks/subscriptions/postSlotUpdate.lua +3 -3
  63. package/dist/callbacks/subscriptions/postTearInitLate.lua +3 -3
  64. package/dist/callbacks/subscriptions/postTransformation.lua +3 -3
  65. package/dist/callbacks/subscriptions/preCustomRevive.lua +1 -1
  66. package/dist/callbacks/subscriptions/preItemPickup.lua +5 -5
  67. package/dist/constants.lua +5 -47
  68. package/dist/features/deployJSONRoom.lua +61 -90
  69. package/dist/features/disableInputs.lua +3 -9
  70. package/dist/features/forgottenSwitch.lua +1 -1
  71. package/dist/features/getCollectibleItemPoolType.lua +10 -4
  72. package/dist/features/preventCollectibleRotate.lua +9 -3
  73. package/dist/features/saveDataManager/load.lua +6 -2
  74. package/dist/features/saveDataManager/main.lua +1 -1
  75. package/dist/features/saveDataManager/merge.lua +4 -2
  76. package/dist/features/sirenHelpers.lua +5 -5
  77. package/dist/functions/array.lua +7 -5
  78. package/dist/functions/bitwise.lua +1 -1
  79. package/dist/functions/charge.lua +12 -10
  80. package/dist/functions/collectibles.lua +23 -18
  81. package/dist/functions/color.lua +1 -9
  82. package/dist/functions/deepCopy.lua +22 -42
  83. package/dist/functions/deepCopyTests.lua +20 -12
  84. package/dist/functions/doors.lua +19 -7
  85. package/dist/functions/entity.lua +2 -8
  86. package/dist/functions/flag.lua +1 -1
  87. package/dist/functions/gridEntity.lua +9 -14
  88. package/dist/functions/input.lua +18 -14
  89. package/dist/functions/jsonRoom.lua +9 -3
  90. package/dist/functions/language.lua +1 -9
  91. package/dist/functions/log.lua +46 -18
  92. package/dist/functions/math.lua +17 -15
  93. package/dist/functions/npc.lua +17 -15
  94. package/dist/functions/pickups.lua +1 -14
  95. package/dist/functions/player.lua +47 -25
  96. package/dist/functions/playerHealth.lua +9 -19
  97. package/dist/functions/pocketItems.lua +4 -4
  98. package/dist/functions/random.lua +2 -2
  99. package/dist/functions/revive.lua +4 -4
  100. package/dist/functions/rooms.d.ts +14 -1
  101. package/dist/functions/rooms.lua +77 -17
  102. package/dist/functions/spawnCollectible.lua +2 -10
  103. package/dist/functions/sprite.lua +2 -2
  104. package/dist/functions/stage.lua +6 -6
  105. package/dist/functions/tears.lua +1 -1
  106. package/dist/functions/transformations.lua +10 -4
  107. package/dist/functions/trinketGive.lua +2 -2
  108. package/dist/functions/trinkets.lua +5 -3
  109. package/dist/functions/ui.lua +3 -3
  110. package/dist/functions/util.lua +8 -4
  111. package/dist/functions/vector.lua +8 -8
  112. package/dist/lualib_bundle.lua +555 -603
  113. package/dist/maps/cardDescriptionMap.lua +1 -99
  114. package/dist/maps/cardNameMap.lua +1 -99
  115. package/dist/maps/collectibleDescriptionMap.lua +1 -722
  116. package/dist/maps/collectibleNameMap.lua +1 -722
  117. package/dist/maps/gridEntityXMLMap.lua +1 -36
  118. package/dist/maps/pillEffectNameMap.lua +1 -52
  119. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +1 -7
  120. package/dist/maps/transformationMap.lua +12 -19
  121. package/dist/maps/trinketDescriptionMap.lua +1 -190
  122. package/dist/maps/trinketNameMap.lua +1 -190
  123. package/dist/sets/cards.lua +2 -98
  124. package/dist/types/ModUpgraded.lua +50 -44
  125. package/package.json +2 -2
@@ -9,8 +9,8 @@ function ____exports.postCursedTeleportRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postCursedTeleportFire(self, player)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil, player)
16
16
  end
@@ -9,13 +9,13 @@ function ____exports.postCustomReviveRegister(self, callback, revivalType)
9
9
  __TS__ArrayPush(subscriptions, {callback, revivalType})
10
10
  end
11
11
  function ____exports.postCustomReviveFire(self, player, revivalType)
12
- local callbackRevivalType
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local callbackRevivalType
16
16
  callbackRevivalType = ____value[2]
17
17
  do
18
- if callbackRevivalType ~= nil and callbackRevivalType ~= revivalType then
18
+ if (callbackRevivalType ~= nil) and (callbackRevivalType ~= revivalType) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, player, revivalType)
@@ -9,13 +9,13 @@ function ____exports.postEffectInitLateRegister(self, callback, effectVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, effectVariant})
10
10
  end
11
11
  function ____exports.postEffectInitLateFire(self, effect)
12
- local effectVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local effectVariant
16
16
  effectVariant = ____value[2]
17
17
  do
18
- if effectVariant ~= nil and effectVariant ~= effect.Variant then
18
+ if (effectVariant ~= nil) and (effectVariant ~= effect.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, effect)
@@ -9,8 +9,8 @@ function ____exports.postEsauJrRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postEsauJrFire(self, player)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil, player)
16
16
  end
@@ -9,13 +9,13 @@ function ____exports.postFamiliarInitLateRegister(self, callback, familiarVarian
9
9
  __TS__ArrayPush(subscriptions, {callback, familiarVariant})
10
10
  end
11
11
  function ____exports.postFamiliarInitLateFire(self, familiar)
12
- local familiarVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local familiarVariant
16
16
  familiarVariant = ____value[2]
17
17
  do
18
- if familiarVariant ~= nil and familiarVariant ~= familiar.Variant then
18
+ if (familiarVariant ~= nil) and (familiarVariant ~= familiar.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, familiar)
@@ -9,8 +9,8 @@ function ____exports.postFirstEsauJrRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postFirstEsauJrFire(self, player)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil, player)
16
16
  end
@@ -9,8 +9,8 @@ function ____exports.postFirstFlipRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postFirstFlipFire(self, player)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil, player)
16
16
  end
@@ -9,8 +9,8 @@ function ____exports.postFlipRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postFlipFire(self, player)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil, player)
16
16
  end
@@ -9,8 +9,8 @@ function ____exports.postGameStartedReorderedRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postGameStartedReorderedFire(self, isContinued)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil, isContinued)
16
16
  end
@@ -9,13 +9,13 @@ function ____exports.postGridEntityInitRegister(self, callback, gridEntityType)
9
9
  __TS__ArrayPush(subscriptions, {callback, gridEntityType})
10
10
  end
11
11
  function ____exports.postGridEntityInitFire(self, gridEntity)
12
- local gridEntityType
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local gridEntityType
16
16
  gridEntityType = ____value[2]
17
17
  do
18
- if gridEntityType ~= nil and gridEntityType ~= gridEntity:GetType() then
18
+ if (gridEntityType ~= nil) and (gridEntityType ~= gridEntity:GetType()) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, gridEntity)
@@ -9,13 +9,13 @@ function ____exports.postGridEntityRemoveRegister(self, callback, gridEntityType
9
9
  __TS__ArrayPush(subscriptions, {callback, gridEntityType})
10
10
  end
11
11
  function ____exports.postGridEntityRemoveFire(self, gridIndex, gridEntityType)
12
- local callbackGridEntityType
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local callbackGridEntityType
16
16
  callbackGridEntityType = ____value[2]
17
17
  do
18
- if callbackGridEntityType ~= nil and callbackGridEntityType ~= gridEntityType then
18
+ if (callbackGridEntityType ~= nil) and (callbackGridEntityType ~= gridEntityType) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, gridIndex, gridEntityType)
@@ -9,13 +9,13 @@ function ____exports.postGridEntityUpdateRegister(self, callback, gridEntityType
9
9
  __TS__ArrayPush(subscriptions, {callback, gridEntityType})
10
10
  end
11
11
  function ____exports.postGridEntityUpdateFire(self, gridEntity)
12
- local gridEntityType
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local gridEntityType
16
16
  gridEntityType = ____value[2]
17
17
  do
18
- if gridEntityType ~= nil and gridEntityType ~= gridEntity:GetType() then
18
+ if (gridEntityType ~= nil) and (gridEntityType ~= gridEntity:GetType()) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, gridEntity)
@@ -9,18 +9,18 @@ function ____exports.postItemPickupRegister(self, callback, itemType, itemID)
9
9
  __TS__ArrayPush(subscriptions, {callback, itemType, itemID})
10
10
  end
11
11
  function ____exports.postItemPickupFire(self, player, pickingUpItem)
12
- local itemID
13
- local itemType
14
- local callback
15
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
16
14
  callback = ____value[1]
15
+ local itemType
17
16
  itemType = ____value[2]
17
+ local itemID
18
18
  itemID = ____value[3]
19
19
  do
20
- if itemType ~= nil and itemType ~= pickingUpItem.type then
20
+ if (itemType ~= nil) and (itemType ~= pickingUpItem.type) then
21
21
  goto __continue5
22
22
  end
23
- if itemID ~= nil and itemID ~= pickingUpItem.id then
23
+ if (itemID ~= nil) and (itemID ~= pickingUpItem.id) then
24
24
  goto __continue5
25
25
  end
26
26
  callback(nil, player, pickingUpItem)
@@ -9,13 +9,13 @@ function ____exports.postKnifeInitLateRegister(self, callback, knifeVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, knifeVariant})
10
10
  end
11
11
  function ____exports.postKnifeInitLateFire(self, knife)
12
- local knifeVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local knifeVariant
16
16
  knifeVariant = ____value[2]
17
17
  do
18
- if knifeVariant ~= nil and knifeVariant ~= knife.Variant then
18
+ if (knifeVariant ~= nil) and (knifeVariant ~= knife.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, knife)
@@ -9,13 +9,13 @@ function ____exports.postLaserInitLateRegister(self, callback, laserVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, laserVariant})
10
10
  end
11
11
  function ____exports.postLaserInitLateFire(self, laser)
12
- local laserVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local laserVariant
16
16
  laserVariant = ____value[2]
17
17
  do
18
- if laserVariant ~= nil and laserVariant ~= laser.Variant then
18
+ if (laserVariant ~= nil) and (laserVariant ~= laser.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, laser)
@@ -9,13 +9,13 @@ function ____exports.postNPCInitLateRegister(self, callback, entityType)
9
9
  __TS__ArrayPush(subscriptions, {callback, entityType})
10
10
  end
11
11
  function ____exports.postNPCInitLateFire(self, npc)
12
- local entityType
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local entityType
16
16
  entityType = ____value[2]
17
17
  do
18
- if entityType ~= nil and entityType ~= npc.Type then
18
+ if (entityType ~= nil) and (entityType ~= npc.Type) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, npc)
@@ -9,8 +9,8 @@ function ____exports.postNewLevelReorderedRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postNewLevelReorderedFire(self)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil)
16
16
  end
@@ -9,8 +9,8 @@ function ____exports.postNewRoomEarlyRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postNewRoomEarlyFire(self)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil)
16
16
  end
@@ -9,8 +9,8 @@ function ____exports.postNewRoomReorderedRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postNewRoomReorderedFire(self)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil)
16
16
  end
@@ -9,13 +9,13 @@ function ____exports.postPickupCollectRegister(self, callback, pickupVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, pickupVariant})
10
10
  end
11
11
  function ____exports.postPickupCollectFire(self, pickup, player)
12
- local pickupVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local pickupVariant
16
16
  pickupVariant = ____value[2]
17
17
  do
18
- if pickupVariant ~= nil and pickupVariant ~= pickup.Variant then
18
+ if (pickupVariant ~= nil) and (pickupVariant ~= pickup.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, pickup, player)
@@ -9,13 +9,13 @@ function ____exports.postPickupInitLateRegister(self, callback, pickupVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, pickupVariant})
10
10
  end
11
11
  function ____exports.postPickupInitLateFire(self, pickup)
12
- local pickupVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local pickupVariant
16
16
  pickupVariant = ____value[2]
17
17
  do
18
- if pickupVariant ~= nil and pickupVariant ~= pickup.Variant then
18
+ if (pickupVariant ~= nil) and (pickupVariant ~= pickup.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, pickup)
@@ -9,13 +9,13 @@ function ____exports.postPlayerChangeHealthRegister(self, callback, playerVarian
9
9
  __TS__ArrayPush(subscriptions, {callback, playerVariant})
10
10
  end
11
11
  function ____exports.postPlayerChangeHealthFire(self, player, healthType, amount)
12
- local playerVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local playerVariant
16
16
  playerVariant = ____value[2]
17
17
  do
18
- if playerVariant ~= nil and playerVariant ~= player.Variant then
18
+ if (playerVariant ~= nil) and (playerVariant ~= player.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, player, healthType, amount)
@@ -9,8 +9,8 @@ function ____exports.postPlayerChangeTypeRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postPlayerChangeTypeFire(self, player)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil, player)
16
16
  end
@@ -9,13 +9,13 @@ function ____exports.postPlayerFatalDamageRegister(self, callback, playerVariant
9
9
  __TS__ArrayPush(subscriptions, {callback, playerVariant})
10
10
  end
11
11
  function ____exports.postPlayerFatalDamageFire(self, player)
12
- local playerVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local playerVariant
16
16
  playerVariant = ____value[2]
17
17
  do
18
- if playerVariant ~= nil and playerVariant ~= player.Variant then
18
+ if (playerVariant ~= nil) and (playerVariant ~= player.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  local shouldSustainDeath = callback(nil, player)
@@ -9,13 +9,13 @@ function ____exports.postPlayerInitLateRegister(self, callback, playerVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, playerVariant})
10
10
  end
11
11
  function ____exports.postPlayerInitLateFire(self, player)
12
- local playerVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local playerVariant
16
16
  playerVariant = ____value[2]
17
17
  do
18
- if playerVariant ~= nil and playerVariant ~= player.Variant then
18
+ if (playerVariant ~= nil) and (playerVariant ~= player.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, player)
@@ -9,13 +9,13 @@ function ____exports.postPlayerInitReorderedRegister(self, callback, playerVaria
9
9
  __TS__ArrayPush(subscriptions, {callback, playerVariant})
10
10
  end
11
11
  function ____exports.postPlayerInitReorderedFire(self, player)
12
- local playerVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local playerVariant
16
16
  playerVariant = ____value[2]
17
17
  do
18
- if playerVariant ~= nil and playerVariant ~= player.Variant then
18
+ if (playerVariant ~= nil) and (playerVariant ~= player.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, player)
@@ -9,13 +9,13 @@ function ____exports.postPlayerRenderReorderedRegister(self, callback, playerVar
9
9
  __TS__ArrayPush(subscriptions, {callback, playerVariant})
10
10
  end
11
11
  function ____exports.postPlayerRenderReorderedFire(self, player)
12
- local playerVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local playerVariant
16
16
  playerVariant = ____value[2]
17
17
  do
18
- if playerVariant ~= nil and playerVariant ~= player.Variant then
18
+ if (playerVariant ~= nil) and (playerVariant ~= player.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, player)
@@ -9,13 +9,13 @@ function ____exports.postPlayerUpdateReorderedRegister(self, callback, playerVar
9
9
  __TS__ArrayPush(subscriptions, {callback, playerVariant})
10
10
  end
11
11
  function ____exports.postPlayerUpdateReorderedFire(self, player)
12
- local playerVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local playerVariant
16
16
  playerVariant = ____value[2]
17
17
  do
18
- if playerVariant ~= nil and playerVariant ~= player.Variant then
18
+ if (playerVariant ~= nil) and (playerVariant ~= player.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, player)
@@ -9,13 +9,13 @@ function ____exports.postProjectileInitLateRegister(self, callback, projectileVa
9
9
  __TS__ArrayPush(subscriptions, {callback, projectileVariant})
10
10
  end
11
11
  function ____exports.postProjectileInitLateFire(self, projectile)
12
- local projectileVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local projectileVariant
16
16
  projectileVariant = ____value[2]
17
17
  do
18
- if projectileVariant ~= nil and projectileVariant ~= projectile.Variant then
18
+ if (projectileVariant ~= nil) and (projectileVariant ~= projectile.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, projectile)
@@ -9,16 +9,10 @@ function ____exports.postPurchaseRegister(self, callback, pickupVariant, pickupS
9
9
  __TS__ArrayPush(subscriptions, {callback, pickupVariant, pickupSubType})
10
10
  end
11
11
  function ____exports.postPurchaseFire(self, player, pickupVariant, pickupSubType, pickupPrice)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
- callback(
16
- nil,
17
- player,
18
- pickupVariant,
19
- pickupSubType,
20
- pickupPrice
21
- )
15
+ callback(nil, player, pickupVariant, pickupSubType, pickupPrice)
22
16
  end
23
17
  end
24
18
  return ____exports
@@ -9,8 +9,8 @@ function ____exports.postSacrificeRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.postSacrificeFire(self, player, numSacrifices)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  callback(nil, player, numSacrifices)
16
16
  end
@@ -9,13 +9,13 @@ function ____exports.postSlotDestroyedRegister(self, callback, slotVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, slotVariant})
10
10
  end
11
11
  function ____exports.postSlotDestroyedFire(self, slot)
12
- local slotVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local slotVariant
16
16
  slotVariant = ____value[2]
17
17
  do
18
- if slotVariant ~= nil and slotVariant ~= slot.Variant then
18
+ if (slotVariant ~= nil) and (slotVariant ~= slot.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, slot)
@@ -9,13 +9,13 @@ function ____exports.postSlotInitRegister(self, callback, slotVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, slotVariant})
10
10
  end
11
11
  function ____exports.postSlotInitFire(self, slot)
12
- local slotVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local slotVariant
16
16
  slotVariant = ____value[2]
17
17
  do
18
- if slotVariant ~= nil and slotVariant ~= slot.Variant then
18
+ if (slotVariant ~= nil) and (slotVariant ~= slot.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, slot)
@@ -9,13 +9,13 @@ function ____exports.postSlotRenderRegister(self, callback, slotVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, slotVariant})
10
10
  end
11
11
  function ____exports.postSlotRenderFire(self, slot)
12
- local slotVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local slotVariant
16
16
  slotVariant = ____value[2]
17
17
  do
18
- if slotVariant ~= nil and slotVariant ~= slot.Variant then
18
+ if (slotVariant ~= nil) and (slotVariant ~= slot.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, slot)
@@ -9,13 +9,13 @@ function ____exports.postSlotUpdateRegister(self, callback, slotVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, slotVariant})
10
10
  end
11
11
  function ____exports.postSlotUpdateFire(self, slot)
12
- local slotVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local slotVariant
16
16
  slotVariant = ____value[2]
17
17
  do
18
- if slotVariant ~= nil and slotVariant ~= slot.Variant then
18
+ if (slotVariant ~= nil) and (slotVariant ~= slot.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, slot)
@@ -9,13 +9,13 @@ function ____exports.postTearInitLateRegister(self, callback, tearVariant)
9
9
  __TS__ArrayPush(subscriptions, {callback, tearVariant})
10
10
  end
11
11
  function ____exports.postTearInitLateFire(self, tear)
12
- local tearVariant
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local tearVariant
16
16
  tearVariant = ____value[2]
17
17
  do
18
- if tearVariant ~= nil and tearVariant ~= tear.Variant then
18
+ if (tearVariant ~= nil) and (tearVariant ~= tear.Variant) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, tear)
@@ -9,13 +9,13 @@ function ____exports.postTransformationRegister(self, callback, playerForm)
9
9
  __TS__ArrayPush(subscriptions, {callback, playerForm})
10
10
  end
11
11
  function ____exports.postTransformationFire(self, player, playerForm, hasForm)
12
- local callbackPlayerForm
13
- local callback
14
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
15
14
  callback = ____value[1]
15
+ local callbackPlayerForm
16
16
  callbackPlayerForm = ____value[2]
17
17
  do
18
- if callbackPlayerForm ~= nil and callbackPlayerForm ~= playerForm then
18
+ if (callbackPlayerForm ~= nil) and (callbackPlayerForm ~= playerForm) then
19
19
  goto __continue5
20
20
  end
21
21
  callback(nil, player, playerForm, hasForm)
@@ -9,8 +9,8 @@ function ____exports.preCustomReviveRegister(self, callback)
9
9
  __TS__ArrayPush(subscriptions, {callback})
10
10
  end
11
11
  function ____exports.preCustomReviveFire(self, player)
12
- local callback
13
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
14
14
  callback = ____value[1]
15
15
  local revivalType = callback(nil, player)
16
16
  if revivalType ~= nil then
@@ -9,18 +9,18 @@ function ____exports.preItemPickupRegister(self, callback, itemType, itemID)
9
9
  __TS__ArrayPush(subscriptions, {callback, itemType, itemID})
10
10
  end
11
11
  function ____exports.preItemPickupFire(self, player, pickingUpItem)
12
- local itemID
13
- local itemType
14
- local callback
15
12
  for ____, ____value in ipairs(subscriptions) do
13
+ local callback
16
14
  callback = ____value[1]
15
+ local itemType
17
16
  itemType = ____value[2]
17
+ local itemID
18
18
  itemID = ____value[3]
19
19
  do
20
- if itemType ~= nil and itemType ~= pickingUpItem.type then
20
+ if (itemType ~= nil) and (itemType ~= pickingUpItem.type) then
21
21
  goto __continue5
22
22
  end
23
- if itemID ~= nil and itemID ~= pickingUpItem.id then
23
+ if (itemID ~= nil) and (itemID ~= pickingUpItem.id) then
24
24
  goto __continue5
25
25
  end
26
26
  callback(nil, player, pickingUpItem)