isaacscript-common 1.2.98 → 1.2.101

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 (152) hide show
  1. package/dist/callbacks/itemPickup.lua +2 -1
  2. package/dist/callbacks/postBombInitLate.lua +3 -1
  3. package/dist/callbacks/postBoneSwing.lua +4 -1
  4. package/dist/callbacks/postCursedTeleport.lua +3 -1
  5. package/dist/callbacks/postEffectInitLate.lua +3 -1
  6. package/dist/callbacks/postEsauJr.lua +2 -1
  7. package/dist/callbacks/postFamiliarInitLate.lua +3 -1
  8. package/dist/callbacks/postFlip.lua +2 -1
  9. package/dist/callbacks/postGridEntity.lua +4 -1
  10. package/dist/callbacks/postGridEntityCollision.lua +6 -1
  11. package/dist/callbacks/postKnifeInitLate.lua +3 -1
  12. package/dist/callbacks/postLaserInitLate.lua +3 -1
  13. package/dist/callbacks/postNPCInitLate.lua +3 -1
  14. package/dist/callbacks/postPickupCollect.lua +3 -1
  15. package/dist/callbacks/postPickupInitLate.lua +3 -1
  16. package/dist/callbacks/postPlayerChangeHealth.lua +9 -15
  17. package/dist/callbacks/postPlayerChangeType.lua +3 -1
  18. package/dist/callbacks/postPlayerFatalDamage.lua +2 -1
  19. package/dist/callbacks/postPlayerInitLate.lua +3 -1
  20. package/dist/callbacks/postPlayerReordered.lua +2 -1
  21. package/dist/callbacks/postProjectileInitLate.lua +3 -1
  22. package/dist/callbacks/postPurchase.lua +8 -3
  23. package/dist/callbacks/postSlotInitUpdate.lua +3 -1
  24. package/dist/callbacks/postSlotRenderBroken.lua +3 -1
  25. package/dist/callbacks/postTearInitLate.lua +3 -1
  26. package/dist/callbacks/postTearInitVeryLate.lua +3 -1
  27. package/dist/callbacks/postTransformation.lua +4 -1
  28. package/dist/callbacks/postTrinketBreak.lua +2 -1
  29. package/dist/callbacks/preNewLevel.lua +3 -1
  30. package/dist/callbacks/subscriptions/postBombInitLate.lua +2 -1
  31. package/dist/callbacks/subscriptions/postBoneSwing.lua +2 -1
  32. package/dist/callbacks/subscriptions/postCursedTeleport.lua +2 -1
  33. package/dist/callbacks/subscriptions/postCustomRevive.lua +2 -1
  34. package/dist/callbacks/subscriptions/postEffectInitLate.lua +2 -1
  35. package/dist/callbacks/subscriptions/postEsauJr.lua +2 -1
  36. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +2 -1
  37. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +2 -1
  38. package/dist/callbacks/subscriptions/postFirstFlip.lua +2 -1
  39. package/dist/callbacks/subscriptions/postFlip.lua +2 -1
  40. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +2 -1
  41. package/dist/callbacks/subscriptions/postGridEntityBroken.lua +2 -1
  42. package/dist/callbacks/subscriptions/postGridEntityCollision.lua +2 -1
  43. package/dist/callbacks/subscriptions/postGridEntityInit.lua +2 -1
  44. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +2 -1
  45. package/dist/callbacks/subscriptions/postGridEntityStateChange.lua +2 -1
  46. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +2 -1
  47. package/dist/callbacks/subscriptions/postItemPickup.lua +2 -1
  48. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +2 -1
  49. package/dist/callbacks/subscriptions/postLaserInitLate.lua +2 -1
  50. package/dist/callbacks/subscriptions/postNPCInitLate.lua +2 -1
  51. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +2 -1
  52. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +2 -1
  53. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +2 -1
  54. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +2 -1
  55. package/dist/callbacks/subscriptions/postPickupCollect.lua +2 -1
  56. package/dist/callbacks/subscriptions/postPickupInitLate.lua +2 -1
  57. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +2 -1
  58. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +2 -1
  59. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +2 -1
  60. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +2 -1
  61. package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +2 -1
  62. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +2 -1
  63. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +2 -1
  64. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +2 -1
  65. package/dist/callbacks/subscriptions/postPurchase.lua +2 -1
  66. package/dist/callbacks/subscriptions/postSacrifice.lua +2 -1
  67. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +2 -1
  68. package/dist/callbacks/subscriptions/postSlotInit.lua +2 -1
  69. package/dist/callbacks/subscriptions/postSlotRender.lua +2 -1
  70. package/dist/callbacks/subscriptions/postSlotUpdate.lua +2 -1
  71. package/dist/callbacks/subscriptions/postTearInitLate.lua +2 -1
  72. package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +2 -1
  73. package/dist/callbacks/subscriptions/postTransformation.lua +2 -1
  74. package/dist/callbacks/subscriptions/postTrinketBreak.lua +2 -1
  75. package/dist/callbacks/subscriptions/preBerserkDeath.lua +2 -1
  76. package/dist/callbacks/subscriptions/preCustomRevive.lua +2 -1
  77. package/dist/callbacks/subscriptions/preItemPickup.lua +2 -1
  78. package/dist/callbacks/subscriptions/preNewLevel.lua +2 -1
  79. package/dist/constants.lua +3 -1
  80. package/dist/features/deployJSONRoom.lua +8 -2
  81. package/dist/features/disableInputs.lua +5 -1
  82. package/dist/features/getCollectibleItemPoolType.lua +3 -1
  83. package/dist/features/isPonyActive.lua +3 -1
  84. package/dist/features/preventCollectibleRotate.lua +3 -1
  85. package/dist/features/runInNFrames.lua +4 -1
  86. package/dist/features/saveDataManager/exports.lua +3 -1
  87. package/dist/features/saveDataManager/load.lua +2 -1
  88. package/dist/features/saveDataManager/main.lua +2 -0
  89. package/dist/features/saveDataManager/maps.lua +3 -1
  90. package/dist/features/saveDataManager/merge.lua +4 -1
  91. package/dist/features/saveDataManager/save.lua +3 -1
  92. package/dist/features/sirenHelpers.lua +3 -1
  93. package/dist/functions/array.lua +8 -1
  94. package/dist/functions/cards.lua +2 -1
  95. package/dist/functions/collectibleCacheFlag.lua +6 -1
  96. package/dist/functions/collectibleSet.lua +3 -1
  97. package/dist/functions/collectibles.lua +3 -3
  98. package/dist/functions/deepCopy.lua +6 -1
  99. package/dist/functions/deepCopyTests.lua +5 -1
  100. package/dist/functions/doors.lua +6 -1
  101. package/dist/functions/entity.d.ts +0 -21
  102. package/dist/functions/entity.lua +6 -22
  103. package/dist/functions/entitySpecific.lua +2 -1
  104. package/dist/functions/familiars.lua +3 -1
  105. package/dist/functions/flying.lua +4 -1
  106. package/dist/functions/globals.lua +6 -1
  107. package/dist/functions/gridEntity.lua +7 -1
  108. package/dist/functions/input.lua +7 -1
  109. package/dist/functions/jsonRoom.lua +3 -1
  110. package/dist/functions/log.d.ts +1 -0
  111. package/dist/functions/log.lua +23 -1
  112. package/dist/functions/map.lua +4 -1
  113. package/dist/functions/math.lua +2 -1
  114. package/dist/functions/npc.lua +5 -1
  115. package/dist/functions/pickups.d.ts +21 -0
  116. package/dist/functions/pickups.lua +26 -0
  117. package/dist/functions/player.lua +10 -1
  118. package/dist/functions/playerHealth.lua +3 -1
  119. package/dist/functions/pocketItems.lua +4 -1
  120. package/dist/functions/positionVelocity.lua +3 -1
  121. package/dist/functions/rooms.lua +9 -1
  122. package/dist/functions/set.lua +4 -1
  123. package/dist/functions/string.lua +4 -1
  124. package/dist/functions/transformations.lua +5 -1
  125. package/dist/functions/trinketCacheFlag.lua +5 -1
  126. package/dist/functions/trinketSet.lua +3 -1
  127. package/dist/functions/trinkets.lua +2 -2
  128. package/dist/functions/utils.lua +5 -1
  129. package/dist/index.d.ts +1 -0
  130. package/dist/index.lua +8 -0
  131. package/dist/lualib_bundle.lua +1158 -1027
  132. package/dist/maps/cardDescriptionMap.lua +3 -1
  133. package/dist/maps/cardNameMap.lua +3 -1
  134. package/dist/maps/challengeNameMap.lua +3 -1
  135. package/dist/maps/collectibleDescriptionMap.lua +3 -1
  136. package/dist/maps/collectibleNameMap.lua +3 -1
  137. package/dist/maps/gridEntityTypeToBrokenStateMap.lua +3 -1
  138. package/dist/maps/gridEntityXMLMap.lua +3 -1
  139. package/dist/maps/pillEffectClassMap.lua +3 -1
  140. package/dist/maps/pillEffectNameMap.lua +3 -1
  141. package/dist/maps/pillEffectTypeMap.lua +3 -1
  142. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +3 -1
  143. package/dist/maps/transformationNameMap.lua +3 -1
  144. package/dist/maps/trinketDescriptionMap.lua +3 -1
  145. package/dist/maps/trinketNameMap.lua +3 -1
  146. package/dist/patchErrorFunctions.lua +4 -1
  147. package/dist/sets/cards.lua +3 -1
  148. package/dist/types/DefaultMap.lua +5 -1
  149. package/dist/types/ModUpgraded.lua +4 -1
  150. package/dist/types/SerializationBrand.lua +3 -1
  151. package/dist/upgradeMod.lua +5 -1
  152. package/package.json +5 -5
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postPlayerFatalDamageHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postPlayerInitLateHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postPlayerInitReorderedHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postPlayerRenderReorderedHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postPlayerUpdateReorderedHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postProjectileInitLateHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postPurchaseHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postSacrificeHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postSlotDestroyedHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postSlotInitHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postSlotRenderHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postSlotUpdateHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postTearInitLateHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postTearInitVeryLateHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postTransformationHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.postTrinketBreakHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.preBerserkDeathHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.preCustomReviveHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.preItemPickupHasSubscriptions(self)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local subscriptions = {}
5
6
  function ____exports.preNewLevelHasSubscriptions(self)
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
3
5
  local ____exports = {}
