isaacscript-common 6.11.0 → 6.12.0

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 (253) hide show
  1. package/dist/callbacks/postFlip.lua +2 -2
  2. package/dist/callbacks/postGridEntityCustomRender.d.ts +2 -0
  3. package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -0
  4. package/dist/callbacks/postGridEntityCustomRender.lua +36 -0
  5. package/dist/callbacks/postGridEntityCustomUpdate.d.ts +2 -0
  6. package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -0
  7. package/dist/callbacks/postGridEntityCustomUpdate.lua +36 -0
  8. package/dist/callbacks/postNewRoomEarly.lua +2 -2
  9. package/dist/callbacks/postPickupInitFirst.lua +1 -20
  10. package/dist/callbacks/postPlayerFatalDamage.lua +1 -1
  11. package/dist/callbacks/postPlayerInitFirst.d.ts +2 -0
  12. package/dist/callbacks/postPlayerInitFirst.d.ts.map +1 -0
  13. package/dist/callbacks/postPlayerInitFirst.lua +42 -0
  14. package/dist/callbacks/postPlayerInitLate.lua +5 -5
  15. package/dist/callbacks/postPlayerReorderedCallbacks.d.ts +2 -0
  16. package/dist/callbacks/postPlayerReorderedCallbacks.d.ts.map +1 -0
  17. package/dist/callbacks/{postPlayerReordered.lua → postPlayerReorderedCallbacks.lua} +11 -37
  18. package/dist/callbacks/reorderedCallbacks.d.ts +5 -5
  19. package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
  20. package/dist/callbacks/reorderedCallbacks.lua +5 -5
  21. package/dist/callbacks/subscriptions/postFirstFlip.d.ts +1 -1
  22. package/dist/callbacks/subscriptions/postFirstFlip.d.ts.map +1 -1
  23. package/dist/callbacks/subscriptions/postFirstFlip.lua +2 -2
  24. package/dist/callbacks/subscriptions/postFlip.d.ts +1 -1
  25. package/dist/callbacks/subscriptions/postFlip.d.ts.map +1 -1
  26. package/dist/callbacks/subscriptions/postFlip.lua +2 -2
  27. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +6 -0
  28. package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -0
  29. package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +29 -0
  30. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +6 -0
  31. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -0
  32. package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +29 -0
  33. package/dist/callbacks/subscriptions/{postPlayerInitReordered.d.ts → postPlayerInitFirst.d.ts} +2 -2
  34. package/dist/callbacks/subscriptions/postPlayerInitFirst.d.ts.map +1 -0
  35. package/dist/callbacks/subscriptions/{postPlayerInitReordered.lua → postPlayerInitFirst.lua} +3 -3
  36. package/dist/constants.d.ts +1 -5
  37. package/dist/constants.d.ts.map +1 -1
  38. package/dist/constants.lua +0 -7
  39. package/dist/constantsFirstLast.d.ts +5 -1
  40. package/dist/constantsFirstLast.d.ts.map +1 -1
  41. package/dist/constantsFirstLast.lua +6 -0
  42. package/dist/enums/ModCallbackCustom.d.ts +106 -81
  43. package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
  44. package/dist/enums/ModCallbackCustom.lua +63 -59
  45. package/dist/enums/private/StageTravelState.d.ts +9 -0
  46. package/dist/enums/private/StageTravelState.d.ts.map +1 -0
  47. package/dist/enums/private/StageTravelState.lua +15 -0
  48. package/dist/enums/private/TrapdoorAnimation.d.ts +6 -0
  49. package/dist/enums/private/TrapdoorAnimation.d.ts.map +1 -0
  50. package/dist/enums/private/TrapdoorAnimation.lua +6 -0
  51. package/dist/features/customGridEntity.d.ts +17 -5
  52. package/dist/features/customGridEntity.d.ts.map +1 -1
  53. package/dist/features/customGridEntity.lua +86 -17
  54. package/dist/features/customStage/exports.d.ts.map +1 -1
  55. package/dist/features/customStage/exports.lua +0 -13
  56. package/dist/features/customStage/init.d.ts.map +1 -1
  57. package/dist/features/customStage/init.lua +24 -2
  58. package/dist/features/customStage/streakText.d.ts +6 -0
  59. package/dist/features/customStage/streakText.d.ts.map +1 -1
  60. package/dist/features/customStage/streakText.lua +16 -12
  61. package/dist/features/customStage/versusScreen.d.ts +6 -0
  62. package/dist/features/customStage/versusScreen.d.ts.map +1 -1
  63. package/dist/features/customStage/versusScreen.lua +10 -5
  64. package/dist/features/customTrapdoor/blackSprite.d.ts +2 -0
  65. package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -0
  66. package/dist/features/customTrapdoor/blackSprite.lua +19 -0
  67. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +15 -0
  68. package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -0
  69. package/dist/features/customTrapdoor/customTrapdoorConstants.lua +16 -0
  70. package/dist/features/customTrapdoor/exports.d.ts +29 -0
  71. package/dist/features/customTrapdoor/exports.d.ts.map +1 -0
  72. package/dist/features/customTrapdoor/exports.lua +93 -0
  73. package/dist/features/customTrapdoor/init.d.ts +3 -0
  74. package/dist/features/customTrapdoor/init.d.ts.map +1 -0
  75. package/dist/features/customTrapdoor/init.lua +174 -0
  76. package/dist/features/customTrapdoor/openClose.d.ts +5 -0
  77. package/dist/features/customTrapdoor/openClose.d.ts.map +1 -0
  78. package/dist/features/customTrapdoor/openClose.lua +60 -0
  79. package/dist/features/customTrapdoor/touched.d.ts +4 -0
  80. package/dist/features/customTrapdoor/touched.d.ts.map +1 -0
  81. package/dist/features/customTrapdoor/touched.lua +159 -0
  82. package/dist/features/customTrapdoor/v.d.ts +18 -0
  83. package/dist/features/customTrapdoor/v.d.ts.map +1 -0
  84. package/dist/features/customTrapdoor/v.lua +17 -0
  85. package/dist/features/deployJSONRoom.d.ts +2 -2
  86. package/dist/features/deployJSONRoom.d.ts.map +1 -1
  87. package/dist/features/deployJSONRoom.lua +3 -3
  88. package/dist/features/extraConsoleCommands/init.d.ts.map +1 -1
  89. package/dist/features/extraConsoleCommands/init.lua +3 -1
  90. package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
  91. package/dist/features/extraConsoleCommands/listCommands.lua +6 -6
  92. package/dist/features/pause.d.ts +1 -1
  93. package/dist/features/pause.d.ts.map +1 -1
  94. package/dist/features/pause.lua +87 -8
  95. package/dist/features/persistentEntities.d.ts.map +1 -1
  96. package/dist/features/persistentEntities.lua +7 -7
  97. package/dist/features/pickupIndex.d.ts +19 -0
  98. package/dist/features/pickupIndex.d.ts.map +1 -0
  99. package/dist/features/pickupIndex.lua +197 -0
  100. package/dist/features/roomHistory.d.ts +24 -0
  101. package/dist/features/roomHistory.d.ts.map +1 -0
  102. package/dist/features/roomHistory.lua +89 -0
  103. package/dist/features/taintedLazarusPlayers.d.ts.map +1 -1
  104. package/dist/features/taintedLazarusPlayers.lua +13 -21
  105. package/dist/functions/{character.d.ts → characters.d.ts} +3 -1
  106. package/dist/functions/characters.d.ts.map +1 -0
  107. package/dist/functions/{character.lua → characters.lua} +12 -0
  108. package/dist/functions/collectibles.d.ts +26 -13
  109. package/dist/functions/collectibles.d.ts.map +1 -1
  110. package/dist/functions/collectibles.lua +26 -13
  111. package/dist/functions/entities.d.ts +3 -3
  112. package/dist/functions/entities.d.ts.map +1 -1
  113. package/dist/functions/entities.lua +8 -3
  114. package/dist/functions/gridEntities.d.ts +2 -2
  115. package/dist/functions/gridEntities.lua +2 -2
  116. package/dist/functions/isaacAPIClass.d.ts +64 -0
  117. package/dist/functions/isaacAPIClass.d.ts.map +1 -1
  118. package/dist/functions/isaacAPIClass.lua +84 -1
  119. package/dist/functions/log.lua +3 -3
  120. package/dist/functions/pickupVariants.d.ts +2 -2
  121. package/dist/functions/pickupVariants.d.ts.map +1 -1
  122. package/dist/functions/pickupVariants.lua +2 -2
  123. package/dist/functions/playerCenter.lua +2 -2
  124. package/dist/functions/playerIndex.d.ts +11 -5
  125. package/dist/functions/playerIndex.d.ts.map +1 -1
  126. package/dist/functions/playerIndex.lua +19 -26
  127. package/dist/functions/players.lua +4 -4
  128. package/dist/functions/revive.lua +2 -2
  129. package/dist/functions/roomData.d.ts +3 -2
  130. package/dist/functions/roomData.d.ts.map +1 -1
  131. package/dist/functions/roomData.lua +3 -2
  132. package/dist/functions/rooms.d.ts +6 -6
  133. package/dist/functions/rooms.lua +6 -6
  134. package/dist/functions/stage.d.ts +1 -0
  135. package/dist/functions/stage.d.ts.map +1 -1
  136. package/dist/functions/stage.lua +4 -0
  137. package/dist/functions/table.d.ts +1 -1
  138. package/dist/functions/table.d.ts.map +1 -1
  139. package/dist/index.d.ts +6 -2
  140. package/dist/index.d.ts.map +1 -1
  141. package/dist/index.lua +33 -2
  142. package/dist/initCustomCallbacks.d.ts.map +1 -1
  143. package/dist/initCustomCallbacks.lua +11 -2
  144. package/dist/initFeatures.d.ts +1 -2
  145. package/dist/initFeatures.d.ts.map +1 -1
  146. package/dist/initFeatures.lua +16 -2
  147. package/dist/interfaces/AddCallbackParameterCustom.d.ts +6 -2
  148. package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +1 -1
  149. package/dist/interfaces/CustomGridEntityData.d.ts +6 -2
  150. package/dist/interfaces/CustomGridEntityData.d.ts.map +1 -1
  151. package/dist/interfaces/RoomDescription.d.ts +14 -0
  152. package/dist/interfaces/RoomDescription.d.ts.map +1 -0
  153. package/dist/interfaces/RoomDescription.lua +2 -0
  154. package/dist/interfaces/private/CustomTrapdoorDescription.d.ts +7 -0
  155. package/dist/interfaces/private/CustomTrapdoorDescription.d.ts.map +1 -0
  156. package/dist/interfaces/private/CustomTrapdoorDescription.lua +2 -0
  157. package/dist/lib/jsonLua.lua +2 -0
  158. package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
  159. package/dist/objects/callbackRegisterFunctions.lua +9 -3
  160. package/dist/objects/characterDamageMultipliers.d.ts +6 -0
  161. package/dist/objects/characterDamageMultipliers.d.ts.map +1 -0
  162. package/dist/objects/characterDamageMultipliers.lua +49 -0
  163. package/dist/types/CollectibleIndex.d.ts +1 -1
  164. package/dist/types/PickupIndex.d.ts +17 -0
  165. package/dist/types/PickupIndex.d.ts.map +1 -0
  166. package/dist/types/PickupIndex.lua +2 -0
  167. package/dist/types/PlayerIndex.d.ts +1 -1
  168. package/dist/upgradeMod.lua +2 -4
  169. package/package.json +2 -2
  170. package/src/callbacks/customRevive.ts +3 -3
  171. package/src/callbacks/itemPickup.ts +3 -3
  172. package/src/callbacks/postAmbush.ts +3 -3
  173. package/src/callbacks/postEsauJr.ts +3 -3
  174. package/src/callbacks/postFlip.ts +6 -5
  175. package/src/callbacks/postGridEntity.ts +5 -5
  176. package/src/callbacks/postGridEntityCustomRender.ts +44 -0
  177. package/src/callbacks/postGridEntityCustomUpdate.ts +44 -0
  178. package/src/callbacks/postNewRoomEarly.ts +2 -2
  179. package/src/callbacks/postPickupInitFirst.ts +1 -32
  180. package/src/callbacks/postPlayerCollectible.ts +2 -2
  181. package/src/callbacks/postPlayerFatalDamage.ts +5 -0
  182. package/src/callbacks/postPlayerInitFirst.ts +57 -0
  183. package/src/callbacks/postPlayerInitLate.ts +9 -5
  184. package/src/callbacks/{postPlayerReordered.ts → postPlayerReorderedCallbacks.ts} +12 -32
  185. package/src/callbacks/postSlotInitUpdate.ts +5 -2
  186. package/src/callbacks/postSlotRender.ts +2 -2
  187. package/src/callbacks/reorderedCallbacks.ts +10 -9
  188. package/src/callbacks/subscriptions/postFirstFlip.ts +6 -3
  189. package/src/callbacks/subscriptions/postFlip.ts +6 -3
  190. package/src/callbacks/subscriptions/postGridEntityCustomRender.ts +41 -0
  191. package/src/callbacks/subscriptions/postGridEntityCustomUpdate.ts +41 -0
  192. package/src/callbacks/subscriptions/{postPlayerInitReordered.ts → postPlayerInitFirst.ts} +6 -6
  193. package/src/constants.ts +1 -9
  194. package/src/constantsFirstLast.ts +16 -0
  195. package/src/enums/ModCallbackCustom.ts +52 -25
  196. package/src/enums/private/StageTravelState.ts +8 -0
  197. package/src/enums/private/TrapdoorAnimation.ts +5 -0
  198. package/src/features/customGridEntity.ts +118 -12
  199. package/src/features/customStage/exports.ts +3 -22
  200. package/src/features/customStage/init.ts +30 -1
  201. package/src/features/customStage/streakText.ts +13 -5
  202. package/src/features/customStage/versusScreen.ts +20 -12
  203. package/src/features/customTrapdoor/blackSprite.ts +16 -0
  204. package/src/features/customTrapdoor/customTrapdoorConstants.ts +23 -0
  205. package/src/features/customTrapdoor/exports.ts +99 -0
  206. package/src/features/customTrapdoor/init.ts +217 -0
  207. package/src/features/customTrapdoor/openClose.ts +103 -0
  208. package/src/features/customTrapdoor/touched.ts +195 -0
  209. package/src/features/customTrapdoor/v.ts +26 -0
  210. package/src/features/deployJSONRoom.ts +10 -5
  211. package/src/features/extraConsoleCommands/init.ts +5 -2
  212. package/src/features/extraConsoleCommands/listCommands.ts +6 -8
  213. package/src/features/pause.ts +97 -7
  214. package/src/features/persistentEntities.ts +9 -8
  215. package/src/features/pickupIndex.ts +257 -0
  216. package/src/features/playerInventory.ts +2 -2
  217. package/src/features/roomHistory.ts +113 -0
  218. package/src/features/saveDataManager/main.ts +3 -3
  219. package/src/features/taintedLazarusPlayers.ts +37 -36
  220. package/src/functions/{character.ts → characters.ts} +13 -0
  221. package/src/functions/collectibles.ts +26 -13
  222. package/src/functions/deepCopy.ts +2 -2
  223. package/src/functions/entities.ts +7 -4
  224. package/src/functions/gridEntities.ts +2 -2
  225. package/src/functions/isaacAPIClass.ts +106 -1
  226. package/src/functions/pickupVariants.ts +2 -2
  227. package/src/functions/playerCenter.ts +2 -2
  228. package/src/functions/playerIndex.ts +26 -23
  229. package/src/functions/players.ts +1 -1
  230. package/src/functions/revive.ts +1 -1
  231. package/src/functions/rng.ts +1 -1
  232. package/src/functions/roomData.ts +3 -2
  233. package/src/functions/rooms.ts +6 -6
  234. package/src/functions/stage.ts +10 -1
  235. package/src/functions/table.ts +2 -2
  236. package/src/index.ts +9 -2
  237. package/src/initCustomCallbacks.ts +7 -1
  238. package/src/initFeatures.ts +13 -2
  239. package/src/interfaces/AddCallbackParameterCustom.ts +6 -2
  240. package/src/interfaces/CustomGridEntityData.ts +7 -2
  241. package/src/interfaces/RoomDescription.ts +19 -0
  242. package/src/interfaces/private/CustomTrapdoorDescription.ts +7 -0
  243. package/src/lib/jsonLua.lua +2 -0
  244. package/src/objects/callbackRegisterFunctions.ts +8 -3
  245. package/src/objects/characterDamageMultipliers.ts +49 -0
  246. package/src/types/CollectibleIndex.ts +1 -1
  247. package/src/types/PickupIndex.ts +15 -0
  248. package/src/types/PlayerIndex.ts +1 -1
  249. package/src/upgradeMod.ts +4 -4
  250. package/dist/callbacks/postPlayerReordered.d.ts +0 -2
  251. package/dist/callbacks/postPlayerReordered.d.ts.map +0 -1
  252. package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts.map +0 -1
  253. package/dist/functions/character.d.ts.map +0 -1
