isaacscript-common 71.0.1 → 71.1.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.
@@ -8649,18 +8649,19 @@ export declare function isAllPressurePlatesPushed(): boolean;
8649
8649
  /**
8650
8650
  * Helper function to loop through every room on the floor and see if it has been cleared.
8651
8651
  *
8652
- * This function will only check rooms inside the gird and inside the current dimension.
8652
+ * This function will only check rooms inside the grid and inside the current dimension.
8653
8653
  *
8654
8654
  * @param onlyCheckRoomTypes Optional. A whitelist of room types. If specified, room types not in
8655
8655
  * the array will be ignored. If not specified, then all rooms will be
8656
8656
  * checked. Undefined by default.
8657
- * @param includeSecretAndSuperSecretRoom Optional. Whether to include the Secret Room and the Super
8658
- * Secret Room. Default is false.
8657
+ * @param includeSecretRoom Optional. Whether to include the Secret Room. Default is false.
8658
+ * @param includeSuperSecretRoom Optional. Whether to include the Super Secret Room. Default is
8659
+ * false.
8659
8660
  * @param includeUltraSecretRoom Optional. Whether to include the Ultra Secret Room. Default is
8660
8661
  * false.
8661
8662
  * @allowEmptyVariadic
8662
8663
  */
8663
- export declare function isAllRoomsClear(onlyCheckRoomTypes?: RoomType[] | readonly RoomType[], includeSecretAndSuperSecretRoom?: boolean, includeUltraSecretRoom?: boolean): boolean;
8664
+ export declare function isAllRoomsClear(onlyCheckRoomTypes?: RoomType[] | readonly RoomType[], includeSecretRoom?: boolean, includeSuperSecretRoom?: boolean, includeUltraSecretRoom?: boolean): boolean;
8664
8665
 
8665
8666
  export declare function isAngelRoomDoor(door: GridEntityDoor): boolean;
8666
8667
 
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 71.0.1
3
+ isaacscript-common 71.1.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -28479,9 +28479,12 @@ function ____exports.inStartingRoom(self)
28479
28479
  local roomGridIndex = getRoomGridIndex(nil)
28480
28480
  return roomGridIndex == startingRoomGridIndex and inDimension(nil, Dimension.MAIN)
28481
28481
  end
28482
- function ____exports.isAllRoomsClear(self, onlyCheckRoomTypes, includeSecretAndSuperSecretRoom, includeUltraSecretRoom)
28483
- if includeSecretAndSuperSecretRoom == nil then
28484
- includeSecretAndSuperSecretRoom = false
28482
+ function ____exports.isAllRoomsClear(self, onlyCheckRoomTypes, includeSecretRoom, includeSuperSecretRoom, includeUltraSecretRoom)
28483
+ if includeSecretRoom == nil then
28484
+ includeSecretRoom = false
28485
+ end
28486
+ if includeSuperSecretRoom == nil then
28487
+ includeSuperSecretRoom = false
28485
28488
  end
28486
28489
  if includeUltraSecretRoom == nil then
28487
28490
  includeUltraSecretRoom = false
@@ -28497,10 +28500,16 @@ function ____exports.isAllRoomsClear(self, onlyCheckRoomTypes, includeSecretAndS
28497
28500
  function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomTypeWhitelist:has(roomDescriptor.Data.Type) end
28498
28501
  )
28499
28502
  end
28500
- if not includeSecretAndSuperSecretRoom then
28503
+ if not includeSecretRoom then
28504
+ matchingRooms = __TS__ArrayFilter(
28505
+ matchingRooms,
28506
+ function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomDescriptor.Data.Type ~= RoomType.SECRET end
28507
+ )
28508
+ end
28509
+ if not includeSuperSecretRoom then
28501
28510
  matchingRooms = __TS__ArrayFilter(
28502
28511
  matchingRooms,
28503
- function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomDescriptor.Data.Type ~= RoomType.SECRET and roomDescriptor.Data.Type ~= RoomType.SUPER_SECRET end
28512
+ function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomDescriptor.Data.Type ~= RoomType.SUPER_SECRET end
28504
28513
  )
28505
28514
  end
28506
28515
  if not includeUltraSecretRoom then
@@ -28567,12 +28576,12 @@ function ____exports.setRoomCleared(self)
28567
28576
  for ____, door in ipairs(getDoors(nil)) do
28568
28577
  do
28569
28578
  if isHiddenSecretRoomDoor(nil, door) then
28570
- goto __continue91
28579
+ goto __continue93
28571
28580
  end
