isaacscript-common 2.0.33 → 2.2.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 (254) hide show
  1. package/README.md +1 -1
  2. package/callbacks/customRevive.lua +11 -11
  3. package/callbacks/itemPickup.lua +7 -7
  4. package/callbacks/postBombInitLate.lua +2 -2
  5. package/callbacks/postBoneSwing.lua +2 -2
  6. package/callbacks/postCollectibleInitFirst.lua +3 -3
  7. package/callbacks/postCursedTeleport.lua +6 -6
  8. package/callbacks/postCustomDoorEnter.lua +9 -9
  9. package/callbacks/postDoorRender.lua +2 -2
  10. package/callbacks/postDoorUpdate.lua +2 -2
  11. package/callbacks/postEffectInitLate.lua +2 -2
  12. package/callbacks/postEffectStateChanged.lua +3 -3
  13. package/callbacks/postEsauJr.lua +5 -5
  14. package/callbacks/postFamiliarInitLate.lua +2 -2
  15. package/callbacks/postFamiliarStateChanged.lua +3 -3
  16. package/callbacks/postFlip.lua +4 -4
  17. package/callbacks/postGreedModeWave.lua +3 -3
  18. package/callbacks/postGridEntity.lua +7 -7
  19. package/callbacks/postGridEntityCollision.lua +4 -4
  20. package/callbacks/postGridEntityRender.lua +2 -2
  21. package/callbacks/postHolyMantleRemoved.lua +5 -5
  22. package/callbacks/postItemDischarged.lua +7 -7
  23. package/callbacks/postKnifeInitLate.lua +2 -2
  24. package/callbacks/postLaserInitLate.lua +2 -2
  25. package/callbacks/postNPCInitLate.lua +2 -2
  26. package/callbacks/postNPCStateChanged.lua +3 -3
  27. package/callbacks/postNewRoomEarly.lua +4 -4
  28. package/callbacks/postPickupCollect.lua +3 -3
  29. package/callbacks/postPickupInitLate.lua +2 -2
  30. package/callbacks/postPickupStateChanged.lua +3 -3
  31. package/callbacks/postPitRender.lua +2 -2
  32. package/callbacks/postPitUpdate.lua +2 -2
  33. package/callbacks/postPlayerChangeHealth.lua +8 -8
  34. package/callbacks/postPlayerChangeType.lua +5 -5
  35. package/callbacks/postPlayerFatalDamage.lua +6 -6
  36. package/callbacks/postPlayerInitLate.lua +3 -3
  37. package/callbacks/postPlayerReordered.lua +7 -7
  38. package/callbacks/postPoopRender.lua +2 -2
  39. package/callbacks/postPoopUpdate.lua +2 -2
  40. package/callbacks/postPressurePlateRender.lua +2 -2
  41. package/callbacks/postPressurePlateUpdate.lua +2 -2
  42. package/callbacks/postProjectileInitLate.lua +2 -2
  43. package/callbacks/postPurchase.lua +6 -6
  44. package/callbacks/postRockRender.lua +2 -2
  45. package/callbacks/postRockUpdate.lua +2 -2
  46. package/callbacks/postRoomClearChanged.lua +3 -3
  47. package/callbacks/postSacrifice.lua +4 -4
  48. package/callbacks/postSlotInitUpdate.lua +4 -4
  49. package/callbacks/postSlotRender.lua +6 -6
  50. package/callbacks/postSpikesRender.lua +2 -2
  51. package/callbacks/postSpikesUpdate.lua +2 -2
  52. package/callbacks/postTNTRender.lua +2 -2
  53. package/callbacks/postTNTUpdate.lua +2 -2
  54. package/callbacks/postTearInitLate.lua +2 -2
  55. package/callbacks/postTearInitVeryLate.lua +2 -2
  56. package/callbacks/postTransformation.lua +6 -6
  57. package/callbacks/postTrinketBreak.lua +5 -5
  58. package/callbacks/preBerserkDeath.lua +5 -5
  59. package/callbacks/preNewLevel.lua +3 -3
  60. package/callbacks/reorderedCallbacks.lua +4 -4
  61. package/classes/DefaultMap.d.ts +11 -7
  62. package/classes/ModUpgraded.d.ts +8 -2
  63. package/classes/ModUpgraded.lua +1 -1
  64. package/constants.d.ts +5 -5
  65. package/constants.lua +2 -2
  66. package/{constantsMax.d.ts → constantsFirstLast.d.ts} +0 -0
  67. package/{constantsMax.lua → constantsFirstLast.lua} +2 -2
  68. package/enums/HealthType.d.ts +2 -2
  69. package/enums/ModCallbackCustom.d.ts +753 -2
  70. package/features/characterHealthConversion.d.ts +1 -2
  71. package/features/characterHealthConversion.lua +3 -3
  72. package/features/characterStats.lua +3 -3
  73. package/features/debugDisplay/debugDisplay.lua +4 -4
  74. package/features/debugDisplay/exports.d.ts +36 -36
  75. package/features/debugDisplay/exports.lua +2 -2
  76. package/features/debugDisplay/v.lua +2 -2
  77. package/features/deployJSONRoom.d.ts +1 -1
  78. package/features/deployJSONRoom.lua +15 -15
  79. package/features/disableInputs.d.ts +5 -5
  80. package/features/disableInputs.lua +3 -3
  81. package/features/disableSound.d.ts +2 -2
  82. package/features/disableSound.lua +4 -4
  83. package/features/extraConsoleCommands/commandsDisplay.d.ts +18 -18
  84. package/features/extraConsoleCommands/commandsDisplay.lua +1 -1
  85. package/features/extraConsoleCommands/commandsSubroutines.lua +10 -10
  86. package/features/extraConsoleCommands/init.d.ts +3 -2
  87. package/features/extraConsoleCommands/init.lua +83 -83
  88. package/features/extraConsoleCommands/{commands.d.ts → listCommands.d.ts} +17 -17
  89. package/features/extraConsoleCommands/{commands.lua → listCommands.lua} +36 -36
  90. package/features/fadeInRemover.lua +3 -3
  91. package/features/fastReset.lua +4 -4
  92. package/features/forgottenSwitch.lua +2 -2
  93. package/features/getCollectibleItemPoolType.lua +6 -6
  94. package/features/playerInventory.lua +10 -10
  95. package/features/{isPonyActive.d.ts → ponyDetection.d.ts} +0 -0
  96. package/features/{isPonyActive.lua → ponyDetection.lua} +7 -7
  97. package/features/{preventCollectibleRotate.d.ts → preventCollectibleRotation.d.ts} +1 -1
  98. package/features/{preventCollectibleRotate.lua → preventCollectibleRotation.lua} +9 -9
  99. package/features/runInNFrames.lua +3 -3
  100. package/features/saveDataManager/exports.d.ts +15 -12
  101. package/features/saveDataManager/exports.lua +6 -6
  102. package/features/saveDataManager/load.d.ts +1 -1
  103. package/features/saveDataManager/load.lua +4 -4
  104. package/features/saveDataManager/main.d.ts +1 -1
  105. package/features/saveDataManager/main.lua +11 -11
  106. package/features/saveDataManager/maps.d.ts +1 -1
  107. package/features/saveDataManager/merge.lua +10 -10
  108. package/features/saveDataManager/save.d.ts +1 -1
  109. package/features/saveDataManager/save.lua +5 -5
  110. package/features/saveDataManager/serializationBrand.lua +2 -2
  111. package/features/sirenHelpers.lua +3 -3
  112. package/features/taintedLazarusPlayers.lua +2 -2
  113. package/functions/array.lua +3 -3
  114. package/functions/benchmark.lua +1 -1
  115. package/functions/boss.lua +7 -7
  116. package/functions/cacheFlag.lua +1 -1
  117. package/functions/cards.d.ts +1 -1
  118. package/functions/cards.lua +13 -13
  119. package/functions/challenges.lua +1 -1
  120. package/functions/character.lua +9 -9
  121. package/functions/charge.lua +3 -3
  122. package/functions/chargeBar.d.ts +1 -8
  123. package/functions/chargeBar.lua +1 -1
  124. package/functions/collectibleCacheFlag.d.ts +4 -4
  125. package/functions/collectibleCacheFlag.lua +6 -6
  126. package/functions/collectibleSet.lua +5 -5
  127. package/functions/collectibleTag.lua +6 -6
  128. package/functions/collectibles.lua +15 -15
  129. package/functions/color.d.ts +17 -3
  130. package/functions/color.lua +5 -5
  131. package/functions/debug.lua +1 -1
  132. package/functions/deepCopy.lua +13 -13
  133. package/functions/deepCopyTests.lua +6 -6
  134. package/functions/direction.lua +3 -3
  135. package/functions/doors.lua +6 -6
  136. package/functions/eden.lua +5 -5
  137. package/functions/entity.lua +5 -5
  138. package/functions/entitySpecific.d.ts +15 -1
  139. package/functions/entitySpecific.lua +10 -2
  140. package/functions/enums.d.ts +3 -3
  141. package/functions/enums.lua +2 -2
  142. package/functions/familiars.lua +2 -2
  143. package/functions/flying.lua +2 -2
  144. package/functions/globals.lua +3 -3
  145. package/functions/gridEntity.lua +10 -10
  146. package/functions/gridEntitySpecific.lua +2 -2
  147. package/functions/input.lua +4 -4
  148. package/functions/jsonHelpers.lua +1 -1
  149. package/functions/jsonRoom.d.ts +1 -1
  150. package/functions/jsonRoom.lua +4 -4
  151. package/functions/kColor.d.ts +1 -1
  152. package/functions/kColor.lua +5 -5
  153. package/functions/level.lua +3 -3
  154. package/functions/log.lua +15 -15
  155. package/functions/math.lua +1 -1
  156. package/functions/mergeTests.lua +7 -7
  157. package/functions/npc.lua +3 -3
  158. package/functions/pickups.lua +6 -6
  159. package/functions/pills.lua +15 -15
  160. package/functions/player.lua +11 -11
  161. package/functions/playerDataStructures.d.ts +51 -0
  162. package/functions/playerDataStructures.lua +5 -1
  163. package/functions/playerHealth.d.ts +1 -1
  164. package/functions/playerHealth.lua +4 -4
  165. package/functions/playerIndex.lua +1 -1
  166. package/functions/pocketItems.d.ts +1 -1
  167. package/functions/pocketItems.lua +3 -3
  168. package/functions/positionVelocity.lua +6 -6
  169. package/functions/random.lua +1 -1
  170. package/functions/revive.lua +6 -6
  171. package/functions/rng.d.ts +1 -1
  172. package/functions/rng.lua +6 -6
  173. package/functions/roomData.lua +4 -4
  174. package/functions/roomGrid.lua +3 -3
  175. package/functions/roomShape.lua +8 -8
  176. package/functions/rooms.lua +12 -12
  177. package/functions/run.lua +4 -4
  178. package/functions/seeds.lua +2 -2
  179. package/functions/serialization.lua +5 -5
  180. package/functions/set.lua +2 -2
  181. package/functions/sound.lua +2 -2
  182. package/functions/spawnCollectible.lua +10 -10
  183. package/functions/sprite.lua +3 -3
  184. package/functions/stage.lua +2 -2
  185. package/functions/transformations.lua +6 -6
  186. package/functions/trinketCacheFlag.lua +3 -3
  187. package/functions/trinketGive.d.ts +1 -1
  188. package/functions/trinketGive.lua +3 -3
  189. package/functions/trinkets.d.ts +3 -3
  190. package/functions/trinkets.lua +14 -14
  191. package/functions/tstlClass.lua +1 -1
  192. package/functions/ui.lua +3 -3
  193. package/functions/utils.d.ts +2 -2
  194. package/functions/utils.lua +1 -1
  195. package/functions/vector.d.ts +1 -1
  196. package/functions/vector.lua +5 -5
  197. package/index.d.ts +14 -13
  198. package/index.lua +123 -123
  199. package/initCustomCallbacks.lua +58 -58
  200. package/initFeatures.lua +19 -19
  201. package/{types → interfaces}/AddCallbackParameterCustom.d.ts +0 -0
  202. package/{types → interfaces}/AddCallbackParameterCustom.lua +1 -1
  203. package/interfaces/ChargeBarSprites.d.ts +13 -0
  204. package/{types/JSONDoor.lua → interfaces/ChargeBarSprites.lua} +0 -0
  205. package/{types → interfaces}/JSONDoor.d.ts +1 -0
  206. package/{types/JSONEntity.lua → interfaces/JSONDoor.lua} +0 -0
  207. package/{types → interfaces}/JSONEntity.d.ts +1 -0
  208. package/{types/JSONRoom.lua → interfaces/JSONEntity.lua} +0 -0
  209. package/{types → interfaces}/JSONRoom.d.ts +1 -5
  210. package/{types/JSONRooms.lua → interfaces/JSONRoom.lua} +0 -0
  211. package/{types → interfaces}/JSONRooms.d.ts +0 -0
  212. package/{types/JSONSpawn.lua → interfaces/JSONRooms.lua} +0 -0
  213. package/{types → interfaces}/JSONSpawn.d.ts +1 -0
  214. package/{types/PlayerHealth.lua → interfaces/JSONSpawn.lua} +0 -0
  215. package/{types → interfaces}/PlayerHealth.d.ts +1 -0
  216. package/{types/PocketItemDescription.lua → interfaces/PlayerHealth.lua} +0 -0
  217. package/{types → interfaces}/PocketItemDescription.d.ts +1 -0
  218. package/{types/Primitive.lua → interfaces/PocketItemDescription.lua} +0 -0
  219. package/interfaces/SaveData.d.ts +29 -0
  220. package/{types/private → interfaces}/SaveData.lua +0 -0
  221. package/{types → interfaces}/TrinketSituation.d.ts +1 -0
  222. package/{types → interfaces}/TrinketSituation.lua +0 -0
  223. package/{types → interfaces}/private/TSTLClassMetatable.d.ts +0 -0
  224. package/{types → interfaces}/private/TSTLClassMetatable.lua +0 -0
  225. package/maps/cardMap.lua +85 -85
  226. package/maps/characterMap.lua +58 -58
  227. package/maps/defaultPlayerStatMap.lua +1 -1
  228. package/maps/pillEffectMap.lua +39 -39
  229. package/maps/roomTypeMap.lua +12 -12
  230. package/objects/LRoomShapeToRectangles.lua +1 -1
  231. package/objects/callbackRegisterFunctions.d.ts +1 -1
  232. package/objects/callbackRegisterFunctions.lua +76 -76
  233. package/objects/directionToVector.lua +1 -1
  234. package/objects/isaacAPIClassTypeToBrand.lua +2 -2
  235. package/objects/isaacAPIClassTypeToCopyFunction.lua +5 -5
  236. package/objects/roomShapeBounds.lua +1 -1
  237. package/objects/roomShapeLayoutSizes.lua +1 -1
  238. package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +1 -1
  239. package/objects/roomShapeToTopLeftPosition.lua +1 -1
  240. package/objects/roomTypeNames.lua +1 -1
  241. package/objects/serializedIsaacAPIClassTypeToIdentityFunction.lua +5 -5
  242. package/package.json +2 -2
  243. package/patchErrorFunctions.lua +1 -1
  244. package/types/CollectibleIndex.d.ts +2 -2
  245. package/types/PickingUpItem.d.ts +12 -2
  246. package/types/PickingUpItem.lua +3 -0
  247. package/types/PlayerIndex.d.ts +2 -2
  248. package/types/private/IsaacAPIClass.d.ts +1 -1
  249. package/types/private/SerializedIsaacAPIClass.d.ts +1 -1
  250. package/types/private/TSTLClass.d.ts +1 -1
  251. package/upgradeMod.d.ts +2 -1
  252. package/upgradeMod.lua +7 -7
  253. package/types/Primitive.d.ts +0 -1
  254. package/types/private/SaveData.d.ts +0 -22