4
6
  ____exports.AZAZEL_DEFAULT_BRIMSTONE_DISTANCE = 75.125
5
7
  ____exports.BLIND_ITEM_PNG_PATH = "gfx/items/collectibles/questionmark.png"
@@ -1,12 +1,16 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
5
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
6
+ local Map = ____lualib.Map
7
+ local __TS__Iterator = ____lualib.__TS__Iterator
3
8
  local ____exports = {}
4
9
  local postNewRoom, setDecorationsInvisible, respawnPersistentEntities, removeSpecificNPCs, fillRoomWithDecorations, spawnAllEntities, spawnGridEntityForJSONRoom, spawnNormalEntityForJSONRoom, storePersistentEntity, fixPitGraphics, getPitMap, getPitFrame, FEATURE_NAME, NPC_TYPES_TO_NOT_REMOVE, PERSISTENT_ENTITY_TYPES, initialized, v
5
10
  local ____errors = require("errors")
6
11
  local getUpgradeErrorMsg = ____errors.getUpgradeErrorMsg
7
12
  local ____entity = require("functions.entity")
8
13
  local removeAllMatchingEntities = ____entity.removeAllMatchingEntities
9
- local removeAllPickups = ____entity.removeAllPickups
10
14
  local ____entitySpecific = require("functions.entitySpecific")
