isaacscript-common 30.5.2 → 30.5.3

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 (93) hide show
  1. package/dist/index.rollup.d.ts +59 -58
  2. package/dist/isaacscript-common.lua +7280 -7265
  3. package/dist/src/arrays/cachedEnumValues.d.ts +1 -1
  4. package/dist/src/arrays/cachedEnumValues.d.ts.map +1 -1
  5. package/dist/src/arrays/cachedEnumValues.lua +2 -2
  6. package/dist/src/callbackClasses.d.ts +6 -6
  7. package/dist/src/callbackClasses.d.ts.map +1 -1
  8. package/dist/src/callbackClasses.lua +30 -30
  9. package/dist/src/classes/callbacks/PostGridEntityCollision.d.ts +2 -0
  10. package/dist/src/classes/callbacks/PostGridEntityCollision.d.ts.map +1 -1
  11. package/dist/src/classes/callbacks/PostGridEntityCustomCollision.d.ts +2 -0
  12. package/dist/src/classes/callbacks/PostGridEntityCustomCollision.d.ts.map +1 -1
  13. package/dist/src/classes/callbacks/PostPurchase.d.ts +2 -0
  14. package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
  15. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts +1 -1
  16. package/dist/src/classes/features/callbackLogic/GridEntityCollisionDetection.d.ts.map +1 -1
  17. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts +1 -1
  18. package/dist/src/classes/features/callbackLogic/ItemPickupDetection.d.ts.map +1 -1
  19. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts +1 -1
  20. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts.map +1 -1
  21. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts +1 -1
  22. package/dist/src/classes/features/callbackLogic/SlotRenderDetection.d.ts.map +1 -1
  23. package/dist/src/classes/features/other/ModdedElementSets.lua +2 -2
  24. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +2 -2
  25. package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +2 -2
  26. package/dist/src/functions/array.d.ts.map +1 -1
  27. package/dist/src/functions/bosses.d.ts +1 -1
  28. package/dist/src/functions/bosses.d.ts.map +1 -1
  29. package/dist/src/functions/collectibles.d.ts.map +1 -1
  30. package/dist/src/functions/collectibles.lua +3 -0
  31. package/dist/src/functions/decorators.d.ts.map +1 -1
  32. package/dist/src/functions/emptyRoom.lua +2 -2
  33. package/dist/src/functions/entities.d.ts +5 -4
  34. package/dist/src/functions/entities.d.ts.map +1 -1
  35. package/dist/src/functions/entities.lua +17 -4
  36. package/dist/src/functions/entitiesSpecific.d.ts +20 -20
  37. package/dist/src/functions/entitiesSpecific.d.ts.map +1 -1
  38. package/dist/src/functions/gridEntitiesSpecific.d.ts +10 -10
  39. package/dist/src/functions/gridEntitiesSpecific.d.ts.map +1 -1
  40. package/dist/src/functions/levelGrid.lua +2 -2
  41. package/dist/src/functions/npcs.d.ts +1 -1
  42. package/dist/src/functions/npcs.d.ts.map +1 -1
  43. package/dist/src/functions/pickups.lua +2 -2
  44. package/dist/src/functions/pickupsSpecific.d.ts +13 -13
  45. package/dist/src/functions/pickupsSpecific.d.ts.map +1 -1
  46. package/dist/src/functions/pills.lua +2 -2
  47. package/dist/src/functions/roomData.d.ts +8 -8
  48. package/dist/src/functions/roomData.d.ts.map +1 -1
  49. package/dist/src/functions/roomData.lua +6 -6
  50. package/dist/src/functions/roomShapeWalls.lua +3 -3
  51. package/dist/src/functions/serialization.d.ts.map +1 -1
  52. package/dist/src/functions/spawnCollectible.lua +2 -2
  53. package/dist/src/functions/vector.lua +1 -1
  54. package/dist/src/index.d.ts +5 -5
  55. package/dist/src/index.d.ts.map +1 -1
  56. package/dist/src/index.lua +11 -11
  57. package/dist/src/interfaces/RoomDescription.d.ts +1 -1
  58. package/dist/src/interfaces/RoomDescription.d.ts.map +1 -1
  59. package/package.json +2 -2
  60. package/src/arrays/cachedEnumValues.ts +1 -1
  61. package/src/callbackClasses.ts +6 -6
  62. package/src/classes/features/callbackLogic/GridEntityCollisionDetection.ts +1 -1
  63. package/src/classes/features/callbackLogic/ItemPickupDetection.ts +2 -2
  64. package/src/classes/features/callbackLogic/PlayerCollectibleDetection.ts +1 -1
  65. package/src/classes/features/callbackLogic/SlotRenderDetection.ts +1 -1
  66. package/src/classes/features/other/CustomStages.ts +4 -4
  67. package/src/classes/features/other/CustomTrapdoors.ts +1 -1
  68. package/src/classes/features/other/ModdedElementSets.ts +1 -1
  69. package/src/classes/features/other/PreventCollectibleRotation.ts +1 -1
  70. package/src/classes/features/other/extraConsoleCommands/commands.ts +1 -1
  71. package/src/functions/array.ts +2 -0
  72. package/src/functions/bosses.ts +1 -1
  73. package/src/functions/collectibles.ts +5 -1
  74. package/src/functions/decorators.ts +1 -1
  75. package/src/functions/emptyRoom.ts +1 -1
  76. package/src/functions/entities.ts +22 -7
  77. package/src/functions/entitiesSpecific.ts +20 -20
  78. package/src/functions/gridEntitiesSpecific.ts +10 -10
  79. package/src/functions/levelGrid.ts +1 -1
  80. package/src/functions/npcs.ts +1 -1
  81. package/src/functions/pickups.ts +1 -1
  82. package/src/functions/pickupsSpecific.ts +17 -13
  83. package/src/functions/pills.ts +1 -1
  84. package/src/functions/roomData.ts +8 -8
  85. package/src/functions/roomShapeWalls.ts +1 -1
  86. package/src/functions/serialization.ts +1 -1
  87. package/src/functions/spawnCollectible.ts +1 -1
  88. package/src/functions/vector.ts +1 -1
  89. package/src/index.ts +5 -5
  90. package/src/interfaces/RoomDescription.ts +1 -1
  91. package/dist/src/indexLua.d.ts +0 -186
  92. package/dist/src/indexLua.d.ts.map +0 -1
  93. package/dist/src/indexLua.lua +0 -1114