@@ -1,119 +1,119 @@
1
1
  local ____exports = {}
2
- local ____customRevive = require("packages.isaacscript-common.src.callbacks.customRevive")
2
+ local ____customRevive = require("callbacks.customRevive")
3
3
  local customReviveCallbacksInit = ____customRevive.customReviveCallbacksInit
4
- local ____itemPickup = require("packages.isaacscript-common.src.callbacks.itemPickup")
4
+ local ____itemPickup = require("callbacks.itemPickup")
5
5
  local itemPickupCallbacksInit = ____itemPickup.itemPickupCallbacksInit
6
- local ____postBombInitLate = require("packages.isaacscript-common.src.callbacks.postBombInitLate")
6
+ local ____postBombInitLate = require("callbacks.postBombInitLate")
7
7
  local postBombInitLateCallbackInit = ____postBombInitLate.postBombInitLateCallbackInit
8
- local ____postBoneSwing = require("packages.isaacscript-common.src.callbacks.postBoneSwing")
8
+ local ____postBoneSwing = require("callbacks.postBoneSwing")
9
9
  local postBoneSwingCallbackInit = ____postBoneSwing.postBoneSwingCallbackInit
10
- local ____postCollectibleInitFirst = require("packages.isaacscript-common.src.callbacks.postCollectibleInitFirst")
10
+ local ____postCollectibleInitFirst = require("callbacks.postCollectibleInitFirst")
11
11
  local postCollectibleInitFirstCallbackInit = ____postCollectibleInitFirst.postCollectibleInitFirstCallbackInit