11
15
  local removeAllBombs = ____entitySpecific.removeAllBombs
12
16
  local ____gridEntity = require("functions.gridEntity")
@@ -23,6 +27,8 @@ local ____math = require("functions.math")
23
27
  local range = ____math.range
24
28
  local ____npc = require("functions.npc")
25
29
  local getNPCs = ____npc.getNPCs
30
+ local ____pickups = require("functions.pickups")
31
+ local removeAllPickups = ____pickups.removeAllPickups
26
32
  local ____random = require("functions.random")
27
33
  local nextSeed = ____random.nextSeed
28
34
  local ____rooms = require("functions.rooms")
@@ -1,5 +1,9 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
5
+ local __TS__Iterator = ____lualib.__TS__Iterator
6
+ local Set = ____lualib.Set
3
7
  local ____exports = {}
4
8
  local isActionPressed, isActionTriggered, getActionValue, getReturnValue, v
5
9
  local ____errors = require("errors")
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
3
5
  local ____exports = {}
4
6
  local postPickupInitCollectible, v
5
7
  local ____errors = require("errors")
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
3
5
  local ____exports = {}
4
6
  local postPEffectUpdate, FLAGS_WHEN_PONY_IS_ACTIVE, v
5
7
  local ____errors = require("errors")
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
3
5
  local ____exports = {}