@@ -87,7 +87,7 @@ end
87
87
  --- Helper function to get the name of the room as it appears in the STB/XML data.
88
88
  --
89
89
  -- @param roomGridIndex Optional. Default is the current room index.
90
- -- @returns The room name. Returns "Unknown" if the type was not found.
90
+ -- @returns The room name. Returns "Unknown" if the room data was not found.
91
91
  function ____exports.getRoomName(self, roomGridIndex)
92
92
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
93
93
  return roomData == nil and "Unknown" or roomData.Name
@@ -95,7 +95,7 @@ end
95
95
  --- Helper function to get the name of the room as it appears in the STB/XML data.
96
96
  --
97
97
  -- @param roomGridIndex Optional. Default is the current room index.
98
- -- @returns The room name. Returns "Unknown" if the type was not found.
98
+ -- @returns The room name. Returns "Unknown"if the room data was not found.
99
99
  function ____exports.getRoomShape(self, roomGridIndex)
100
100
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
101
101
  local ____temp_0
@@ -111,7 +111,7 @@ end
111
111
  -- would have a stage ID of 7.
112
112
  --
113
113
  -- @param roomGridIndex Optional. Default is the current room index.
114
- -- @returns The room stage ID. Returns -1 if the stage ID was not found.
114
+ -- @returns The room stage ID. Returns -1 if the room data was not found.
115
115
  function ____exports.getRoomStageID(self, roomGridIndex)
116
116
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
117
117
  return roomData == nil and -1 or roomData.StageID
@@ -122,7 +122,7 @@ end
122
122
  -- Room and a sub-type of 1 will correspond to an Angel Room shop for The Stairway.
123
123
  --
124
124
  -- @param roomGridIndex Optional. Default is the current room index.
125
- -- @returns The room sub-type. Returns -1 if the sub-type was not found.
125
+ -- @returns The room sub-type. Returns -1 if the room data was not found.
126
126
  function ____exports.getRoomSubType(self, roomGridIndex)
127
127
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
128
128
  return roomData == nil and -1 or roomData.Subtype
@@ -130,7 +130,7 @@ end
130
130
  --- Helper function for getting the type of the room with the given grid index.
131
131
  --
132
132
  -- @param roomGridIndex Optional. Default is the current room index.
133
- -- @returns The room data type. Returns -1 if the type was not found.
133
+ -- @returns The room data type. Returns -1 if the room data was not found.
134
134
  function ____exports.getRoomType(self, roomGridIndex)
135
135
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
136
136
  return roomData == nil and -1 or roomData.Type
@@ -140,7 +140,7 @@ end
140
140
  -- command of `goto d.123` while on the Basement.
141
141
  --
142
142
  -- @param roomGridIndex Optional. Default is the current room index.
143
- -- @returns The room variant. Returns -1 if the variant was not found.
143
+ -- @returns The room variant. Returns -1 if the room data was not found.
144
144
  function ____exports.getRoomVariant(self, roomGridIndex)
145
145
  local roomData = ____exports.getRoomData(nil, roomGridIndex)
146
146
  return roomData == nil and -1 or roomData.Variant
@@ -19,12 +19,12 @@ local ____ReadonlySet = require("src.types.ReadonlySet")
19
19
  local ReadonlySet = ____ReadonlySet.ReadonlySet
20
20
  local ____gridIndex = require("src.functions.gridIndex")
21
21
  local getGridIndexesBetween = ____gridIndex.getGridIndexesBetween
22
- local ____rooms = require("src.functions.rooms")
23
- local inBossRoomOf = ____rooms.inBossRoomOf
24
- local inHomeCloset = ____rooms.inHomeCloset
25
22
  local ____roomShape = require("src.functions.roomShape")
26
23
  local getRoomShapeCorners = ____roomShape.getRoomShapeCorners
27
24
  local isLRoom = ____roomShape.isLRoom
25
+ local ____rooms = require("src.functions.rooms")
26
+ local inBossRoomOf = ____rooms.inBossRoomOf
27
+ local inHomeCloset = ____rooms.inHomeCloset
28
28
  function getVanillaWallGridIndexSetForRoomShape(self, roomShape)