12
- local ____postCursedTeleport = require("packages.isaacscript-common.src.callbacks.postCursedTeleport")
12
+ local ____postCursedTeleport = require("callbacks.postCursedTeleport")
13
13
  local postCursedTeleportCallbackInit = ____postCursedTeleport.postCursedTeleportCallbackInit
14
- local ____postCustomDoorEnter = require("packages.isaacscript-common.src.callbacks.postCustomDoorEnter")
14
+ local ____postCustomDoorEnter = require("callbacks.postCustomDoorEnter")
15
15
  local postCustomDoorEnterCallbackInit = ____postCustomDoorEnter.postCustomDoorEnterCallbackInit
16
- local ____postDoorRender = require("packages.isaacscript-common.src.callbacks.postDoorRender")
16
+ local ____postDoorRender = require("callbacks.postDoorRender")
17
17
  local postDoorRenderInit = ____postDoorRender.postDoorRenderInit
18
- local ____postDoorUpdate = require("packages.isaacscript-common.src.callbacks.postDoorUpdate")
18
+ local ____postDoorUpdate = require("callbacks.postDoorUpdate")
19
19
  local postDoorUpdateInit = ____postDoorUpdate.postDoorUpdateInit
20
- local ____postEffectInitLate = require("packages.isaacscript-common.src.callbacks.postEffectInitLate")
20
+ local ____postEffectInitLate = require("callbacks.postEffectInitLate")
21
21
  local postEffectInitLateCallbackInit = ____postEffectInitLate.postEffectInitLateCallbackInit
