isaacscript-common 1.2.102 → 1.2.103

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.
@@ -167,6 +167,7 @@ export declare function inDimension(dimension: Dimension): boolean;
167
167
  /** Helper function to determine if the current room shape is one of the four L room shapes. */
168
168
  export declare function inLRoom(): boolean;
169
169
  export declare function inGenesisRoom(): boolean;
170
+ export declare function inMegaSatanRoom(): boolean;
170
171
  /**
171
172
  * Helper function to check if the current room is a miniboss room for a particular miniboss. This
172
173
  * will only work for minibosses that have dedicated boss rooms in the "00.special rooms.stb" file.
@@ -243,6 +243,10 @@ function ____exports.inGenesisRoom(self)
243
243
  local roomSubType = ____exports.getRoomSubType(nil)
244
244
  return roomType == RoomType.ROOM_ISAACS and roomVariant == GENESIS_ROOM_VARIANT and roomSubType == GENESIS_ROOM_SUBTYPE
245
245
  end
246
+ function ____exports.inMegaSatanRoom(self)
247
+ local roomGridIndex = ____exports.getRoomGridIndex(nil)
248
+ return roomGridIndex == GridRooms.ROOM_MEGA_SATAN_IDX
249
+ end
246
250
  function ____exports.inMinibossRoomOf(self, minibossID)
247
251
  local game = Game()
248
252
  local room = game:GetRoom()
@@ -311,12 +315,12 @@ function ____exports.setRoomCleared(self)
311
315
  for ____, door in ipairs(getDoors(nil)) do
312
316
  do
313
317
  if isHiddenSecretRoomDoor(nil, door) then
314
- goto __continue58
318
+ goto __continue59
315
319
  end
316
320
  openDoorFast(nil, door)
317
321
  door.ExtraVisible = false
318
322
  end
319
- ::__continue58::
323
+ ::__continue59::
320
324
  end
321
325
  sfx:Stop(SoundEffect.SOUND_DOOR_HEAVY_OPEN)
322
326
  game:ShakeScreen(0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.102",
3
+ "version": "1.2.103",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",