@@ -33,9 +33,9 @@ function useItemFlip(self, _collectibleType, _rng, player, _useFlags, _activeSlo
33
33
  end
34
34
  if not v.run.usedFlipAtLeastOnce then
35
35
  v.run.usedFlipAtLeastOnce = true
36
- postFirstFlipFire(nil, newLazarus)
36
+ postFirstFlipFire(nil, newLazarus, player)
37
37
  end
38
- postFlipFire(nil, newLazarus)
38
+ postFlipFire(nil, newLazarus, player)
39
39
  return nil
40
40
  end
41
41
  function getNewLazarus(self, oldLazarus)
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=postGridEntityCustomRender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postGridEntityCustomRender.d.ts","sourceRoot":"","sources":["../../src/callbacks/postGridEntityCustomRender.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Map = ____lualib.Map
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local hasSubscriptions, postRender
6
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
+ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
8
+ local ____customGridEntity = require("features.customGridEntity")
9
+ local getCustomGridEntities = ____customGridEntity.getCustomGridEntities
10
+ local ____exports = require("features.saveDataManager.exports")
11
+ local saveDataManager = ____exports.saveDataManager
12
+ local ____postGridEntityCustomRender = require("callbacks.subscriptions.postGridEntityCustomRender")
13
+ local postGridEntityCustomRenderFire = ____postGridEntityCustomRender.postGridEntityCustomRenderFire
14
+ local postGridEntityCustomRenderHasSubscriptions = ____postGridEntityCustomRender.postGridEntityCustomRenderHasSubscriptions
15
+ function hasSubscriptions(self)
16
+ return postGridEntityCustomRenderHasSubscriptions(nil)
17
+ end
18
+ function postRender(self)
19
+ if not hasSubscriptions(nil) then
20
+ return
21
+ end
22
+ local customGridEntities = getCustomGridEntities(nil)
23
+ for ____, ____value in ipairs(customGridEntities) do
24
+ local gridEntity = ____value[1]
25
+ local data = ____value[2]
26
+ postGridEntityCustomRenderFire(nil, gridEntity, data.gridEntityTypeCustom)
27
+ end
28
+ end
29
+ local v = {room = {initializedGridEntities = __TS__New(Map)}}
30
+ ---
31
+ -- @internal
32
+ function ____exports.postGridEntityCustomRenderInit(self, mod)
33
+ saveDataManager(nil, "postGridEntityCustomRender", v, hasSubscriptions)
34
+ mod:AddCallback(ModCallback.POST_RENDER, postRender)
35
+ end
36
+ return ____exports
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=postGridEntityCustomUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postGridEntityCustomUpdate.d.ts","sourceRoot":"","sources":["../../src/callbacks/postGridEntityCustomUpdate.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Map = ____lualib.Map
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local hasSubscriptions, postUpdate
6
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
+ local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
8
+ local ____customGridEntity = require("features.customGridEntity")
9
+ local getCustomGridEntities = ____customGridEntity.getCustomGridEntities
10
+ local ____exports = require("features.saveDataManager.exports")
11
+ local saveDataManager = ____exports.saveDataManager
12
+ local ____postGridEntityCustomUpdate = require("callbacks.subscriptions.postGridEntityCustomUpdate")
13
+ local postGridEntityCustomUpdateFire = ____postGridEntityCustomUpdate.postGridEntityCustomUpdateFire
14
+ local postGridEntityCustomUpdateHasSubscriptions = ____postGridEntityCustomUpdate.postGridEntityCustomUpdateHasSubscriptions
15
+ function hasSubscriptions(self)
16
+ return postGridEntityCustomUpdateHasSubscriptions(nil)
17
+ end
18
+ function postUpdate(self)
19
+ if not hasSubscriptions(nil) then
20
+ return
21
+ end
22
+ local customGridEntities = getCustomGridEntities(nil)
23
+ for ____, ____value in ipairs(customGridEntities) do
24
+ local gridEntity = ____value[1]
25
+ local data = ____value[2]
26
+ postGridEntityCustomUpdateFire(nil, gridEntity, data.gridEntityTypeCustom)
27
+ end
28
+ end
29
+ local v = {room = {initializedGridEntities = __TS__New(Map)}}
30
+ ---
31
+ -- @internal
32
+ function ____exports.postGridEntityCustomUpdateInit(self, mod)
33
+ saveDataManager(nil, "postGridEntityCustomUpdate", v, hasSubscriptions)
34
+ mod:AddCallback(ModCallback.POST_UPDATE, postUpdate)
35
+ end
36
+ return ____exports
@@ -38,14 +38,14 @@ function checkRoomChanged(self)
38
38
  if topLeftWall == nil then
39
39
  topLeftWall = spawnGridEntity(nil, GridEntityType.WALL, topLeftWallGridIndex)
40
40
  if topLeftWall == nil then
41
- logError("Failed to spawn a new wall (1) for the PostNewRoomEarly callback.")
41
+ logError("Failed to spawn a new wall (1) for the POST_NEW_ROOM_EARLY callback.")
42
42
  return
43
43
  end
44
44
  end
45
45
  if topLeftWall2 == nil then
46
46
  topLeftWall2 = spawnGridEntity(nil, GridEntityType.WALL, rightOfTopWallGridIndex)
47
47
  if topLeftWall2 == nil then
48
- logError("Failed to spawn a new wall (2) for the PostNewRoomEarly callback.")
48
+ logError("Failed to spawn a new wall (2) for the POST_NEW_ROOM_EARLY callback.")
49
49
  return
50
50
  end
51
51
  end
@@ -1,16 +1,9 @@
1
- local ____lualib = require("lualib_bundle")
2
- local Set = ____lualib.Set
3
- local __TS__New = ____lualib.__TS__New
4
1
  local ____exports = {}
5
- local hasSubscriptions, postPickupInit, POST_ASCENT_ROOM_TYPES, v
2
+ local hasSubscriptions, postPickupInit
6
3
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
- local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
8
4
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
9
- local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
10
5
  local ____cachedClasses = require("cachedClasses")
11
6
  local game = ____cachedClasses.game
12
- local ____exports = require("features.saveDataManager.exports")
13
- local saveDataManager = ____exports.saveDataManager
14
7
  local ____roomData = require("functions.roomData")
15
8
  local getRoomVisitedCount = ____roomData.getRoomVisitedCount
16
9
  local ____postPickupInitFirst = require("callbacks.subscriptions.postPickupInitFirst")
@@ -24,12 +17,7 @@ function postPickupInit(self, pickup)
24
17
  return
25
18
  end
26
19
  local room = game:GetRoom()
27
- local roomType = room:GetType()
28
20
  local roomFrameCount = room:GetFrameCount()
29
- local previouslySeen = v.run.postAscentPickupInitSeeds:has(pickup.InitSeed)
30
- if POST_ASCENT_ROOM_TYPES:has(roomType) then
31
- v.run.postAscentPickupInitSeeds:add(pickup.InitSeed)
32
- end
33
21
  if roomFrameCount > 0 then
34
22
  postPickupInitFirstFire(nil, pickup)
35
23
  return
@@ -38,18 +26,11 @@ function postPickupInit(self, pickup)
38
26
  if roomVisitedCount > 0 then
39
27
  return
40
28
  end
41
- local onAscent = game:GetStateFlag(GameStateFlag.BACKWARDS_PATH)
42
- if onAscent and POST_ASCENT_ROOM_TYPES:has(roomType) and previouslySeen then
43
- return
44
- end
45
29
  postPickupInitFirstFire(nil, pickup)
46
30
  end
47
- POST_ASCENT_ROOM_TYPES = __TS__New(Set, {RoomType.TREASURE, RoomType.BOSS})
48
- v = {run = {postAscentPickupInitSeeds = __TS__New(Set)}}
49
31
  ---
50
32
  -- @internal
51
33
  function ____exports.postPickupInitFirstInit(self, mod)
52
- saveDataManager(nil, "postPickupInitFirst", v, hasSubscriptions)
53
34
  mod:AddCallback(ModCallback.POST_PICKUP_INIT, postPickupInit)
54
35
  end
55
36
  return ____exports
@@ -68,7 +68,7 @@ function entityTakeDmgPlayer(self, tookDamage, damageAmount, damageFlags, damage
68
68
  end
69
69
  return nil
70
70
  end
71
- function preUseItemBible(self, _collectibleType, _rng, player)
71
+ function preUseItemBible(self, _collectibleType, _rng, player, _useFlags, _activeSlot, _customVarData)
72
72
  if not hasSubscriptions(nil) then
73
73
  return nil
74
74
  end
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=postPlayerInitFirst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postPlayerInitFirst.d.ts","sourceRoot":"","sources":["../../src/callbacks/postPlayerInitFirst.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ local ____exports = {}
2
+ local hasSubscriptions, postNewRoomReordered, postPlayerInitLate
3
+ local ____ModCallbackCustom = require("enums.ModCallbackCustom")
4
+ local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
5
+ local ____playerIndex = require("functions.playerIndex")
6
+ local getPlayers = ____playerIndex.getPlayers
7
+ local isChildPlayer = ____playerIndex.isChildPlayer
8
+ local ____rooms = require("functions.rooms")
9
+ local inGenesisRoom = ____rooms.inGenesisRoom
10
+ local ____postPlayerInitFirst = require("callbacks.subscriptions.postPlayerInitFirst")
11
+ local postPlayerInitFirstFire = ____postPlayerInitFirst.postPlayerInitFirstFire
12
+ local postPlayerInitFirstHasSubscriptions = ____postPlayerInitFirst.postPlayerInitFirstHasSubscriptions
13
+ function hasSubscriptions(self)
14
+ return postPlayerInitFirstHasSubscriptions(nil)
15
+ end
16
+ function postNewRoomReordered(self)
17
+ if not hasSubscriptions(nil) then
18
+ return
19
+ end
20
+ if not inGenesisRoom(nil) then
21
+ return
22
+ end
23
+ for ____, player in ipairs(getPlayers(nil)) do
24
+ postPlayerInitFirstFire(nil, player)
25
+ end
26
+ end
27
+ function postPlayerInitLate(self, player)
28
+ if not hasSubscriptions(nil) then
29
+ return
30
+ end
31
+ if isChildPlayer(nil, player) then
32
+ return
33
+ end
34
+ postPlayerInitFirstFire(nil, player)
35
+ end
36
+ ---
37
+ -- @internal
38
+ function ____exports.postPlayerInitFirstInit(self, mod)
39
+ mod:AddCallbackCustom(ModCallbackCustom.POST_NEW_ROOM_REORDERED, postNewRoomReordered)
40
+ mod:AddCallbackCustom(ModCallbackCustom.POST_PLAYER_INIT_LATE, postPlayerInitLate)
41
+ end
42
+ return ____exports
@@ -2,9 +2,9 @@ local ____lualib = require("lualib_bundle")
2
2
  local Set = ____lualib.Set
3
3
  local __TS__New = ____lualib.__TS__New
4
4
  local ____exports = {}
5
- local hasSubscriptions, postPlayerUpdate, v
6
- local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
7
- local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
5
+ local hasSubscriptions, postPEffectUpdateReordered, v
6
+ local ____ModCallbackCustom = require("enums.ModCallbackCustom")
7
+ local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
8
8
  local ____exports = require("features.saveDataManager.exports")
9
9
  local saveDataManager = ____exports.saveDataManager
10
10
  local ____playerDataStructures = require("functions.playerDataStructures")
@@ -16,7 +16,7 @@ local postPlayerInitLateHasSubscriptions = ____postPlayerInitLate.postPlayerInit
16
16
  function hasSubscriptions(self)
17
17
  return postPlayerInitLateHasSubscriptions(nil)
18
18
  end
19
- function postPlayerUpdate(self, player)
19
+ function postPEffectUpdateReordered(self, player)
20
20
  if not hasSubscriptions(nil) then
21
21
  return
22
22
  end
@@ -30,6 +30,6 @@ v = {run = {playersFiredSet = __TS__New(Set)}}
30
30
  -- @internal
31
31
  function ____exports.postPlayerInitLateInit(self, mod)
32
32
  saveDataManager(nil, "postPlayerInitLate", v, hasSubscriptions)
33
- mod:AddCallback(ModCallback.POST_PLAYER_UPDATE, postPlayerUpdate)
33
+ mod:AddCallbackCustom(ModCallbackCustom.POST_PEFFECT_UPDATE_REORDERED, postPEffectUpdateReordered)
34
34
  end
35
35
  return ____exports
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=postPlayerReorderedCallbacks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postPlayerReorderedCallbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks/postPlayerReorderedCallbacks.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  local ____exports = {}
2
- local hasSubscriptions, postPEffectUpdate, postPlayerInit, postPlayerUpdate, postPlayerRender, postGameStarted, dequeue, v
2
+ local hasSubscriptions, postPEffectUpdate, postPlayerUpdate, postPlayerRender, postGameStarted, dequeue, v
3
3
  local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
4
4
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
5
5
  local ____exports = require("features.saveDataManager.exports")
@@ -12,9 +12,6 @@ local getPlayerIndex = ____playerIndex.getPlayerIndex
12
12
  local ____postPEffectUpdateReordered = require("callbacks.subscriptions.postPEffectUpdateReordered")
13
13
  local postPEffectUpdateReorderedFire = ____postPEffectUpdateReordered.postPEffectUpdateReorderedFire
14
14
  local postPEffectUpdateReorderedHasSubscriptions = ____postPEffectUpdateReordered.postPEffectUpdateReorderedHasSubscriptions
15
- local ____postPlayerInitReordered = require("callbacks.subscriptions.postPlayerInitReordered")
16
- local postPlayerInitReorderedFire = ____postPlayerInitReordered.postPlayerInitReorderedFire
17
- local postPlayerInitReorderedHasSubscriptions = ____postPlayerInitReordered.postPlayerInitReorderedHasSubscriptions
18
15
  local ____postPlayerRenderReordered = require("callbacks.subscriptions.postPlayerRenderReordered")
19
16
  local postPlayerRenderReorderedFire = ____postPlayerRenderReordered.postPlayerRenderReorderedFire
20
17
  local postPlayerRenderReorderedHasSubscriptions = ____postPlayerRenderReordered.postPlayerRenderReorderedHasSubscriptions
@@ -22,7 +19,7 @@ local ____postPlayerUpdateReordered = require("callbacks.subscriptions.postPlaye
22
19
  local postPlayerUpdateReorderedFire = ____postPlayerUpdateReordered.postPlayerUpdateReorderedFire
23
20
  local postPlayerUpdateReorderedHasSubscriptions = ____postPlayerUpdateReordered.postPlayerUpdateReorderedHasSubscriptions
24
21
  function hasSubscriptions(self)
25
- return postPlayerInitReorderedHasSubscriptions(nil) or postPEffectUpdateReorderedHasSubscriptions(nil) or postPlayerUpdateReorderedHasSubscriptions(nil) or postPlayerRenderReorderedHasSubscriptions(nil)
22
+ return postPEffectUpdateReorderedHasSubscriptions(nil) or postPlayerUpdateReorderedHasSubscriptions(nil) or postPlayerRenderReorderedHasSubscriptions(nil)
26
23
  end
27
24
  function postPEffectUpdate(self, player)
28
25
  if not hasSubscriptions(nil) then
@@ -36,18 +33,6 @@ function postPEffectUpdate(self, player)
36
33
  ____v_run_postPEffectUpdateQueue_0[#____v_run_postPEffectUpdateQueue_0 + 1] = playerIndex
37
34
  end
38
35
  end
39
- function postPlayerInit(self, player)
40
- if not hasSubscriptions(nil) then
41
- return
42
- end
43
- if v.run.postGameStartedFiredOnThisRun then
44
- postPlayerInitReorderedFire(nil, player)
45
- else
46
- local playerIndex = getPlayerIndex(nil, player)
47
- local ____v_run_postPlayerInitQueue_1 = v.run.postPlayerInitQueue
48
- ____v_run_postPlayerInitQueue_1[#____v_run_postPlayerInitQueue_1 + 1] = playerIndex
49
- end
50
- end
51
36
  function postPlayerUpdate(self, player)
52
37
  if not hasSubscriptions(nil) then
53
38
  return
@@ -56,8 +41,8 @@ function postPlayerUpdate(self, player)
56
41
  postPlayerUpdateReorderedFire(nil, player)
57
42
  else
58
43
  local playerIndex = getPlayerIndex(nil, player)
59
- local ____v_run_postPlayerUpdateQueue_2 = v.run.postPlayerUpdateQueue
60
- ____v_run_postPlayerUpdateQueue_2[#____v_run_postPlayerUpdateQueue_2 + 1] = playerIndex
44
+ local ____v_run_postPlayerUpdateQueue_1 = v.run.postPlayerUpdateQueue
45
+ ____v_run_postPlayerUpdateQueue_1[#____v_run_postPlayerUpdateQueue_1 + 1] = playerIndex
61
46
  end
62
47
  end
63
48
  function postPlayerRender(self, player)
@@ -68,8 +53,8 @@ function postPlayerRender(self, player)
68
53
  postPlayerRenderReorderedFire(nil, player)
69
54
  else
70
55
  local playerIndex = getPlayerIndex(nil, player)
71
- local ____v_run_postPlayerRenderQueue_3 = v.run.postPlayerRenderQueue
72
- ____v_run_postPlayerRenderQueue_3[#____v_run_postPlayerRenderQueue_3 + 1] = playerIndex
56
+ local ____v_run_postPlayerRenderQueue_2 = v.run.postPlayerRenderQueue
57
+ ____v_run_postPlayerRenderQueue_2[#____v_run_postPlayerRenderQueue_2 + 1] = playerIndex
73
58
  end
74
59
  end
75
60
  function postGameStarted(self)
@@ -77,38 +62,27 @@ function postGameStarted(self)
77
62
  return
78
63
  end
79
64
  v.run.postGameStartedFiredOnThisRun = true
80
- dequeue(nil, v.run.postPlayerInitQueue, postPlayerInitReorderedFire)
65
+ dequeue(nil, v.run.postPEffectUpdateQueue, postPEffectUpdateReorderedFire)
81
66
  dequeue(nil, v.run.postPlayerUpdateQueue, postPlayerUpdateReorderedFire)
82
67
  dequeue(nil, v.run.postPlayerRenderQueue, postPlayerRenderReorderedFire)
83
68
  end
84
69
  function dequeue(self, playerIndexes, fireFunction)
85
70
  for ____, playerIndex in ipairs(playerIndexes) do
86
- do
87
- local player = getPlayerFromIndex(nil, playerIndex)
88
- if player == nil then
89
- goto __continue23
90
- end
71
+ local player = getPlayerFromIndex(nil, playerIndex)
72
+ if player ~= nil then
91
73
  fireFunction(nil, player)
92
74
  end
93
- ::__continue23::
94
75
  end
95
76
  emptyArray(nil, playerIndexes)
96
77
  end
97
- v = {run = {
98
- postGameStartedFiredOnThisRun = false,
99
- postPlayerInitQueue = {},
100
- postPEffectUpdateQueue = {},
101
- postPlayerUpdateQueue = {},
102
- postPlayerRenderQueue = {}
103
- }}
78
+ v = {run = {postGameStartedFiredOnThisRun = false, postPEffectUpdateQueue = {}, postPlayerUpdateQueue = {}, postPlayerRenderQueue = {}}}
104
79
  ---
105
80
  -- @internal
106
81
  function ____exports.postPlayerReorderedCallbacksInit(self, mod)
107
82
  saveDataManager(nil, "postPlayerReordered", v, hasSubscriptions)
108
83
  mod:AddCallback(ModCallback.POST_PEFFECT_UPDATE, postPEffectUpdate)
109
- mod:AddCallback(ModCallback.POST_PLAYER_INIT, postPlayerInit)
84
+ mod:AddCallback(ModCallback.POST_GAME_STARTED, postGameStarted)
110
85
  mod:AddCallback(ModCallback.POST_PLAYER_UPDATE, postPlayerUpdate)
111
86
  mod:AddCallback(ModCallback.POST_PLAYER_RENDER, postPlayerRender)
112
- mod:AddCallback(ModCallback.POST_GAME_STARTED, postGameStarted)
113
87
  end
114
88
  return ____exports
@@ -4,9 +4,9 @@ import { LevelStage, StageType } from "isaac-typescript-definitions";
4
4
  * callback.
5
5
  *
6
6
  * If some specific cases, mods can change the current level during run initialization on the 0th
7
- * frame. However, due to how the callback reordering works, the custom PostNewLevel callback will
8
- * never fire on the 0th frame. To get around this, call this function before changing levels to
9
- * temporarily force the callback to fire.
7
+ * frame. However, due to how the callback reordering works, the custom `POST_NEW_LEVEL` callback
8
+ * will never fire on the 0th frame. To get around this, call this function before changing levels
9
+ * to temporarily force the callback to fire.
10
10
  */
11
11
  export declare function forceNewLevelCallback(): void;
12
12
  /**
@@ -14,8 +14,8 @@ export declare function forceNewLevelCallback(): void;
14
14
  * callback.
15
15
  *
16
16
  * If some specific cases, mods can change the current room during run initialization on the 0th
17
- * frame. However, due to how the callback reordering works, the custom PostNewRoom callback will
18
- * never fire on the 0th frame. To get around this, call this function before changing rooms to
17
+ * frame. However, due to how the callback reordering works, the custom `POST_NEW_ROOM` callback
18
+ * will never fire on the 0th frame. To get around this, call this function before changing rooms to
19
19
  * temporarily force the callback to fire.
20
20
  */
21
21
  export declare function forceNewRoomCallback(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"reorderedCallbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks/reorderedCallbacks.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAgItC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,IAAI,CAGN"}
1
+ {"version":3,"file":"reorderedCallbacks.d.ts","sourceRoot":"","sources":["../../src/callbacks/reorderedCallbacks.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,UAAU,EAEV,SAAS,EACV,MAAM,8BAA8B,CAAC;AAiItC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,IAAI,CAGN"}
@@ -90,9 +90,9 @@ end
90
90
  -- callback.
91
91
  --
92
92
  -- If some specific cases, mods can change the current level during run initialization on the 0th
93
- -- frame. However, due to how the callback reordering works, the custom PostNewLevel callback will
94
- -- never fire on the 0th frame. To get around this, call this function before changing levels to
95
- -- temporarily force the callback to fire.
93
+ -- frame. However, due to how the callback reordering works, the custom `POST_NEW_LEVEL` callback
94
+ -- will never fire on the 0th frame. To get around this, call this function before changing levels
95
+ -- to temporarily force the callback to fire.
96
96
  function ____exports.forceNewLevelCallback(self)
97
97
  forceNewLevel = true
98
98
  end
@@ -100,8 +100,8 @@ end
100
100
  -- callback.
101
101
  --
102
102
  -- If some specific cases, mods can change the current room during run initialization on the 0th
103
- -- frame. However, due to how the callback reordering works, the custom PostNewRoom callback will
104
- -- never fire on the 0th frame. To get around this, call this function before changing rooms to
103
+ -- frame. However, due to how the callback reordering works, the custom `POST_NEW_ROOM` callback
104
+ -- will never fire on the 0th frame. To get around this, call this function before changing rooms to
105
105
  -- temporarily force the callback to fire.
106
106
  function ____exports.forceNewRoomCallback(self)
107
107
  forceNewRoom = true
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostFirstFlipRegisterParameters = [
3
- callback: (player: EntityPlayer) => void
3
+ callback: (newLazarus: EntityPlayer, oldLazarus: EntityPlayer) => void
4
4
  ];
5
5
  //# sourceMappingURL=postFirstFlip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postFirstFlip.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postFirstFlip.ts"],"names":[],"mappings":";AAAA,oBAAY,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI;CACzC,CAAC"}
1
+ {"version":3,"file":"postFirstFlip.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postFirstFlip.ts"],"names":[],"mappings":";AAAA,oBAAY,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,KAAK,IAAI;CACvE,CAAC"}
@@ -13,10 +13,10 @@ function ____exports.postFirstFlipRegister(self, ...)
13
13
  end
14
14
  ---
15
15
  -- @internal
16
- function ____exports.postFirstFlipFire(self, player)
16
+ function ____exports.postFirstFlipFire(self, newLazarus, oldLazarus)
17
17
  for ____, ____value in ipairs(subscriptions) do
18
18
  local callback = ____value[1]
19
- callback(nil, player)
19
+ callback(nil, newLazarus, oldLazarus)
20
20
  end
21
21
  end
22
22
  return ____exports
@@ -1,5 +1,5 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  export declare type PostFlipRegisterParameters = [
3
- callback: (player: EntityPlayer) => void
3
+ callback: (newLazarus: EntityPlayer, oldLazarus: EntityPlayer) => void
4
4
  ];
5
5
  //# sourceMappingURL=postFlip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postFlip.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postFlip.ts"],"names":[],"mappings":";AAAA,oBAAY,0BAA0B,GAAG;IACvC,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI;CACzC,CAAC"}
1
+ {"version":3,"file":"postFlip.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postFlip.ts"],"names":[],"mappings":";AAAA,oBAAY,0BAA0B,GAAG;IACvC,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,KAAK,IAAI;CACvE,CAAC"}
@@ -13,10 +13,10 @@ function ____exports.postFlipRegister(self, ...)
13
13
  end
14
14
  ---
15
15
  -- @internal
16
- function ____exports.postFlipFire(self, player)
16
+ function ____exports.postFlipFire(self, newLazarus, oldLazarus)
17
17
  for ____, ____value in ipairs(subscriptions) do
18
18
  local callback = ____value[1]
19
- callback(nil, player)
19
+ callback(nil, newLazarus, oldLazarus)
20
20
  end
21
21
  end
22
22
  return ____exports
@@ -0,0 +1,6 @@
1
+ import { GridEntityType } from "isaac-typescript-definitions";
2
+ export declare type PostGridEntityCustomRenderRegisterParameters = [
3
+ callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
4
+ gridEntityTypeCustom?: GridEntityType
5
+ ];
6
+ //# sourceMappingURL=postGridEntityCustomRender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postGridEntityCustomRender.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCustomRender.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,oBAAY,4CAA4C,GAAG;IACzD,QAAQ,EAAE,CACR,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,cAAc,KACjC,IAAI;IACT,oBAAoB,CAAC,EAAE,cAAc;CACtC,CAAC"}
@@ -0,0 +1,29 @@
1
+ local ____exports = {}
2
+ local subscriptions = {}
3
+ ---
4
+ -- @internal
5
+ function ____exports.postGridEntityCustomRenderHasSubscriptions(self)
6
+ return #subscriptions > 0
7
+ end
8
+ ---
9
+ -- @internal
10
+ function ____exports.postGridEntityCustomRenderRegister(self, ...)
11
+ local args = {...}
12
+ subscriptions[#subscriptions + 1] = args
13
+ end
14
+ ---
15
+ -- @internal
16
+ function ____exports.postGridEntityCustomRenderFire(self, gridEntity, gridEntityTypeCustom)
17
+ for ____, ____value in ipairs(subscriptions) do
18
+ local callback = ____value[1]
19
+ local callbackGridEntityTypeCustom = ____value[2]
20
+ do
21
+ if callbackGridEntityTypeCustom ~= nil and callbackGridEntityTypeCustom ~= gridEntityTypeCustom then
22
+ goto __continue5
23
+ end
24
+ callback(nil, gridEntity, gridEntityTypeCustom)
25
+ end
26
+ ::__continue5::
27
+ end
28
+ end
29
+ return ____exports
@@ -0,0 +1,6 @@
1
+ import { GridEntityType } from "isaac-typescript-definitions";
2
+ export declare type PostGridEntityCustomUpdateRegisterParameters = [
3
+ callback: (gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType) => void,
4
+ gridEntityTypeCustom?: GridEntityType
5
+ ];
6
+ //# sourceMappingURL=postGridEntityCustomUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postGridEntityCustomUpdate.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postGridEntityCustomUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,oBAAY,4CAA4C,GAAG;IACzD,QAAQ,EAAE,CACR,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,cAAc,KACjC,IAAI;IACT,oBAAoB,CAAC,EAAE,cAAc;CACtC,CAAC"}
@@ -0,0 +1,29 @@
1
+ local ____exports = {}
2
+ local subscriptions = {}
3
+ ---
4
+ -- @internal
5
+ function ____exports.postGridEntityCustomUpdateHasSubscriptions(self)
6
+ return #subscriptions > 0
7
+ end
8
+ ---
9
+ -- @internal
10
+ function ____exports.postGridEntityCustomUpdateRegister(self, ...)
11
+ local args = {...}
12
+ subscriptions[#subscriptions + 1] = args
13
+ end
14
+ ---
15
+ -- @internal
16
+ function ____exports.postGridEntityCustomUpdateFire(self, gridEntity, gridEntityTypeCustom)
17
+ for ____, ____value in ipairs(subscriptions) do
18
+ local callback = ____value[1]
19
+ local callbackGridEntityTypeCustom = ____value[2]
20
+ do
21
+ if callbackGridEntityTypeCustom ~= nil and callbackGridEntityTypeCustom ~= gridEntityTypeCustom then
22
+ goto __continue5
23
+ end
24
+ callback(nil, gridEntity, gridEntityTypeCustom)
25
+ end
26
+ ::__continue5::
27
+ end
28
+ end
29
+ return ____exports
@@ -1,7 +1,7 @@
1
1
  import { PlayerType, PlayerVariant } from "isaac-typescript-definitions";
2
- export declare type PostPlayerInitReorderedRegisterParameters = [
2
+ export declare type PostPlayerInitFirstRegisterParameters = [
3
3
  callback: (player: EntityPlayer) => void,
4
4
  playerVariant?: PlayerVariant,
5
5
  character?: PlayerType
6
6
  ];
7
- //# sourceMappingURL=postPlayerInitReordered.d.ts.map
7
+ //# sourceMappingURL=postPlayerInitFirst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postPlayerInitFirst.d.ts","sourceRoot":"","sources":["../../../src/callbacks/subscriptions/postPlayerInitFirst.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAEzE,oBAAY,qCAAqC,GAAG;IAClD,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI;IACxC,aAAa,CAAC,EAAE,aAAa;IAC7B,SAAS,CAAC,EAAE,UAAU;CACvB,CAAC"}
@@ -2,18 +2,18 @@ local ____exports = {}
2
2
  local subscriptions = {}
3
3
  ---
4
4
  -- @internal
5
- function ____exports.postPlayerInitReorderedHasSubscriptions(self)
5
+ function ____exports.postPlayerInitFirstHasSubscriptions(self)
6
6
  return #subscriptions > 0
7
7
  end
8
8
  ---
9
9
  -- @internal
10
- function ____exports.postPlayerInitReorderedRegister(self, ...)
10
+ function ____exports.postPlayerInitFirstRegister(self, ...)
11
11
  local args = {...}
12
12
  subscriptions[#subscriptions + 1] = args
13
13
  end
14
14
  ---
15
15
  -- @internal
16
- function ____exports.postPlayerInitReorderedFire(self, player)
16
+ function ____exports.postPlayerInitFirstFire(self, player)
17
17
  local character = player:GetPlayerType()
18
18
  for ____, ____value in ipairs(subscriptions) do
19
19
  local callback = ____value[1]
@@ -1,4 +1,4 @@
1
- import { CollectibleType, ItemPoolType, LevelStage, RoomType } from "isaac-typescript-definitions";
1
+ import { CollectibleType, ItemPoolType } from "isaac-typescript-definitions";
2
2
  /**
3
3
  * The distance of the laser when Azazel does not have any range up items yet. For more info, see
4
4
  * the documentation for the `getAzazelBrimstoneDistance` function.
@@ -78,8 +78,6 @@ export declare const MAX_PLAYER_TRINKET_SLOTS: number;
78
78
  export declare const MIN_PLAYER_SHOT_SPEED_STAT = 0.6;
79
79
  /** If you set `EntityPlayer.Speed` lower than this value, it will have no effect. */
80
80
  export declare const MIN_PLAYER_SPEED_STAT = 0.1;
81
- export declare const FIRST_ROOM_TYPE = RoomType.DEFAULT;
82
- export declare const LAST_ROOM_TYPE: RoomType;
83
81
  /**
84
82
  * The maximum speed stat that a player can have. Any additional speed beyond this will not take
85
83
  * effect.
@@ -94,8 +92,6 @@ export declare const NEW_FLOOR_STARTING_POSITION_GREED_MODE: Vector;
94
92
  * (like they do when getting to a new stage) so that the controls graphic is more visible.
95
93
  */
96
94
  export declare const NEW_RUN_PLAYER_STARTING_POSITION: Vector;
97
- export declare const FIRST_STAGE = LevelStage.BASEMENT_1;
98
- export declare const LAST_STAGE: LevelStage;
99
95
  /** Corresponds to the maximum value for `EntityPlayer.SamsonBerserkCharge`. */
100
96
  export declare const MAX_TAINTED_SAMSON_BERSERK_CHARGE = 100000;
101
97
  export declare const NUM_DIMENSIONS: number;