29
29
  local corners = getRoomShapeCorners(nil, roomShape)
30
30
  local lRoom = isLRoom(nil, roomShape)
@@ -1 +1 @@
1
- {"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../src/functions/serialization.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EAErB,iCAAiC,EACjC,uBAAuB,EAEvB,uBAAuB,EACxB,MAAM,yCAAyC,CAAC;AAIjD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,qBAAqB,EAC/D,aAAa,EAAE,CAAC,GACf,CAAC,CAoCH;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,SAAS,uBAAuB,EAE3C,uBAAuB,EAAE,WAAW,GACnC,uBAAuB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAkChD;AAoBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,qBAAqB,CAIjC;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,uBAAuB,CAQnC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,qBAAqB,EACpE,aAAa,EAAE,CAAC,GACf,iCAAiC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAoChD"}
1
+ {"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../src/functions/serialization.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EAGrB,iCAAiC,EACjC,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,yCAAyC,CAAC;AAIjD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,qBAAqB,EAC/D,aAAa,EAAE,CAAC,GACf,CAAC,CAoCH;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,SAAS,uBAAuB,EAE3C,uBAAuB,EAAE,WAAW,GACnC,uBAAuB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAkChD;AAoBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,qBAAqB,CAIjC;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,uBAAuB,CAQnC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,qBAAqB,EACpE,aAAa,EAAE,CAAC,GACf,iCAAiC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAoChD"}
@@ -5,10 +5,10 @@ local PickupVariant = ____isaac_2Dtypescript_2Ddefinitions.PickupVariant
5
5
  local PlayerType = ____isaac_2Dtypescript_2Ddefinitions.PlayerType
6
6
  local ____constants = require("src.core.constants")
7
7
  local VectorZero = ____constants.VectorZero
8
- local ____collectibles = require("src.functions.collectibles")
9
- local setCollectibleEmpty = ____collectibles.setCollectibleEmpty
10
8
  local ____collectibleTag = require("src.functions.collectibleTag")
11
9
  local isQuestCollectible = ____collectibleTag.isQuestCollectible
10
+ local ____collectibles = require("src.functions.collectibles")
11
+ local setCollectibleEmpty = ____collectibles.setCollectibleEmpty
12
12
  local ____entitiesSpecific = require("src.functions.entitiesSpecific")
13
13
  local spawnPickupWithSeed = ____entitiesSpecific.spawnPickupWithSeed
14
14
  local ____players = require("src.functions.players")
@@ -5,8 +5,8 @@ local SerializationBrand = ____SerializationBrand.SerializationBrand
5
5
  local ____direction = require("src.functions.direction")
6
6
  local angleToDirection = ____direction.angleToDirection
7
7
  local ____isaacAPIClass = require("src.functions.isaacAPIClass")
8
- local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
9
8
  local isIsaacAPIClassOfType = ____isaacAPIClass.isIsaacAPIClassOfType
9
+ local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
10
10
  local ____random = require("src.functions.random")
11
11
  local getRandomFloat = ____random.getRandomFloat
12
12
  local ____rng = require("src.functions.rng")
@@ -31,8 +31,8 @@ export * from "./functions/challenges";
31
31
  export * from "./functions/characters";
32
32
  export * from "./functions/charge";
33
33
  export * from "./functions/chargeBar";
34
- export * from "./functions/collectibles";
35
34
  export * from "./functions/collectibleTag";
35
+ export * from "./functions/collectibles";
36
36
  export * from "./functions/color";
37
37
  export * from "./functions/console";
38
38
  export * from "./functions/curses";
@@ -78,16 +78,16 @@ export * from "./functions/minimap";
78
78
  export * from "./functions/modFeatures";
79
79
  export * from "./functions/nextStage";
80
80
  export * from "./functions/npcs";
81
+ export * from "./functions/pickupVariants";
81
82
  export * from "./functions/pickups";
82
83
  export * from "./functions/pickupsSpecific";
83
- export * from "./functions/pickupVariants";
84
84
  export * from "./functions/pills";
85
85
  export * from "./functions/playerCenter";
86
86
  export * from "./functions/playerDataStructures";
87
87
  export * from "./functions/playerHealth";
88
88
  export * from "./functions/playerIndex";
89
- export * from "./functions/players";
90
89
  export * from "./functions/playerStats";
90
+ export * from "./functions/players";
91
91
  export * from "./functions/pocketItems";
92
92
  export * from "./functions/positionVelocity";
93
93
  export * from "./functions/pressurePlate";
@@ -99,10 +99,10 @@ export * from "./functions/rng";
99
99
  export * from "./functions/rockAlt";
100
100
  export * from "./functions/roomData";
101
101
  export * from "./functions/roomGrid";
102
- export * from "./functions/rooms";
103
102
  export * from "./functions/roomShape";
104
103
  export * from "./functions/roomShapeWalls";
105
104
  export * from "./functions/roomTransition";
105
+ export * from "./functions/rooms";
106
106
  export * from "./functions/run";
107
107
  export * from "./functions/seeds";
108
108
  export * from "./functions/serialization";
@@ -137,8 +137,8 @@ export * from "./interfaces/RoomDescription";
137
137
  export * from "./interfaces/SaveData";
