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,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.CARD_DESCRIPTION_MAP = __TS__New(Map, {
5
7
  {1, "Where journey begins"},
@@ -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.CARD_NAME_MAP = __TS__New(Map, {
5
7
  {Card.CARD_FOOL, "0 - The Fool"},
@@ -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.CHALLENGE_NAME_MAP = __TS__New(Map, {
5
7
  {Challenge.CHALLENGE_PITCH_BLACK, "Pitch Black"},
@@ -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.COLLECTIBLE_DESCRIPTION_MAP = __TS__New(Map, {
5
7
  {1, "Tears up"},
@@ -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.COLLECTIBLE_NAME_MAP = __TS__New(Map, {
5
7
  {1, "The Sad Onion"},
@@ -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.GRID_ENTITY_TYPE_TO_BROKEN_STATE_MAP = __TS__New(Map, {
5
7
  {GridEntityType.GRID_ROCK, 2},
@@ -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.GRID_ENTITY_XML_MAP = __TS__New(Map, {
5
7
  {1000, {GridEntityType.GRID_ROCK, 0}},
@@ -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 ____PillEffectClass = require("types.PillEffectClass")
5
7
  local PillEffectClass = ____PillEffectClass.PillEffectClass
@@ -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.PILL_EFFECT_NAME_MAP = __TS__New(Map, {
5
7
  {PillEffect.PILLEFFECT_BAD_GAS, "Bad Gas"},
@@ -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 ____PillEffectType = require("types.PillEffectType")
5
7
  local PillEffectType = ____PillEffectType.PillEffectType
@@ -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.ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP = __TS__New(Map, {
5
7
  {RoomShape.ROOMSHAPE_IH, 30},
@@ -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.TRANSFORMATION_NAME_MAP = __TS__New(Map, {
5
7
  {PlayerForm.PLAYERFORM_GUPPY, "Guppy"},
@@ -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.TRINKET_DESCRIPTION_MAP = __TS__New(Map, {
5
7
  {1, "Gulp!"},
@@ -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.TRINKET_NAME_MAP = __TS__New(Map, {
5
7
  {1, "Swallowed Penny"},
@@ -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__StringSplit = ____lualib.__TS__StringSplit
4
+ local __TS__StringIncludes = ____lualib.__TS__StringIncludes
5
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
3
6
  local ____exports = {}
4
7
  local errorWithTraceback, slimTracebackOutput, removeLinesContaining, LINE_SEPARATOR, USELESS_TRACEBACK_MESSAGES, vanillaError
5
8
  local ____debug = require("functions.debug")
@@ -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.CARDS = {
5
7
  Card.CARD_FOOL,
@@ -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 __TS__Class = ____lualib.__TS__Class
4
+ local Map = ____lualib.Map
5
+ local __TS__ClassExtends = ____lualib.__TS__ClassExtends
6
+ local __TS__TypeOf = ____lualib.__TS__TypeOf
3
7
  local ____exports = {}
4
8
  local parseArguments, parseArgumentsOne, parseArgumentsTwo, parseDefaultValueOrDefaultValueFactory
5
9
  function parseArguments(self, firstArg, secondArg)
@@ -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__Class = ____lualib.__TS__Class
4
+ local __TS__Spread = ____lualib.__TS__Spread
5
+ local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
3
6
  local ____exports = {}
4
7
  local getCallbackName, getCallbackRegisterFunction
5
8
  local ____postBombInitLate = require("callbacks.subscriptions.postBombInitLate")
@@ -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 ____utils = require("functions.utils")
5
7
  local getEnumValues = ____utils.getEnumValues
@@ -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__New = ____lualib.__TS__New
3
4
  local ____exports = {}
4
5
  local initCustomCallbacks, initFeatures
5
6
  local ____customRevive = require("callbacks.customRevive")
@@ -78,6 +79,8 @@ local ____forgottenSwitch = require("features.forgottenSwitch")
78
79
  local forgottenSwitchInit = ____forgottenSwitch.forgottenSwitchInit
79
80
  local ____getCollectibleItemPoolType = require("features.getCollectibleItemPoolType")
80
81
  local getCollectibleItemPoolTypeInit = ____getCollectibleItemPoolType.getCollectibleItemPoolTypeInit
82
+ local ____isPonyActive = require("features.isPonyActive")
83
+ local isPonyActiveInit = ____isPonyActive.isPonyActiveInit
81
84
  local ____preventCollectibleRotate = require("features.preventCollectibleRotate")
82
85
  local preventCollectibleRotateInit = ____preventCollectibleRotate.preventCollectibleRotateInit
83
86
  local ____runInNFrames = require("features.runInNFrames")
@@ -136,6 +139,7 @@ function initFeatures(self, mod)
136
139
  preventCollectibleRotateInit(nil, mod)
137
140
  runInNFramesInit(nil, mod)
138
141
  sirenHelpersInit(nil, mod)
142
+ isPonyActiveInit(nil, mod)
139
143
  end
140
144
  function ____exports.upgradeMod(self, modVanilla, verbose)
141
145
  if verbose == nil then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.98",
3
+ "version": "1.2.101",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,10 +25,10 @@
25
25
  "dist/**/*.d.ts"
26
26
  ],
27
27
  "devDependencies": {
28
- "@zamiell/typescript-to-lua": "1.4.0",
29
- "isaac-typescript-definitions": "1.0.355",
30
- "isaacscript-lint": "1.0.83",
31
- "isaacscript-tsconfig": "1.1.8",
28
+ "@zamiell/typescript-to-lua": "^1.4.2",
29
+ "isaac-typescript-definitions": "^1.0.355",
30
+ "isaacscript-lint": "^1.0.84",
31
+ "isaacscript-tsconfig": "^1.1.8",
32
32
  "typedoc": "^0.22.12",
33
33
  "typescript": "4.5.5"
34
34
  }