22
- local ____postEffectStateChanged = require("packages.isaacscript-common.src.callbacks.postEffectStateChanged")
22
+ local ____postEffectStateChanged = require("callbacks.postEffectStateChanged")
23
23
  local postEffectStateChangedCallbackInit = ____postEffectStateChanged.postEffectStateChangedCallbackInit
24
- local ____postEsauJr = require("packages.isaacscript-common.src.callbacks.postEsauJr")
24
+ local ____postEsauJr = require("callbacks.postEsauJr")
25
25
  local postEsauJrCallbacksInit = ____postEsauJr.postEsauJrCallbacksInit
26
- local ____postFamiliarInitLate = require("packages.isaacscript-common.src.callbacks.postFamiliarInitLate")
26
+ local ____postFamiliarInitLate = require("callbacks.postFamiliarInitLate")
27
27
  local postFamiliarInitLateCallbackInit = ____postFamiliarInitLate.postFamiliarInitLateCallbackInit
28
- local ____postFamiliarStateChanged = require("packages.isaacscript-common.src.callbacks.postFamiliarStateChanged")
28
+ local ____postFamiliarStateChanged = require("callbacks.postFamiliarStateChanged")
29
29
  local postFamiliarStateChangedCallbackInit = ____postFamiliarStateChanged.postFamiliarStateChangedCallbackInit
30
- local ____postFlip = require("packages.isaacscript-common.src.callbacks.postFlip")
30
+ local ____postFlip = require("callbacks.postFlip")
31
31
  local postFlipCallbacksInit = ____postFlip.postFlipCallbacksInit
32
- local ____postGreedModeWave = require("packages.isaacscript-common.src.callbacks.postGreedModeWave")
32
+ local ____postGreedModeWave = require("callbacks.postGreedModeWave")
33
33
  local postGreedModeWaveCallbackInit = ____postGreedModeWave.postGreedModeWaveCallbackInit
34
- local ____postGridEntity = require("packages.isaacscript-common.src.callbacks.postGridEntity")
34
+ local ____postGridEntity = require("callbacks.postGridEntity")
35
35
  local postGridEntityCallbacksInit = ____postGridEntity.postGridEntityCallbacksInit
36
- local ____postGridEntityCollision = require("packages.isaacscript-common.src.callbacks.postGridEntityCollision")
36
+ local ____postGridEntityCollision = require("callbacks.postGridEntityCollision")
37
37
  local postGridEntityCollisionInit = ____postGridEntityCollision.postGridEntityCollisionInit