28572
28581
  openDoorFast(nil, door)
28573
28582
  door.ExtraVisible = false
28574
28583
  end
28575
- ::__continue91::
28584
+ ::__continue93::
28576
28585
  end
28577
28586
  sfxManager:Stop(SoundEffect.DOOR_HEAVY_OPEN)
28578
28587
  game:ShakeScreen(0)
@@ -244,18 +244,19 @@ export declare function is2x1Room(roomData: RoomConfig): boolean;
244
244
  /**
245
245
  * Helper function to loop through every room on the floor and see if it has been cleared.
246
246
  *
247
- * This function will only check rooms inside the gird and inside the current dimension.
247
+ * This function will only check rooms inside the grid and inside the current dimension.
248
248
  *
249
249
  * @param onlyCheckRoomTypes Optional. A whitelist of room types. If specified, room types not in
250
250
  * the array will be ignored. If not specified, then all rooms will be
251
251
  * checked. Undefined by default.
252
- * @param includeSecretAndSuperSecretRoom Optional. Whether to include the Secret Room and the Super
253
- * Secret Room. Default is false.
252
+ * @param includeSecretRoom Optional. Whether to include the Secret Room. Default is false.
253
+ * @param includeSuperSecretRoom Optional. Whether to include the Super Secret Room. Default is
254
+ * false.
254
255
  * @param includeUltraSecretRoom Optional. Whether to include the Ultra Secret Room. Default is
255
256
  * false.
256
257
  * @allowEmptyVariadic
257
258
  */