138
138
  export * from "./interfaces/StageHistoryEntry";
139
139
  export * from "./interfaces/StatTypeType";
140
- export * from "./interfaces/TrinketSituation";
141
140
  export * from "./interfaces/TSTLClassMetatable";
141
+ export * from "./interfaces/TrinketSituation";
142
142
  export * from "./maps/cardNameToTypeMap";
143
143
  export * from "./maps/characterNameToTypeMap";
144
144
  export * from "./maps/pillNameToEffectMap";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAA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jC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
@@ -264,7 +264,7 @@ do
264
264
  end
265
265
  end
266
266
  do
267
- local ____export = require("src.functions.collectibles")
267
+ local ____export = require("src.functions.collectibleTag")
268
268
  for ____exportKey, ____exportValue in pairs(____export) do
269
269
  if ____exportKey ~= "default" then
270
270
  ____exports[____exportKey] = ____exportValue
@@ -272,7 +272,7 @@ do
272
272
  end
273
273
  end
274
274
  do
275
- local ____export = require("src.functions.collectibleTag")
275
+ local ____export = require("src.functions.collectibles")
276
276
  for ____exportKey, ____exportValue in pairs(____export) do
277
277
  if ____exportKey ~= "default" then
278
278
  ____exports[____exportKey] = ____exportValue
@@ -640,7 +640,7 @@ do
640
640
  end
641
641
  end
642
642
  do
643
- local ____export = require("src.functions.pickups")
643
+ local ____export = require("src.functions.pickupVariants")
644
644
  for ____exportKey, ____exportValue in pairs(____export) do
645
645
  if ____exportKey ~= "default" then
646
646
  ____exports[____exportKey] = ____exportValue
@@ -648,7 +648,7 @@ do
648
648
  end
649
649
  end
650
650
  do
651
- local ____export = require("src.functions.pickupsSpecific")
651
+ local ____export = require("src.functions.pickups")
652
652
  for ____exportKey, ____exportValue in pairs(____export) do
653
653
  if ____exportKey ~= "default" then
654
654
  ____exports[____exportKey] = ____exportValue
@@ -656,7 +656,7 @@ do
656
656
  end
657
657
  end
658
658
  do
659
- local ____export = require("src.functions.pickupVariants")
659
+ local ____export = require("src.functions.pickupsSpecific")
660
660
  for ____exportKey, ____exportValue in pairs(____export) do
661
661
  if ____exportKey ~= "default" then
662
662
  ____exports[____exportKey] = ____exportValue
@@ -704,7 +704,7 @@ do
704
704
  end
705
705
  end
706
706
  do
707
- local ____export = require("src.functions.players")
707
+ local ____export = require("src.functions.playerStats")
708
708
  for ____exportKey, ____exportValue in pairs(____export) do
709
709
  if ____exportKey ~= "default" then
710
710
  ____exports[____exportKey] = ____exportValue
@@ -712,7 +712,7 @@ do
712
712
  end
713
713
  end
714
714
  do
715
- local ____export = require("src.functions.playerStats")
715
+ local ____export = require("src.functions.players")
716
716
  for ____exportKey, ____exportValue in pairs(____export) do
717
717
  if ____exportKey ~= "default" then
718
718
  ____exports[____exportKey] = ____exportValue
@@ -808,7 +808,7 @@ do
808
808
  end
809
809
  end
810
810
  do
811
- local ____export = require("src.functions.rooms")
811
+ local ____export = require("src.functions.roomShape")
812
812
  for ____exportKey, ____exportValue in pairs(____export) do
813
813
  if ____exportKey ~= "default" then
814
814
  ____exports[____exportKey] = ____exportValue
@@ -816,7 +816,7 @@ do
816
816
  end
817
817
  end
818
818
  do
819
- local ____export = require("src.functions.roomShape")
819
+ local ____export = require("src.functions.roomShapeWalls")
820
820
  for ____exportKey, ____exportValue in pairs(____export) do
821
821
  if ____exportKey ~= "default" then
822
822
  ____exports[____exportKey] = ____exportValue
@@ -824,7 +824,7 @@ do
824
824
  end
825
825
  end
826
826
  do
827
- local ____export = require("src.functions.roomShapeWalls")
827
+ local ____export = require("src.functions.roomTransition")
828
828
  for ____exportKey, ____exportValue in pairs(____export) do
829
829
  if ____exportKey ~= "default" then
830
830
  ____exports[____exportKey] = ____exportValue
@@ -832,7 +832,7 @@ do
832
832
  end
833
833
  end
834
834
  do
835
- local ____export = require("src.functions.roomTransition")
835
+ local ____export = require("src.functions.rooms")
836
836
  for ____exportKey, ____exportValue in pairs(____export) do
837
837
  if ____exportKey ~= "default" then
838
838
  ____exports[____exportKey] = ____exportValue