38
- local ____postGridEntityRender = require("packages.isaacscript-common.src.callbacks.postGridEntityRender")
38
+ local ____postGridEntityRender = require("callbacks.postGridEntityRender")
39
39
  local postGridEntityRenderInit = ____postGridEntityRender.postGridEntityRenderInit
40
- local ____postHolyMantleRemoved = require("packages.isaacscript-common.src.callbacks.postHolyMantleRemoved")
40
+ local ____postHolyMantleRemoved = require("callbacks.postHolyMantleRemoved")
41
41
  local postHolyMantleRemovedCallbackInit = ____postHolyMantleRemoved.postHolyMantleRemovedCallbackInit
42
- local ____postItemDischarged = require("packages.isaacscript-common.src.callbacks.postItemDischarged")
42
+ local ____postItemDischarged = require("callbacks.postItemDischarged")
43
43
  local postItemDischargeCallbackInit = ____postItemDischarged.postItemDischargeCallbackInit
44
- local ____postKnifeInitLate = require("packages.isaacscript-common.src.callbacks.postKnifeInitLate")
44
+ local ____postKnifeInitLate = require("callbacks.postKnifeInitLate")
45
45
  local postKnifeInitLateCallbackInit = ____postKnifeInitLate.postKnifeInitLateCallbackInit
46
- local ____postLaserInitLate = require("packages.isaacscript-common.src.callbacks.postLaserInitLate")
46
+ local ____postLaserInitLate = require("callbacks.postLaserInitLate")
47
47
  local postLaserInitLateCallbackInit = ____postLaserInitLate.postLaserInitLateCallbackInit
48
- local ____postNPCInitLate = require("packages.isaacscript-common.src.callbacks.postNPCInitLate")
48
+ local ____postNPCInitLate = require("callbacks.postNPCInitLate")
49
49
  local postNPCInitLateCallbackInit = ____postNPCInitLate.postNPCInitLateCallbackInit
50
- local ____postNPCStateChanged = require("packages.isaacscript-common.src.callbacks.postNPCStateChanged")
50
+ local ____postNPCStateChanged = require("callbacks.postNPCStateChanged")
51
51
  local postNPCStateChangedCallbackInit = ____postNPCStateChanged.postNPCStateChangedCallbackInit
52
- local ____postPickupCollect = require("packages.isaacscript-common.src.callbacks.postPickupCollect")
52
+ local ____postPickupCollect = require("callbacks.postPickupCollect")
53
53
  local postPickupCollectCallbackInit = ____postPickupCollect.postPickupCollectCallbackInit
54
- local ____postPickupInitLate = require("packages.isaacscript-common.src.callbacks.postPickupInitLate")
54
+ local ____postPickupInitLate = require("callbacks.postPickupInitLate")
55
55
  local postPickupInitLateCallbackInit = ____postPickupInitLate.postPickupInitLateCallbackInit
56
- local ____postPickupStateChanged = require("packages.isaacscript-common.src.callbacks.postPickupStateChanged")
56
+ local ____postPickupStateChanged = require("callbacks.postPickupStateChanged")
57
57
  local postPickupStateChangedCallbackInit = ____postPickupStateChanged.postPickupStateChangedCallbackInit
58
- local ____postPitRender = require("packages.isaacscript-common.src.callbacks.postPitRender")
58
+ local ____postPitRender = require("callbacks.postPitRender")
59
59
  local postPitRenderInit = ____postPitRender.postPitRenderInit
60
- local ____postPitUpdate = require("packages.isaacscript-common.src.callbacks.postPitUpdate")
60
+ local ____postPitUpdate = require("callbacks.postPitUpdate")
61
61
  local postPitUpdateInit = ____postPitUpdate.postPitUpdateInit
62
- local ____postPlayerChangeHealth = require("packages.isaacscript-common.src.callbacks.postPlayerChangeHealth")
62
+ local ____postPlayerChangeHealth = require("callbacks.postPlayerChangeHealth")
63
63
  local postPlayerChangeHealthCallbackInit = ____postPlayerChangeHealth.postPlayerChangeHealthCallbackInit
64
- local ____postPlayerChangeType = require("packages.isaacscript-common.src.callbacks.postPlayerChangeType")
64
+ local ____postPlayerChangeType = require("callbacks.postPlayerChangeType")
65
65
  local postPlayerChangeTypeCallbackInit = ____postPlayerChangeType.postPlayerChangeTypeCallbackInit
66
- local ____postPlayerFatalDamage = require("packages.isaacscript-common.src.callbacks.postPlayerFatalDamage")
66
+ local ____postPlayerFatalDamage = require("callbacks.postPlayerFatalDamage")
67
67
  local postPlayerFatalDamageCallbackInit = ____postPlayerFatalDamage.postPlayerFatalDamageCallbackInit
68
- local ____postPlayerInitLate = require("packages.isaacscript-common.src.callbacks.postPlayerInitLate")
68
+ local ____postPlayerInitLate = require("callbacks.postPlayerInitLate")
69
69
  local postPlayerInitLateCallbackInit = ____postPlayerInitLate.postPlayerInitLateCallbackInit
70
- local ____postPlayerReordered = require("packages.isaacscript-common.src.callbacks.postPlayerReordered")
70
+ local ____postPlayerReordered = require("callbacks.postPlayerReordered")
71
71
  local postPlayerReorderedCallbacksInit = ____postPlayerReordered.postPlayerReorderedCallbacksInit