4
6
  local useCardSoulOfIsaac, postPickupUpdateCollectible, v
5
7
  local ____errors = require("errors")
@@ -1,5 +1,8 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
+ local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
5
+ local __TS__ArraySplice = ____lualib.__TS__ArraySplice
3
6
  local ____exports = {}
4
7
  local postUpdate, postRender, checkExecuteQueuedFunctions, v
5
8
  local ____errors = require("errors")
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
3
5
  local ____exports = {}
4
6
  local ____errors = require("errors")
5
7
  local getUpgradeErrorMsg = ____errors.getUpgradeErrorMsg
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__StringTrim = ____lualib.__TS__StringTrim
3
4
  local ____exports = {}
4
5
  local readSaveDatFile, tryLoadModData, DEFAULT_MOD_DATA
5
6
  local ____jsonHelpers = require("functions.jsonHelpers")
@@ -1,4 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
2
4
  local ____exports = {}
3
5
  local postPlayerInit, preGameExit, postNewLevel, postNewRoomEarly, restoreDefaultsAll, restoreDefaults, clearAndCopyAllElements, mod, loadedDataOnThisRun
4
6
  local ____errors = require("errors")
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
3
5
  local ____exports = {}
4
6
  ____exports.saveDataMap = {}
5
7
  ____exports.saveDataDefaultsMap = {}
@@ -1,5 +1,8 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__InstanceOf = ____lualib.__TS__InstanceOf
5
+ local Set = ____lualib.Set
3
6
  local ____exports = {}
4
7
  local mergeArray, mergeTSTLObject, mergeTable, mergeVector
5
8
  local ____array = require("functions.array")
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
3
5
  local ____exports = {}
4
6
  local getAllSaveDataToWriteToDisk
5
7
  local ____deepCopy = require("functions.deepCopy")
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
+ local __TS__ArrayFind = ____lualib.__TS__ArrayFind
3
5
  local ____exports = {}
4
6
  local postNPCInitSirenHelper, checkReturnFamiliarToPlayer, blacklistEntryExists, getSirenHelper, v
5
7
  local ____errors = require("errors")
@@ -1,5 +1,12 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
4
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
5
+ local __TS__ArraySplice = ____lualib.__TS__ArraySplice
6
+ local __TS__ArraySome = ____lualib.__TS__ArraySome
7
+ local __TS__ArrayReduce = ____lualib.__TS__ArrayReduce
8
+ local __TS__ArrayMap = ____lualib.__TS__ArrayMap
9
+ local __TS__ArrayIndexOf = ____lualib.__TS__ArrayIndexOf
3
10
  local ____exports = {}
4
11
  local ____random = require("functions.random")
5
12
  local getRandomInt = ____random.getRandomInt
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local ____cardDescriptionMap = require("maps.cardDescriptionMap")
5
6
  local CARD_DESCRIPTION_MAP = ____cardDescriptionMap.CARD_DESCRIPTION_MAP
@@ -1,5 +1,10 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
5
+ local Set = ____lualib.Set
6
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
7
+ local __TS__Iterator = ____lualib.__TS__Iterator
3
8
  local ____exports = {}
4
9
  local ____collectibles = require("functions.collectibles")
5
10
  local collectibleHasCacheFlag = ____collectibles.collectibleHasCacheFlag
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
3
5
  local ____exports = {}
4
6
  local ____collectibles = require("functions.collectibles")
5
7
  local getMaxCollectibleType = ____collectibles.getMaxCollectibleType
@@ -8,11 +8,11 @@ local ____collectibleDescriptionMap = require("maps.collectibleDescriptionMap")
8
8
  local COLLECTIBLE_DESCRIPTION_MAP = ____collectibleDescriptionMap.COLLECTIBLE_DESCRIPTION_MAP
9
9
  local ____collectibleNameMap = require("maps.collectibleNameMap")
10
10
  local COLLECTIBLE_NAME_MAP = ____collectibleNameMap.COLLECTIBLE_NAME_MAP
11
- local ____entity = require("functions.entity")
12
- local getPickups = ____entity.getPickups
13
- local removeAllPickups = ____entity.removeAllPickups
14
11
  local ____flag = require("functions.flag")
15
12
  local hasFlag = ____flag.hasFlag
13
+ local ____pickups = require("functions.pickups")
14
+ local getPickups = ____pickups.getPickups
15
+ local removeAllPickups = ____pickups.removeAllPickups
16
16
  local ____sprite = require("functions.sprite")