@@ -4,7 +4,7 @@ export interface RoomDescription {
4
4
  startSeedString: string;
5
5
  stage: LevelStage;
6
6
  stageType: StageType;
7
- stageID: StageID;
7
+ stageID: StageID | -1;
8
8
  dimension: Dimension;
9
9
  roomType: RoomType;
10
10
  roomVariant: int;
@@ -1 +1 @@
1
- {"version":3,"file":"RoomDescription.d.ts","sourceRoot":"","sources":["../../../src/interfaces/RoomDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,OAAO,EACP,SAAS,EACV,MAAM,8BAA8B,CAAC;AAEtC,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,WAAW,EAAE,GAAG,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,GAAG,CAAC;IACnB,aAAa,EAAE,GAAG,CAAC;IACnB,gBAAgB,EAAE,GAAG,CAAC;CACvB"}
1
+ {"version":3,"file":"RoomDescription.d.ts","sourceRoot":"","sources":["../../../src/interfaces/RoomDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,OAAO,EACP,SAAS,EACV,MAAM,8BAA8B,CAAC;AAEtC,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,WAAW,EAAE,GAAG,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,GAAG,CAAC;IACnB,aAAa,EAAE,GAAG,CAAC;IACnB,gBAAgB,EAAE,GAAG,CAAC;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "30.5.2",
3
+ "version": "30.5.3",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,6 +25,6 @@
25
25
  "main": "dist/src/index",
26
26
  "types": "dist/index.rollup.d.ts",
27
27
  "dependencies": {
28
- "isaac-typescript-definitions": "^13.0.7"
28
+ "isaac-typescript-definitions": "^13.0.8"
29
29
  }
30
30
  }
@@ -20,8 +20,8 @@ import {
20
20
  TrinketSlot,
21
21
  } from "isaac-typescript-definitions";
22
22
  import { HealthType } from "../enums/HealthType";
23
- import { SerializationBrand } from "../enums/private/SerializationBrand";
24
23
  import { StatType } from "../enums/StatType";
24
+ import { SerializationBrand } from "../enums/private/SerializationBrand";
25
25
  import { getEnumValues } from "../functions/enums";
26
26
 
27
27
  export const ACTIVE_SLOT_VALUES: readonly ActiveSlot[] =
@@ -64,15 +64,15 @@ export { PostLaserInitFilter } from "./classes/callbacks/PostLaserInitFilter";
64
64
  export { PostLaserInitLate } from "./classes/callbacks/PostLaserInitLate";
65
65
  export { PostLaserRenderFilter } from "./classes/callbacks/PostLaserRenderFilter";
66
66
  export { PostLaserUpdateFilter } from "./classes/callbacks/PostLaserUpdateFilter";
67
- export { PostNewLevelReordered } from "./classes/callbacks/PostNewLevelReordered";
68
- export { PostNewRoomEarly } from "./classes/callbacks/PostNewRoomEarly";
69
- export { PostNewRoomReordered } from "./classes/callbacks/PostNewRoomReordered";
70
67
  export { PostNPCDeathFilter } from "./classes/callbacks/PostNPCDeathFilter";
71
68
  export { PostNPCInitFilter } from "./classes/callbacks/PostNPCInitFilter";
72
69
  export { PostNPCInitLate } from "./classes/callbacks/PostNPCInitLate";
73
70
  export { PostNPCRenderFilter } from "./classes/callbacks/PostNPCRenderFilter";
74
71
  export { PostNPCStateChanged } from "./classes/callbacks/PostNPCStateChanged";
75
72
  export { PostNPCUpdateFilter } from "./classes/callbacks/PostNPCUpdateFilter";
73
+ export { PostNewLevelReordered } from "./classes/callbacks/PostNewLevelReordered";
74
+ export { PostNewRoomEarly } from "./classes/callbacks/PostNewRoomEarly";
75
+ export { PostNewRoomReordered } from "./classes/callbacks/PostNewRoomReordered";
76
76
  export { PostPEffectUpdateReordered } from "./classes/callbacks/PostPEffectUpdateReordered";
77
77
  export { PostPickupChanged } from "./classes/callbacks/PostPickupChanged";
78
78
  export { PostPickupCollect } from "./classes/callbacks/PostPickupCollect";
@@ -117,14 +117,14 @@ export { PostSlotRender } from "./classes/callbacks/PostSlotRender";
117
117
  export { PostSlotUpdate } from "./classes/callbacks/PostSlotUpdate";
118
118
  export { PostSpikesRender } from "./classes/callbacks/PostSpikesRender";
119
119
  export { PostSpikesUpdate } from "./classes/callbacks/PostSpikesUpdate";
120
+ export { PostTNTRender } from "./classes/callbacks/PostTNTRender";
121
+ export { PostTNTUpdate } from "./classes/callbacks/PostTNTUpdate";
120
122
  export { PostTearInitFilter } from "./classes/callbacks/PostTearInitFilter";
121
123
  export { PostTearInitLate } from "./classes/callbacks/PostTearInitLate";
122
124
  export { PostTearInitVeryLate } from "./classes/callbacks/PostTearInitVeryLate";
123
125
  export { PostTearKill } from "./classes/callbacks/PostTearKill";
124
126
  export { PostTearRenderFilter } from "./classes/callbacks/PostTearRenderFilter";
125
127
  export { PostTearUpdateFilter } from "./classes/callbacks/PostTearUpdateFilter";
126
- export { PostTNTRender } from "./classes/callbacks/PostTNTRender";
127
- export { PostTNTUpdate } from "./classes/callbacks/PostTNTUpdate";
128
128
  export { PostTransformation } from "./classes/callbacks/PostTransformation";
129
129
  export { PostTrinketBreak } from "./classes/callbacks/PostTrinketBreak";
130
130
  export { PostUsePillFilter } from "./classes/callbacks/PostUsePillFilter";
@@ -136,9 +136,9 @@ export { PreFamiliarCollisionFilter } from "./classes/callbacks/PreFamiliarColli
136
136
  export { PreGetPedestal } from "./classes/callbacks/PreGetPedestal";
137
137
  export { PreItemPickup } from "./classes/callbacks/PreItemPickup";
138
138
  export { PreKnifeCollisionFilter } from "./classes/callbacks/PreKnifeCollisionFilter";
139
- export { PreNewLevel } from "./classes/callbacks/PreNewLevel";
140
139
  export { PreNPCCollisionFilter } from "./classes/callbacks/PreNPCCollisionFilter";
141
140
  export { PreNPCUpdateFilter } from "./classes/callbacks/PreNPCUpdateFilter";
141
+ export { PreNewLevel } from "./classes/callbacks/PreNewLevel";
142
142
  export { PreProjectileCollisionFilter } from "./classes/callbacks/PreProjectileCollisionFilter";
143
143
  export { PreRoomEntitySpawnFilter } from "./classes/callbacks/PreRoomEntitySpawnFilter";
144
144
  export { PreTearCollisionFilter } from "./classes/callbacks/PreTearCollisionFilter";
@@ -3,9 +3,9 @@ import {
3
3
  getCollidingEntitiesWithGridEntity,
4
4
  getGridEntities,
5
5
  } from "../../../functions/gridEntities";
6
+ import { DefaultMap } from "../../DefaultMap";
6
7
  import { PostGridEntityCollision } from "../../callbacks/PostGridEntityCollision";
7
8
  import { PostGridEntityCustomCollision } from "../../callbacks/PostGridEntityCustomCollision";
8
- import { DefaultMap } from "../../DefaultMap";
9
9
  import { Feature } from "../../private/Feature";
10
10
  import { CustomGridEntities } from "./CustomGridEntities";
11
11
 
@@ -7,14 +7,14 @@ import { ModCallbackCustom } from "../../../enums/ModCallbackCustom";
7
7
  import { defaultMapGetPlayer } from "../../../functions/playerDataStructures";
8
8
  import { asNumber } from "../../../functions/types";
9
9
  import {
10
- newPickingUpItem,
11
10
  PickingUpItem,
11
+ newPickingUpItem,
12
12
  resetPickingUpItem,
13
13
  } from "../../../types/PickingUpItem";
14
14
  import { PlayerIndex } from "../../../types/PlayerIndex";
15
+ import { DefaultMap } from "../../DefaultMap";
15
16
  import { PostItemPickup } from "../../callbacks/PostItemPickup";
16
17
  import { PreItemPickup } from "../../callbacks/PreItemPickup";
17
- import { DefaultMap } from "../../DefaultMap";
18
18
  import { Feature } from "../../private/Feature";
19
19
 
20
20
  const v = {
@@ -19,9 +19,9 @@ import { getPlayerFromPtr } from "../../../functions/players";
19
19
  import { repeat } from "../../../functions/utils";
20
20
  import { PickingUpItem } from "../../../types/PickingUpItem";
21
21
  import { PlayerIndex } from "../../../types/PlayerIndex";
22
+ import { DefaultMap } from "../../DefaultMap";
22
23
  import { PostPlayerCollectibleAdded } from "../../callbacks/PostPlayerCollectibleAdded";
23
24
  import { PostPlayerCollectibleRemoved } from "../../callbacks/PostPlayerCollectibleRemoved";
24
- import { DefaultMap } from "../../DefaultMap";
25
25
  import { Feature } from "../../private/Feature";
26
26
  import { ModdedElementSets } from "../other/ModdedElementSets";
27
27
  import { RunInNFrames } from "../other/RunInNFrames";
@@ -1,8 +1,8 @@
1
1
  import { ModCallback } from "isaac-typescript-definitions";
2
2
  import { getSlots } from "../../../functions/entitiesSpecific";
3
+ import { DefaultMap } from "../../DefaultMap";
3
4
  import { PostSlotAnimationChanged } from "../../callbacks/PostSlotAnimationChanged";
4
5
  import { PostSlotRender } from "../../callbacks/PostSlotRender";
5
- import { DefaultMap } from "../../DefaultMap";
6
6
  import { Feature } from "../../private/Feature";
7
7
 
8
8
  const v = {
@@ -42,6 +42,10 @@ import {
42
42
  import { Feature } from "../../private/Feature";
43
43
  import { CustomGridEntities } from "../callbackLogic/CustomGridEntities";
44
44
  import { GameReorderedCallbacks } from "../callbackLogic/GameReorderedCallbacks";
45
+ import { CustomTrapdoors } from "./CustomTrapdoors";
46
+ import { DisableAllSound } from "./DisableAllSound";
47
+ import { Pause } from "./Pause";
48
+ import { RunInNFrames } from "./RunInNFrames";
45
49
  import { setCustomStageBackdrop } from "./customStages/backdrop";
46
50
  import {
47
51
  CUSTOM_FLOOR_STAGE,
@@ -71,10 +75,6 @@ import {
71
75
  playVersusScreenAnimation,
72
76
  versusScreenPostRender,
73
77
  } from "./customStages/versusScreen";
74
- import { CustomTrapdoors } from "./CustomTrapdoors";
75
- import { DisableAllSound } from "./DisableAllSound";
76
- import { Pause } from "./Pause";
77
- import { RunInNFrames } from "./RunInNFrames";
78
78
 
79
79
  /**
80
80
  * 60 does not work correctly (the music kicking in from stage -1 will mute it), so we use 70 to be
@@ -43,13 +43,13 @@ import { ReadonlySet } from "../../../types/ReadonlySet";
43
43
  import { DefaultMap } from "../../DefaultMap";
44
44
  import { Feature } from "../../private/Feature";
45
45
  import { CustomGridEntities } from "../callbackLogic/CustomGridEntities";
46
- import { CUSTOM_FLOOR_STAGE } from "./customStages/constants";
47
46
  import { DisableInputs } from "./DisableInputs";
48
47
  import { PonyDetection } from "./PonyDetection";
49
48
  import { RoomClearFrame } from "./RoomClearFrame";
50
49
  import { RunInNFrames } from "./RunInNFrames";
51
50
  import { RunNextRoom } from "./RunNextRoom";
52
51
  import { StageHistory } from "./StageHistory";
52
+ import { CUSTOM_FLOOR_STAGE } from "./customStages/constants";
53
53
 
54
54
  const DEBUG = false as boolean;
55
55
 
@@ -20,6 +20,7 @@ import {
20
20
  getItemConfigCardType,
21
21
  getVanillaCardTypes,
22
22
  } from "../../../functions/cards";
23
+ import { collectibleHasTag } from "../../../functions/collectibleTag";
23
24
  import {
24
25
  collectibleHasCacheFlag,
25
26
  getVanillaCollectibleTypeRange,
@@ -27,7 +28,6 @@ import {
27
28
  isHiddenCollectible,
28
29
  isPassiveCollectible,
29
30
  } from "../../../functions/collectibles";
30
- import { collectibleHasTag } from "../../../functions/collectibleTag";
31
31
  import { getFlagName } from "../../../functions/flag";
32
32
  import { getRandomSeed } from "../../../functions/rng";
33
33
  import {
@@ -11,8 +11,8 @@ import { ISCFeature } from "../../../enums/ISCFeature";
11
11
  import { ModCallbackCustom } from "../../../enums/ModCallbackCustom";
12
12
  import { setCollectibleSubType } from "../../../functions/collectibles";
13
13
  import { getEntityID } from "../../../functions/entities";
14
- import { getCollectibles } from "../../../functions/pickupsSpecific";
15
14
  import { isCollectible } from "../../../functions/pickupVariants";
15
+ import { getCollectibles } from "../../../functions/pickupsSpecific";
16
16
  import { asCollectibleType } from "../../../functions/types";
17
17
  import { PickupIndex } from "../../../types/PickupIndex";
18
18
  import { ReadonlySet } from "../../../types/ReadonlySet";
@@ -106,8 +106,8 @@ import {
106
106
  useActiveItemTemp,
107
107
  } from "../../../../functions/players";
108
108
  import { gridCoordinatesToWorldPosition } from "../../../../functions/roomGrid";
109
- import { changeRoom } from "../../../../functions/rooms";
110
109
  import { reloadRoom as reloadRoomFunction } from "../../../../functions/roomTransition";
110
+ import { changeRoom } from "../../../../functions/rooms";
111
111
  import { onSetSeed, restart, setUnseeded } from "../../../../functions/run";
112
112
  import { spawnCollectibleUnsafe } from "../../../../functions/spawnCollectible";
113
113
  import { setStage } from "../../../../functions/stage";
@@ -212,6 +212,8 @@ export function copyArray<T>(
212
212
  oldArray: T[] | readonly T[],
213
213
  numElements?: int,
214
214
  ): T[] {
215
+ // Using the spread operator was benchmarked to be faster than manually creating an array using
216
+ // the below algorithm.
215
217
  if (numElements === undefined) {
216
218
  return [...oldArray];
217
219
  }
@@ -43,7 +43,7 @@ const DEFAULT_BOSS_MULTI_SEGMENTS = 4;
43
43
  * @param ignoreFriendly Optional. Default is false.
44
44
  */
45
45
  export function getAliveBosses(
46
- entityType: EntityType = -1,
46
+ entityType: EntityType | -1 = -1,
47
47
  variant = -1,
48
48
  subType = -1,
49
49
  ignoreFriendly = false,
@@ -235,6 +235,10 @@ export function getCollectibleDevilHeartPrice(
235
235
  export function getCollectibleGfxFilename(
236
236
  collectibleOrCollectibleType: EntityPickup | CollectibleType | -1,
237
237
  ): string {
238
+ if (collectibleOrCollectibleType === -1) {
239
+ return BLIND_ITEM_PNG_PATH;
240
+ }
241
+
238
242
  const collectibleType = getCollectibleTypeFromArg(
239
243
  collectibleOrCollectibleType,
240
244
  "getCollectibleGfxFilename",
@@ -769,7 +773,7 @@ export function setCollectiblesRerolledForItemTracker(): void {
769
773
  }
770
774
 
771
775
  function getCollectibleTypeFromArg(
772
- collectibleOrCollectibleType: EntityPickup | CollectibleType | -1,
776
+ collectibleOrCollectibleType: EntityPickup | CollectibleType,
773
777
  functionName: string,
774
778
  ): CollectibleType {
775
779
  if (isNumber(collectibleOrCollectibleType)) {
@@ -23,9 +23,9 @@
23
23
  import { ModCallback } from "isaac-typescript-definitions";
24
24
  import { CallbackPriority } from "isaac-typescript-definitions/dist/src/enums/CallbackPriority";
25
25
  import {
26
- ModFeature,
27
26
  MOD_FEATURE_CALLBACKS_KEY,
28
27
  MOD_FEATURE_CUSTOM_CALLBACKS_KEY,
28
+ ModFeature,
29
29
  } from "../classes/ModFeature";
30
30
  import { ModCallbackCustom } from "../enums/ModCallbackCustom";
31
31
  import { AddCallbackParametersCustom } from "../interfaces/private/AddCallbackParametersCustom";
@@ -7,8 +7,8 @@ import { game } from "../core/cachedClasses";
7
7
  import { ReadonlySet } from "../types/ReadonlySet";
8
8
  import { getEntities } from "./entities";
9
9
  import { getGridEntities, removeGridEntity } from "./gridEntities";
10
- import { roomUpdateSafe } from "./rooms";
11
10
  import { isVanillaWallGridIndex } from "./roomShapeWalls";
11
+ import { roomUpdateSafe } from "./rooms";
12
12
 
13
13
  const EMPTY_ROOM_BLACKLIST_ENTITY_SET = new ReadonlySet<EntityType>([
14
14
  EntityType.PLAYER, // 1
@@ -1,4 +1,4 @@
1
- import { EntityType } from "isaac-typescript-definitions";
1
+ import { EntityFlag, EntityType } from "isaac-typescript-definitions";
2
2
  import { game } from "../core/cachedClasses";
3
3
  import { VectorZero } from "../core/constants";
4
4
  import { ENTITIES_WITH_ARMOR_SET } from "../sets/entitiesWithArmorSet";
@@ -11,7 +11,7 @@ import { newReadonlyColor } from "./readOnly";
11
11
  import { isRNG, newRNG } from "./rng";
12
12
  import { setSpriteOpacity } from "./sprites";
13
13
  import { isTSTLSet } from "./tstlClass";
14
- import { asNumber, isPrimitive } from "./types";
14
+ import { isPrimitive } from "./types";
15
15
  import { doesVectorHaveLength, isVector, vectorToString } from "./vector";
16
16
 
17
17
  /** From DeadInfinity. */
@@ -33,14 +33,29 @@ const DAMAGE_FLASH_COLOR = newReadonlyColor(
33
33
  * @param entityType Optional. Default is -1, which matches every entity type.
34
34
  * @param variant Optional. Default is -1, which matches every variant.
35
35
  * @param subType Optional. Default is -1, which matches every sub-type.
36
- * @param ignoreFriendly Optional. Default is false.
36
+ * @param ignoreFriendly Optional. Default is false. Will throw a runtime error if set to true and
37
+ * the `entityType` is equal to -1.
37
38
  */
38
39
  export function countEntities(
39
- entityType: EntityType = -1,
40
+ entityType: EntityType | -1 = -1,
40
41
  variant = -1,
41
42
  subType = -1,
42
43
  ignoreFriendly = false,
43
44
  ): int {
45
+ if (entityType === -1) {
46
+ // The `Isaac.CountEntities` method requires an argument of `EntityType`, so we must revert to
47
+ // using the `Isaac.GetRoomEntities` method, which is slower.
48
+ const entities = Isaac.GetRoomEntities();
49
+ if (!ignoreFriendly) {
50
+ return entities.length;
51
+ }
52
+
53
+ const nonFriendlyEntities = entities.filter(
54
+ (entity) => !entity.HasEntityFlags(EntityFlag.FRIENDLY),
55
+ );
56
+ return nonFriendlyEntities.length;
57
+ }
58
+
44
59
  if (!ignoreFriendly) {
45
60
  return Isaac.CountEntities(undefined, entityType, variant, subType);
46
61
  }
@@ -91,7 +106,7 @@ export function doesAnyEntityExist(
91
106
  * @param ignoreFriendly Optional. Default is false.
92
107
  */
93
108
  export function doesEntityExist(
94
- entityType: EntityType = -1,
109
+ entityType: EntityType | -1 = -1,
95
110
  variant = -1,
96
111
  subType = -1,
97
112
  ignoreFriendly = false,
@@ -198,12 +213,12 @@ export function getConstituentsFromEntityID(
198
213
  * `entityType` is specified.
199
214
  */
200
215
  export function getEntities(
201
- entityType: EntityType = -1,
216
+ entityType: EntityType | -1 = -1,
202
217
  variant = -1,
203
218
  subType = -1,
204
219
  ignoreFriendly = false,
205
220
  ): Entity[] {
206
- if (asNumber(entityType) === -1) {
221
+ if (entityType === -1) {
207
222
  return Isaac.GetRoomEntities();
208
223
  }
209
224