72
- local ____postPoopRender = require("packages.isaacscript-common.src.callbacks.postPoopRender")
72
+ local ____postPoopRender = require("callbacks.postPoopRender")
73
73
  local postPoopRenderInit = ____postPoopRender.postPoopRenderInit
74
- local ____postPoopUpdate = require("packages.isaacscript-common.src.callbacks.postPoopUpdate")
74
+ local ____postPoopUpdate = require("callbacks.postPoopUpdate")
75
75
  local postPoopUpdateInit = ____postPoopUpdate.postPoopUpdateInit
76
- local ____postPressurePlateRender = require("packages.isaacscript-common.src.callbacks.postPressurePlateRender")
76
+ local ____postPressurePlateRender = require("callbacks.postPressurePlateRender")
77
77
  local postPressurePlateRenderInit = ____postPressurePlateRender.postPressurePlateRenderInit
78
- local ____postPressurePlateUpdate = require("packages.isaacscript-common.src.callbacks.postPressurePlateUpdate")
78
+ local ____postPressurePlateUpdate = require("callbacks.postPressurePlateUpdate")
79
79
  local postPressurePlateUpdateInit = ____postPressurePlateUpdate.postPressurePlateUpdateInit
80
- local ____postProjectileInitLate = require("packages.isaacscript-common.src.callbacks.postProjectileInitLate")
80
+ local ____postProjectileInitLate = require("callbacks.postProjectileInitLate")
81
81
  local postProjectileInitLateCallbackInit = ____postProjectileInitLate.postProjectileInitLateCallbackInit
82
- local ____postPurchase = require("packages.isaacscript-common.src.callbacks.postPurchase")
82
+ local ____postPurchase = require("callbacks.postPurchase")
83
83
  local postPurchaseCallbackInit = ____postPurchase.postPurchaseCallbackInit
84
- local ____postRockRender = require("packages.isaacscript-common.src.callbacks.postRockRender")
84
+ local ____postRockRender = require("callbacks.postRockRender")
85
85
  local postRockRenderInit = ____postRockRender.postRockRenderInit
86
- local ____postRockUpdate = require("packages.isaacscript-common.src.callbacks.postRockUpdate")
86
+ local ____postRockUpdate = require("callbacks.postRockUpdate")
87
87
  local postRockUpdateInit = ____postRockUpdate.postRockUpdateInit
88
- local ____postRoomClearChanged = require("packages.isaacscript-common.src.callbacks.postRoomClearChanged")
88
+ local ____postRoomClearChanged = require("callbacks.postRoomClearChanged")
89
89
  local postRoomClearChangedCallbackInit = ____postRoomClearChanged.postRoomClearChangedCallbackInit
90
- local ____postSacrifice = require("packages.isaacscript-common.src.callbacks.postSacrifice")
90
+ local ____postSacrifice = require("callbacks.postSacrifice")
91
91
  local postSacrificeCallbackInit = ____postSacrifice.postSacrificeCallbackInit
92
- local ____postSlotInitUpdate = require("packages.isaacscript-common.src.callbacks.postSlotInitUpdate")
92
+ local ____postSlotInitUpdate = require("callbacks.postSlotInitUpdate")
93
93
  local postSlotInitUpdateCallbacksInit = ____postSlotInitUpdate.postSlotInitUpdateCallbacksInit
94
- local ____postSlotRender = require("packages.isaacscript-common.src.callbacks.postSlotRender")
94
+ local ____postSlotRender = require("callbacks.postSlotRender")
95
95
  local postSlotRenderCallbacksInit = ____postSlotRender.postSlotRenderCallbacksInit
96
- local ____postSpikesRender = require("packages.isaacscript-common.src.callbacks.postSpikesRender")
96
+ local ____postSpikesRender = require("callbacks.postSpikesRender")
97
97
  local postSpikesRenderInit = ____postSpikesRender.postSpikesRenderInit
98
- local ____postSpikesUpdate = require("packages.isaacscript-common.src.callbacks.postSpikesUpdate")
98
+ local ____postSpikesUpdate = require("callbacks.postSpikesUpdate")
99
99
  local postSpikesUpdateInit = ____postSpikesUpdate.postSpikesUpdateInit
100
- local ____postTearInitLate = require("packages.isaacscript-common.src.callbacks.postTearInitLate")
100
+ local ____postTearInitLate = require("callbacks.postTearInitLate")
101
101
  local postTearInitLateCallbackInit = ____postTearInitLate.postTearInitLateCallbackInit
102
- local ____postTearInitVeryLate = require("packages.isaacscript-common.src.callbacks.postTearInitVeryLate")
102
+ local ____postTearInitVeryLate = require("callbacks.postTearInitVeryLate")
103
103
  local postTearInitVeryLateCallbackInit = ____postTearInitVeryLate.postTearInitVeryLateCallbackInit
104
- local ____postTNTRender = require("packages.isaacscript-common.src.callbacks.postTNTRender")
104
+ local ____postTNTRender = require("callbacks.postTNTRender")
105
105
  local postTNTRenderInit = ____postTNTRender.postTNTRenderInit
106
- local ____postTNTUpdate = require("packages.isaacscript-common.src.callbacks.postTNTUpdate")
106
+ local ____postTNTUpdate = require("callbacks.postTNTUpdate")
107
107
  local postTNTUpdateInit = ____postTNTUpdate.postTNTUpdateInit
108
- local ____postTransformation = require("packages.isaacscript-common.src.callbacks.postTransformation")
108
+ local ____postTransformation = require("callbacks.postTransformation")
109
109
  local postTransformationCallbackInit = ____postTransformation.postTransformationCallbackInit