17
17
  local clearSprite = ____sprite.clearSprite
18
18
  function ____exports.setCollectibleSprite(self, collectible, pngPath)
@@ -1,5 +1,10 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
5
+ local Map = ____lualib.Map
6
+ local __TS__InstanceOf = ____lualib.__TS__InstanceOf
7
+ local __TS__Iterator = ____lualib.__TS__Iterator
3
8
  local ____exports = {}
4
9
  local isTSTLClass, copyClass, getNewClassFromMetatable, deepCopyValue, copyVector, checkMetatable, validateValue, TSTL_CLASS_KEYS
5
10
  local ____debug = require("features.saveDataManager.debug")
@@ -1,5 +1,9 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
5
+ local __TS__InstanceOf = ____lualib.__TS__InstanceOf
6
+ local Set = ____lualib.Set
3
7
  local ____exports = {}
4
8
  local copiedObjectIsTable, copiedObjectHasKeyAndValueString, copiedTableHasKeyAndValueNumber, copiedTableDoesNotCoerceTypes, copiedObjectHasNoReferencesForPrimitivesForward, copiedObjectHasNoReferencesForPrimitivesBackward, copiedObjectHasNoReferencesForArray, copiedObjectHasChildObject, copiedMapIsMap, copiedMapHasValue, copiedSetIsSet, copiedSetHasValue, copiedMapHasChildMap, copiedDefaultMapHasChildDefaultMap, copiedDefaultMapHasBrand
5
9
  local ____DefaultMap = require("types.DefaultMap")
@@ -1,5 +1,10 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
5
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
6
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
7
+ local __TS__ArrayFind = ____lualib.__TS__ArrayFind
3
8
  local ____exports = {}
4
9
  local ____constants = require("constants")
5
10
  local MAX_NUM_DOORS = ____constants.MAX_NUM_DOORS
