isaacscript-common 12.3.0 → 12.3.1

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.
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 12.3.0
3
+ isaacscript-common 12.3.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -25,6 +25,8 @@ information about using TypeScript, see the website: https://isaacscript.github.
25
25
 
26
26
  --]]
27
27
 
28
+ ---@diagnostic disable: deprecated
29
+
28
30
 
29
31
  local ____modules = {}
30
32
  local ____moduleCache = {}
@@ -31771,6 +31773,10 @@ function restoreGlowingHourGlassBackup(self)
31771
31773
  if childTable == nil then
31772
31774
  goto __continue25
31773
31775
  end
31776
+ local childTableLuaMap = childTable
31777
+ if childTableLuaMap[SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_IGNORE_KEY] ~= nil then
31778
+ goto __continue25
31779
+ end
31774
31780
  local saveDataGlowingHourGlass = saveDataGlowingHourGlassMap[subscriberName]
31775
31781
  if saveDataGlowingHourGlass == nil then
31776
31782
  goto __continue25
@@ -33502,7 +33508,7 @@ function logStateChanged(self)
33502
33508
  end
33503
33509
  end
33504
33510
  DEBUG = false
33505
- CustomReviveState = CustomReviveState or ({})
33511
+ CustomReviveState = {}
33506
33512
  CustomReviveState.DISABLED = 0
33507
33513
  CustomReviveState[CustomReviveState.DISABLED] = "DISABLED"
33508
33514
  CustomReviveState.WAITING_FOR_ROOM_TRANSITION = 1
@@ -39894,7 +39900,7 @@ function getNumFloorLayers(self, roomShape)
39894
39900
  end
39895
39901
  until true
39896
39902
  end
39897
- BackdropKind = BackdropKind or ({})
39903
+ BackdropKind = {}
39898
39904
  BackdropKind.N_FLOOR = "nFloors"
39899
39905
  BackdropKind.L_FLOOR = "lFloors"
39900
39906
  BackdropKind.WALL = "walls"
@@ -47060,7 +47066,7 @@ return ____exports
47060
47066
  ["package"] = function(...)
47061
47067
  return {
47062
47068
  name = "isaacscript-common",
47063
- version = "12.3.0",
47069
+ version = "12.3.1",
47064
47070
  description = "Helper functions and features for IsaacScript mods.",
47065
47071
  keywords = {"isaac", "rebirth", "afterbirth", "repentance"},
47066
47072
  homepage = "https://isaacscript.github.io/",
package/dist/package.lua CHANGED
@@ -1,6 +1,6 @@
1
1
  return {
2
2
  name = "isaacscript-common",
3
- version = "12.3.0",
3
+ version = "12.3.1",
4
4
  description = "Helper functions and features for IsaacScript mods.",
5
5
  keywords = {"isaac", "rebirth", "afterbirth", "repentance"},
6
6
  homepage = "https://isaacscript.github.io/",
@@ -130,7 +130,7 @@ function logStateChanged(self)
130
130
  end
131
131
  end
132
132
  DEBUG = false
133
- CustomReviveState = CustomReviveState or ({})
133
+ CustomReviveState = {}
134
134
  CustomReviveState.DISABLED = 0
135
135
  CustomReviveState[CustomReviveState.DISABLED] = "DISABLED"
136
136
  CustomReviveState.WAITING_FOR_ROOM_TRANSITION = 1
@@ -149,7 +149,7 @@ function getNumFloorLayers(self, roomShape)
149
149
  end
150
150
  until true
151
151
  end
152
- BackdropKind = BackdropKind or ({})
152
+ BackdropKind = {}
153
153
  BackdropKind.N_FLOOR = "nFloors"
154
154
  BackdropKind.L_FLOOR = "lFloors"
155
155
  BackdropKind.WALL = "walls"
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/features/saveDataManager/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAMtD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AA2BrD,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAelE;AA6KD,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,GACvB,IAAI,CA4CN;AAiBD,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/features/saveDataManager/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAMtD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AA2BrD,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAelE;AAqLD,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,GACvB,IAAI,CA4CN;AAiBD,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C"}
@@ -124,6 +124,10 @@ function restoreGlowingHourGlassBackup(self)
124
124
  if childTable == nil then
125
125
  goto __continue25
126
126
  end
127
+ local childTableLuaMap = childTable
128
+ if childTableLuaMap[SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_IGNORE_KEY] ~= nil then
129
+ goto __continue25
130
+ end
127
131
  local saveDataGlowingHourGlass = saveDataGlowingHourGlassMap[subscriberName]
128
132
  if saveDataGlowingHourGlass == nil then
129
133
  goto __continue25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "12.3.0",
3
+ "version": "12.3.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -182,6 +182,14 @@ function restoreGlowingHourGlassBackup() {
182
182
  continue;
183
183
  }
184
184
 
185
+ // Ignore child tables that the end-user has explicitly annotated.
186
+ const childTableLuaMap = childTable as LuaMap<AnyNotNil, unknown>;
187
+ if (
188
+ childTableLuaMap.has(SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_IGNORE_KEY)
189
+ ) {
190
+ continue;
191
+ }
192
+
185
193
  const saveDataGlowingHourGlass =
186
194
  saveDataGlowingHourGlassMap.get(subscriberName);
187
195
  if (saveDataGlowingHourGlass === undefined) {
@@ -492,10 +492,10 @@ export function inStartingRoom(): boolean {
492
492
  */
493
493
  export function isAllRoomsClear(onlyCheckRoomTypes?: RoomType[]): boolean {
494
494
  const roomTypeWhitelist =
495
- onlyCheckRoomTypes === undefined ? null : new Set(onlyCheckRoomTypes);
495
+ onlyCheckRoomTypes === undefined ? undefined : new Set(onlyCheckRoomTypes);
496
496
  const rooms = getRoomsInsideGrid();
497
497
  const matchingRooms =
498
- roomTypeWhitelist === null
498
+ roomTypeWhitelist === undefined
499
499
  ? rooms
500
500
  : rooms.filter(
501
501
  (roomDescriptor) =>