110
- local ____postTrinketBreak = require("packages.isaacscript-common.src.callbacks.postTrinketBreak")
110
+ local ____postTrinketBreak = require("callbacks.postTrinketBreak")
111
111
  local postTrinketBreakCallbackInit = ____postTrinketBreak.postTrinketBreakCallbackInit
112
- local ____preBerserkDeath = require("packages.isaacscript-common.src.callbacks.preBerserkDeath")
112
+ local ____preBerserkDeath = require("callbacks.preBerserkDeath")
113
113
  local preBerserkDeathCallbackInit = ____preBerserkDeath.preBerserkDeathCallbackInit
114
- local ____preNewLevel = require("packages.isaacscript-common.src.callbacks.preNewLevel")
114
+ local ____preNewLevel = require("callbacks.preNewLevel")
115
115
  local preNewLevelCallbackInit = ____preNewLevel.preNewLevelCallbackInit
116
- local ____reorderedCallbacks = require("packages.isaacscript-common.src.callbacks.reorderedCallbacks")
116
+ local ____reorderedCallbacks = require("callbacks.reorderedCallbacks")
117
117
  local reorderedCallbacksInit = ____reorderedCallbacks.reorderedCallbacksInit
118
118
  function ____exports.initCustomCallbacks(self, mod)
119
119
  customReviveCallbacksInit(nil, mod)
package/initFeatures.lua CHANGED
@@ -1,33 +1,33 @@
1
1
  local ____exports = {}
2
- local ____characterHealthConversion = require("packages.isaacscript-common.src.features.characterHealthConversion")
2
+ local ____characterHealthConversion = require("features.characterHealthConversion")
3
3
  local characterHealthConversionInit = ____characterHealthConversion.characterHealthConversionInit
4
- local ____characterStats = require("packages.isaacscript-common.src.features.characterStats")
4
+ local ____characterStats = require("features.characterStats")
5
5
  local characterStatsInit = ____characterStats.characterStatsInit
6
- local ____deployJSONRoom = require("packages.isaacscript-common.src.features.deployJSONRoom")
6
+ local ____deployJSONRoom = require("features.deployJSONRoom")
7
7
  local deployJSONRoomInit = ____deployJSONRoom.deployJSONRoomInit
8
- local ____disableInputs = require("packages.isaacscript-common.src.features.disableInputs")
8
+ local ____disableInputs = require("features.disableInputs")
9
9
  local disableInputsInit = ____disableInputs.disableInputsInit
10
- local ____disableSound = require("packages.isaacscript-common.src.features.disableSound")
10
+ local ____disableSound = require("features.disableSound")
11
11
  local disableSoundsInit = ____disableSound.disableSoundsInit
12
- local ____fadeInRemover = require("packages.isaacscript-common.src.features.fadeInRemover")
12
+ local ____fadeInRemover = require("features.fadeInRemover")
13
13
  local fadeInRemoverInit = ____fadeInRemover.fadeInRemoverInit
14
- local ____fastReset = require("packages.isaacscript-common.src.features.fastReset")
14
+ local ____fastReset = require("features.fastReset")
15
15
  local fastResetInit = ____fastReset.fastResetInit
16
- local ____forgottenSwitch = require("packages.isaacscript-common.src.features.forgottenSwitch")
16
+ local ____forgottenSwitch = require("features.forgottenSwitch")
17
17
  local forgottenSwitchInit = ____forgottenSwitch.forgottenSwitchInit
18
- local ____getCollectibleItemPoolType = require("packages.isaacscript-common.src.features.getCollectibleItemPoolType")
18
+ local ____getCollectibleItemPoolType = require("features.getCollectibleItemPoolType")
19
19
  local getCollectibleItemPoolTypeInit = ____getCollectibleItemPoolType.getCollectibleItemPoolTypeInit
20
- local ____isPonyActive = require("packages.isaacscript-common.src.features.isPonyActive")
21
- local isPonyActiveInit = ____isPonyActive.isPonyActiveInit
22
- local ____playerInventory = require("packages.isaacscript-common.src.features.playerInventory")
20
+ local ____playerInventory = require("features.playerInventory")
23
21
  local playerInventoryInit = ____playerInventory.playerInventoryInit
24
- local ____preventCollectibleRotate = require("packages.isaacscript-common.src.features.preventCollectibleRotate")
25
- local preventCollectibleRotateInit = ____preventCollectibleRotate.preventCollectibleRotateInit
26
- local ____runInNFrames = require("packages.isaacscript-common.src.features.runInNFrames")
22
+ local ____ponyDetection = require("features.ponyDetection")
23
+ local ponyDetectionInit = ____ponyDetection.ponyDetectionInit
24
+ local ____preventCollectibleRotation = require("features.preventCollectibleRotation")
25
+ local preventCollectibleRotationInit = ____preventCollectibleRotation.preventCollectibleRotationInit
26
+ local ____runInNFrames = require("features.runInNFrames")
27
27
  local runInNFramesInit = ____runInNFrames.runInNFramesInit
28
- local ____sirenHelpers = require("packages.isaacscript-common.src.features.sirenHelpers")
28
+ local ____sirenHelpers = require("features.sirenHelpers")
29
29
  local sirenHelpersInit = ____sirenHelpers.sirenHelpersInit