@@ -42,18 +42,6 @@ export declare function getFilteredNewEntities<T extends AnyEntity>(oldEntities:
42
42
  * returned. False by default. Will only be taken into account if `matchingEntityType` is specified.
43
43
  */
44
44
  export declare function getEntities(matchingEntityType?: EntityType | int, matchingVariant?: number, matchingSubType?: number, ignoreFriendly?: boolean): Entity[];
45
- /**
46
- * Helper function to get all of the pickups in the room.
47
- *
48
- * Example:
49
- * ```
50
- * // Make all of the pickups in the room invisible
51
- * for (const pickup of getPickups()) {
52
- * pickup.Visible = false;
53
- * }
54
- * ```
55
- */
56
- export declare function getPickups(matchingVariant?: PickupVariant | int, matchingSubType?: number): EntityPickup[];
57
45
  /**
58
46
  * Helper function to measure an entity's velocity to see if it is moving.
59
47
  *
@@ -87,15 +75,6 @@ export declare function removeEntities(entities: Entity[], cap?: int): boolean;
87
75
  * @returns True if one or more entities was removed, false otherwise.
88
76
  */
89
77
  export declare function removeAllMatchingEntities(entityType: int, entityVariant?: number, entitySubType?: number, cap?: int | undefined): boolean;
90
- /**
91
- * Helper function to remove all of the pickups in the room.
92
- *
93
- * @param variant Optional. If specified, will only remove pickups that match this variant.
94
- * @param subType Optional. If specified, will only remove pickups that match this sub-type.
95
- * @param cap Optional. If specified, will only remove the given amount of pickups.
96
- * @returns True if one or more pickups was removed, false otherwise.
97
- */
98
- export declare function removeAllPickups(variant?: PickupVariant | int, subType?: int, cap?: int): boolean;
99
78
  /**
100
79
  * Helper function to reroll an enemy. Use this instead of the vanilla "Game.RerollEnemy" function
101
80
  * if you want the rerolled enemy to be returned.
@@ -1,5 +1,10 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArraySome = ____lualib.__TS__ArraySome
4
+ local Set = ____lualib.Set
5
+ local __TS__New = ____lualib.__TS__New
6
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
7
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
8
  local ____exports = {}
4
9
  local ____constants = require("constants")
5
10
  local STORY_BOSSES = ____constants.STORY_BOSSES
@@ -58,23 +63,6 @@ function ____exports.getEntities(self, matchingEntityType, matchingVariant, matc
58
63
  end
59
64
  return Isaac.FindByType(matchingEntityType, matchingVariant, matchingSubType, ignoreFriendly)
60
65
  end
61
- function ____exports.getPickups(self, matchingVariant, matchingSubType)
62
- if matchingVariant == nil then
63
- matchingVariant = -1
64
- end
65
- if matchingSubType == nil then
66
- matchingSubType = -1
67
- end
68
- local entities = ____exports.getEntities(nil, EntityType.ENTITY_PICKUP, matchingVariant, matchingSubType)
69
- local pickups = {}
70
- for ____, entity in ipairs(entities) do
71
- local pickup = entity:ToPickup()
72
- if pickup ~= nil then
73
- __TS__ArrayPush(pickups, pickup)
74
- end
75
- end
76
- return pickups
77
- end
78
66
  function ____exports.isEntityMoving(self, entity, threshold)
79
67
  if threshold == nil then
80
68
  threshold = 0.01
@@ -111,10 +99,6 @@ function ____exports.removeAllMatchingEntities(self, entityType, entityVariant,
111
99
  local entities = ____exports.getEntities(nil, entityType, entityVariant, entitySubType)
112
100
  return ____exports.removeEntities(nil, entities, cap)
113
101
  end
114
- function ____exports.removeAllPickups(self, variant, subType, cap)
115
- local pickups = ____exports.getPickups(nil, variant, subType)
116
- return ____exports.removeEntities(nil, pickups, cap)
117
- end
118
102
  function ____exports.rerollEnemy(self, entity)
119
103
  local game = Game()
120
104
  local oldEntities = ____exports.getEntities(nil)
@@ -1,5 +1,6 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
4
  local ____exports = {}
4
5
  local ____entity = require("functions.entity")
5
6
  local getEntities = ____entity.getEntities
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
4
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
3
5
  local ____exports = {}
4
6
  local ____constants = require("constants")
5
7
  local FAMILIARS_THAT_SHOOT_PLAYER_TEARS = ____constants.FAMILIARS_THAT_SHOOT_PLAYER_TEARS
@@ -1,5 +1,8 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
5
+ local __TS__Iterator = ____lualib.__TS__Iterator
3
6
  local ____exports = {}
4
7
  local ____collectibleCacheFlag = require("functions.collectibleCacheFlag")
5
8
  local getCollectiblesForCacheFlag = ____collectibleCacheFlag.getCollectiblesForCacheFlag
@@ -1,5 +1,10 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
5
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
6
+ local __TS__ArraySort = ____lualib.__TS__ArraySort
7
+ local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
3
8
  local ____exports = {}
4
9
  local twoDimensionalSort
5
10
  local ____log = require("functions.log")
@@ -1,5 +1,11 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
5
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
6
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
7
+ local Map = ____lualib.Map
8
+ local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
3
9
  local ____exports = {}
4
10
  local getAllGridEntities
5
11
  local ____constants = require("constants")
@@ -1,5 +1,11 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local Set = ____lualib.Set
4
+ local __TS__New = ____lualib.__TS__New
5
+ local __TS__StringReplace = ____lualib.__TS__StringReplace
6
+ local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
7
+ local __TS__ArraySome = ____lualib.__TS__ArraySome
8
+ local __TS__StringSlice = ____lualib.__TS__StringSlice
3
9
  local ____exports = {}
4
10
  local ____constants = require("constants")
5
11
  local MAX_NUM_INPUTS = ____constants.MAX_NUM_INPUTS
@@ -1,5 +1,7 @@
1
1
  --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
2
+ local ____lualib = require("lualib_bundle")
3
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
4
+ local __TS__ArrayMap = ____lualib.__TS__ArrayMap
3
5
  local ____exports = {}
4
6
  local getTotalWeightOfJSONRooms, getJSONRoomWithChosenWeight
5
7
  local ____array = require("functions.array")
@@ -39,6 +39,7 @@ export declare function logEntity(this: void, entity: Entity): void;
39
39
  export declare function logKColor(this: void, kColor: KColor): void;
40
40
  export declare function logMap(this: void, map: Map<AnyNotNil, unknown>): void;
41
41
  /** Helper function for printing out information about the current room. */
42
+ export declare function logRoom(this: void): void;
42
43
  export declare function logTable(this: void, table: unknown, parentTables?: number): void;
43
44
  export declare function logTemporaryEffects(this: void, player: EntityPlayer): void;
44
45
  export declare function logSet(this: void, set: Set<AnyNotNil>): void;