isaacscript-common 3.1.1 → 3.4.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 (51) hide show
  1. package/callbacks/customRevive.lua +3 -3
  2. package/callbacks/postGridEntity.lua +5 -3
  3. package/callbacks/postHolyMantleRemoved.lua +2 -2
  4. package/callbacks/postPlayerCollectible.d.ts +1 -0
  5. package/callbacks/postPlayerCollectible.lua +95 -0
  6. package/callbacks/postRoomClearChanged.lua +5 -3
  7. package/callbacks/postSlotInitUpdate.lua +5 -3
  8. package/callbacks/subscriptions/postPlayerCollectibleAdded.d.ts +6 -0
  9. package/callbacks/subscriptions/postPlayerCollectibleAdded.lua +34 -0
  10. package/callbacks/subscriptions/postPlayerCollectibleRemoved.d.ts +6 -0
  11. package/callbacks/subscriptions/postPlayerCollectibleRemoved.lua +34 -0
  12. package/classes/DefaultMap.d.ts +1 -2
  13. package/classes/DefaultMap.lua +1 -4
  14. package/constants.d.ts +5 -0
  15. package/constants.lua +5 -0
  16. package/enums/ModCallbackCustom.d.ts +427 -177
  17. package/enums/ModCallbackCustom.lua +36 -32
  18. package/features/deployJSONRoom.lua +5 -4
  19. package/features/extraConsoleCommands/listCommands.lua +1 -0
  20. package/features/persistentEntities.d.ts +28 -0
  21. package/features/persistentEntities.lua +150 -0
  22. package/features/playerInventory.d.ts +1 -10
  23. package/features/playerInventory.lua +23 -60
  24. package/functions/array.d.ts +3 -3
  25. package/functions/array.lua +3 -3
  26. package/functions/collectibleSet.d.ts +3 -3
  27. package/functions/collectibleSet.lua +3 -5
  28. package/functions/color.d.ts +2 -16
  29. package/functions/color.lua +0 -9
  30. package/functions/entity.d.ts +10 -0
  31. package/functions/entity.lua +29 -0
  32. package/functions/log.lua +2 -2
  33. package/functions/pills.d.ts +10 -0
  34. package/functions/pills.lua +16 -0
  35. package/functions/roomData.d.ts +5 -5
  36. package/functions/roomData.lua +7 -7
  37. package/functions/rooms.d.ts +1 -4
  38. package/functions/rooms.lua +19 -25
  39. package/functions/saveFile.d.ts +15 -0
  40. package/functions/saveFile.lua +105 -0
  41. package/index.d.ts +3 -1
  42. package/index.lua +15 -2
  43. package/initCustomCallbacks.lua +3 -0
  44. package/initFeatures.lua +3 -0
  45. package/interfaces/AddCallbackParameterCustom.d.ts +4 -0
  46. package/maps/PHDPillConversions.d.ts +2 -0
  47. package/maps/PHDPillConversions.lua +25 -0
  48. package/maps/falsePHDPillConversions.d.ts +2 -0
  49. package/maps/falsePHDPillConversions.lua +39 -0
  50. package/objects/callbackRegisterFunctions.lua +6 -0
  51. package/package.json +2 -2
@@ -87,6 +87,10 @@ local ____postPlayerChangeHealth = require("callbacks.subscriptions.postPlayerCh
87
87
  local postPlayerChangeHealthRegister = ____postPlayerChangeHealth.postPlayerChangeHealthRegister
88
88
  local ____postPlayerChangeType = require("callbacks.subscriptions.postPlayerChangeType")
89
89
  local postPlayerChangeTypeRegister = ____postPlayerChangeType.postPlayerChangeTypeRegister
90
+ local ____postPlayerCollectibleAdded = require("callbacks.subscriptions.postPlayerCollectibleAdded")
91
+ local postPlayerCollectibleAddedRegister = ____postPlayerCollectibleAdded.postPlayerCollectibleAddedRegister
92
+ local ____postPlayerCollectibleRemoved = require("callbacks.subscriptions.postPlayerCollectibleRemoved")
93
+ local postPlayerCollectibleRemovedRegister = ____postPlayerCollectibleRemoved.postPlayerCollectibleRemovedRegister
90
94
  local ____postPlayerFatalDamage = require("callbacks.subscriptions.postPlayerFatalDamage")
91
95
  local postPlayerFatalDamageRegister = ____postPlayerFatalDamage.postPlayerFatalDamageRegister
92
96
  local ____postPlayerInitLate = require("callbacks.subscriptions.postPlayerInitLate")
@@ -198,6 +202,8 @@ ____exports.CALLBACK_REGISTER_FUNCTIONS = {
198
202
  [ModCallbackCustom.POST_PIT_UPDATE] = postPitUpdateRegister,
199
203
  [ModCallbackCustom.POST_PLAYER_CHANGE_HEALTH] = postPlayerChangeHealthRegister,
200
204
  [ModCallbackCustom.POST_PLAYER_CHANGE_TYPE] = postPlayerChangeTypeRegister,
205
+ [ModCallbackCustom.POST_PLAYER_COLLECTIBLE_ADDED] = postPlayerCollectibleAddedRegister,
206
+ [ModCallbackCustom.POST_PLAYER_COLLECTIBLE_REMOVED] = postPlayerCollectibleRemovedRegister,
201
207
  [ModCallbackCustom.POST_PLAYER_FATAL_DAMAGE] = postPlayerFatalDamageRegister,
202
208
  [ModCallbackCustom.POST_PLAYER_INIT_LATE] = postPlayerInitLateRegister,
203
209
  [ModCallbackCustom.POST_PLAYER_INIT_REORDERED] = postPlayerInitReorderedRegister,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "3.1.1",
3
+ "version": "3.4.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -22,6 +22,6 @@
22
22
  "main": "index",
23
23
  "types": "index.d.ts",
24
24
  "dependencies": {
25
- "isaac-typescript-definitions": "^2.0.55"
25
+ "isaac-typescript-definitions": "^2.0.56"
26
26
  }
27
27
  }