30
- local ____taintedLazarusPlayers = require("packages.isaacscript-common.src.features.taintedLazarusPlayers")
30
+ local ____taintedLazarusPlayers = require("features.taintedLazarusPlayers")
31
31
  local taintedLazarusPlayersInit = ____taintedLazarusPlayers.taintedLazarusPlayersInit
32
32
  function ____exports.initFeaturesMajor(self, mod)
33
33
  deployJSONRoomInit(nil, mod)
@@ -42,9 +42,9 @@ function ____exports.initFeaturesMinor(self, mod)
42
42
  fastResetInit(nil, mod)
43
43
  forgottenSwitchInit(nil, mod)
44
44
  getCollectibleItemPoolTypeInit(nil, mod)
45
- isPonyActiveInit(nil, mod)
46
45
  playerInventoryInit(nil, mod)
47
- preventCollectibleRotateInit(nil, mod)
46
+ ponyDetectionInit(nil, mod)
47
+ preventCollectibleRotationInit(nil, mod)
48
48
  sirenHelpersInit(nil, mod)
49
49
  taintedLazarusPlayersInit(nil, mod)
50
50
  end
@@ -1,4 +1,4 @@
1
1
  local ____exports = {}
2
- local ____ModCallbackCustom = require("packages.isaacscript-common.src.enums.ModCallbackCustom")
2
+ local ____ModCallbackCustom = require("enums.ModCallbackCustom")
3
3
  local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
4
4
  return ____exports
@@ -0,0 +1,13 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /**
3
+ * A collection of the four sprites necessary in order to render a charge bar.
4
+ *
5
+ * Used in the `newChargeBarSprites` and related helper functions.
6
+ */
7
+ export interface ChargeBarSprites {
8
+ back: Sprite;
9
+ meter: Sprite;
10
+ meterBattery: Sprite;
11
+ lines: Sprite;
12
+ maxCharges: int;
13
+ }
@@ -1,3 +1,4 @@
1
+ /** Part of {@link JSONRooms}. */
1
2
  export interface JSONDoor {
2
3
  $: {
3
4
  /** Equal to "True" or "False". */
@@ -1,3 +1,4 @@
1
+ /** Part of {@link JSONRooms}. */
1
2
  export interface JSONEntity {
2
3
  $: {
3
4
  /** Needs to be converted to an int. */
@@ -1,10 +1,6 @@
1
1
  import { JSONDoor } from "./JSONDoor";
2
2
  import { JSONSpawn } from "./JSONSpawn";
3
- /**
4
- * Custom rooms are created with the Basement Renovator program, which outputs XML files and STB
5
- * files. A `JSONRoom` is simply an XML room converted to JSON. You can convert your XML files using
6
- * the following command: `npx convert-xml-to-json foo.xml foo.json`
7
- */
3
+ /** Part of {@link JSONRooms}. */
8
4
  export interface JSONRoom {
9
5
  $: {
10
6
  /** Needs to be converted to an int. */
File without changes
File without changes
@@ -1,4 +1,5 @@
1
1
  import { JSONEntity } from "./JSONEntity";
2
+ /** Part of {@link JSONRooms}. */
2
3
  export interface JSONSpawn {
3
4
  $: {
4
5
  /** Needs to be converted to an int. */
@@ -1,4 +1,5 @@
1
1
  import { HeartSubType } from "isaac-typescript-definitions";
2
+ /** Used by the `getPlayerHealth` and `setPlayerHealth` helper functions. */
2
3
  export interface PlayerHealth {
3
4
  maxHearts: int;
4
5
  hearts: int;
@@ -1,5 +1,6 @@
1
1
  import { PocketItemSlot } from "isaac-typescript-definitions";
2
2
  import { PocketItemType } from "../enums/PocketItemType";
3
+ /** Used by the `getPocketItems` and related helper functions. */
3
4
  export interface PocketItemDescription {
4
5
  slot: PocketItemSlot;
5
6
  type: PocketItemType;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This is the format of the object that you give to the save data manager. It will contains all of
3
+ * the variables for the particular mod feature.
4
+ *
5
+ * Depending on which object keys you use, the variables will be automatically reset at certain
6
+ * times and automatically saved to disk.
7
+ *
8
+ * Each sub-object of save data has a string as a key and arbitrary data as a value. However, the
9
+ * data has to be serializable. Specifically, this means that you can only use the following types:
10
+ *
11
+ * - `boolean`
12
+ * - `number`
13
+ * - `string`
14
+ * - `Map` / `DefaultMap`
15
+ * - `Set`
16
+ * - serializable Isaac API classes (such as `Color`)
17
+ * - TSTL classes (i.e. classes that you made yourself)
18
+ * - sub-objects or a `LuaTable` that contains the above values
19
+ *
20
+ * (Unfortunately, it is not possible to create a recursive type definition that matches these
21
+ * properties. This means that the TypeScript compiler will not be able to validate that you are
22
+ * passing in serializable data.)
23
+ */
24
+ export interface SaveData {
25
+ persistent?: Record<string, unknown>;
26
+ run?: Record<string, unknown>;
27
+ level?: Record<string, unknown>;
28
+ room?: Record<string, unknown>;
29
+ }
File without changes
@@ -1,4 +1,5 @@
1
1
  import { TrinketType } from "isaac-typescript-definitions";
2
+ /** Used by the `temporarilyRemoveTrinkets` and related helper functions. */
2
3
  export interface TrinketSituation {
3
4
  trinketTypeRemoved: TrinketType;
4
5
  trinketType1: TrinketType;
File without changes