258
- export declare function isAllRoomsClear(onlyCheckRoomTypes?: RoomType[] | readonly RoomType[], includeSecretAndSuperSecretRoom?: boolean, includeUltraSecretRoom?: boolean): boolean;
259
+ export declare function isAllRoomsClear(onlyCheckRoomTypes?: RoomType[] | readonly RoomType[], includeSecretRoom?: boolean, includeSuperSecretRoom?: boolean, includeUltraSecretRoom?: boolean): boolean;
259
260
  /**
260
261
  * Helper function to check to see if the current room is an angel shop.
261
262
  *
@@ -1 +1 @@
1
- {"version":3,"file":"rooms.d.ts","sourceRoot":"","sources":["../../../src/functions/rooms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,UAAU,EACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,SAAS,EAUT,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AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAOzD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,UAAU,EACpB,UAAU,EAAE,UAAU,GACrB,OAAO,CAMT;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAO1D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAkCzC;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,UAAU,EACpB,GAAG,UAAU,EAAE,SAAS,EAAE,GACzB,OAAO,CAET;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE,UAAU,EACpB,GAAG,SAAS,EAAE,QAAQ,EAAE,GACvB,OAAO,CAET;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAEpE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAE5D;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAEpE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAWrC;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,CAG5D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,IAAI,CA8BrC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAKvC"}
@@ -566,19 +566,23 @@ function ____exports.inStartingRoom(self)
566
566
  end
567
567
  --- Helper function to loop through every room on the floor and see if it has been cleared.
568
568
  --
569
- -- This function will only check rooms inside the gird and inside the current dimension.
569
+ -- This function will only check rooms inside the grid and inside the current dimension.
570
570
  --
571
571
  -- @param onlyCheckRoomTypes Optional. A whitelist of room types. If specified, room types not in
572
572
  -- the array will be ignored. If not specified, then all rooms will be
573
573
  -- checked. Undefined by default.
574
- -- @param includeSecretAndSuperSecretRoom Optional. Whether to include the Secret Room and the Super
575
- -- Secret Room. Default is false.
574
+ -- @param includeSecretRoom Optional. Whether to include the Secret Room. Default is false.
575
+ -- @param includeSuperSecretRoom Optional. Whether to include the Super Secret Room. Default is
576
+ -- false.
576
577
  -- @param includeUltraSecretRoom Optional. Whether to include the Ultra Secret Room. Default is
577
578
  -- false.
578
579
  -- @allowEmptyVariadic
579
- function ____exports.isAllRoomsClear(self, onlyCheckRoomTypes, includeSecretAndSuperSecretRoom, includeUltraSecretRoom)
580
- if includeSecretAndSuperSecretRoom == nil then
581
- includeSecretAndSuperSecretRoom = false
580
+ function ____exports.isAllRoomsClear(self, onlyCheckRoomTypes, includeSecretRoom, includeSuperSecretRoom, includeUltraSecretRoom)
581
+ if includeSecretRoom == nil then
582
+ includeSecretRoom = false
583
+ end
584
+ if includeSuperSecretRoom == nil then
585
+ includeSuperSecretRoom = false
582
586
  end
583
587
  if includeUltraSecretRoom == nil then
584
588
  includeUltraSecretRoom = false
@@ -594,10 +598,16 @@ function ____exports.isAllRoomsClear(self, onlyCheckRoomTypes, includeSecretAndS
594
598
  function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomTypeWhitelist:has(roomDescriptor.Data.Type) end
595
599
  )
596
600
  end
597
- if not includeSecretAndSuperSecretRoom then
601
+ if not includeSecretRoom then
602
+ matchingRooms = __TS__ArrayFilter(
603
+ matchingRooms,
604
+ function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomDescriptor.Data.Type ~= RoomType.SECRET end
605
+ )
606
+ end
607
+ if not includeSuperSecretRoom then
598
608
  matchingRooms = __TS__ArrayFilter(
599
609
  matchingRooms,
600
- function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomDescriptor.Data.Type ~= RoomType.SECRET and roomDescriptor.Data.Type ~= RoomType.SUPER_SECRET end
610
+ function(____, roomDescriptor) return roomDescriptor.Data ~= nil and roomDescriptor.Data.Type ~= RoomType.SUPER_SECRET end
601
611
  )
602
612
  end
603
613
  if not includeUltraSecretRoom then
@@ -679,12 +689,12 @@ function ____exports.setRoomCleared(self)
679
689
  for ____, door in ipairs(getDoors(nil)) do
680
690
  do
681
691
  if isHiddenSecretRoomDoor(nil, door) then
682
- goto __continue91
692
+ goto __continue93
683
693
  end
684
694
  openDoorFast(nil, door)
685
695
  door.ExtraVisible = false
686
696
  end
687
- ::__continue91::
697
+ ::__continue93::
688
698
  end
689
699
  sfxManager:Stop(SoundEffect.DOOR_HEAVY_OPEN)
690
700
  game:ShakeScreen(0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "71.0.1",
3
+ "version": "71.1.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -534,20 +534,22 @@ export function is2x1Room(roomData: RoomConfig): boolean {
534
534
  /**
535
535
  * Helper function to loop through every room on the floor and see if it has been cleared.
536
536
  *
537
- * This function will only check rooms inside the gird and inside the current dimension.
537
+ * This function will only check rooms inside the grid and inside the current dimension.
538
538
  *
539
539
  * @param onlyCheckRoomTypes Optional. A whitelist of room types. If specified, room types not in
540
540
  * the array will be ignored. If not specified, then all rooms will be
541
541
  * checked. Undefined by default.
542
- * @param includeSecretAndSuperSecretRoom Optional. Whether to include the Secret Room and the Super
543
- * Secret Room. Default is false.
542
+ * @param includeSecretRoom Optional. Whether to include the Secret Room. Default is false.
543
+ * @param includeSuperSecretRoom Optional. Whether to include the Super Secret Room. Default is
544
+ * false.
544
545
  * @param includeUltraSecretRoom Optional. Whether to include the Ultra Secret Room. Default is
545
546
  * false.
546
547
  * @allowEmptyVariadic
547
548
  */
548
549
  export function isAllRoomsClear(
549
550
  onlyCheckRoomTypes?: RoomType[] | readonly RoomType[],
550
- includeSecretAndSuperSecretRoom = false,
551
+ includeSecretRoom = false,
552
+ includeSuperSecretRoom = false,
551
553
  includeUltraSecretRoom = false,
552
554
  ): boolean {
553
555
  const roomsInsideGrid = getRoomsInsideGrid();
@@ -564,11 +566,18 @@ export function isAllRoomsClear(
564
566
  );
565
567
  }
566
568
 
567
- if (!includeSecretAndSuperSecretRoom) {
569
+ if (!includeSecretRoom) {
570
+ matchingRooms = matchingRooms.filter(
571
+ (roomDescriptor) =>
572
+ roomDescriptor.Data !== undefined &&
573
+ roomDescriptor.Data.Type !== RoomType.SECRET,
574
+ );
575
+ }
576
+
577
+ if (!includeSuperSecretRoom) {
568
578
  matchingRooms = matchingRooms.filter(
569
579
  (roomDescriptor) =>
570
580
  roomDescriptor.Data !== undefined &&
571
- roomDescriptor.Data.Type !== RoomType.SECRET &&
572
581
  roomDescriptor.Data.Type !== RoomType.SUPER_SECRET,
573
582
  );
574
583
  }