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.
- package/dist/isaacscript-common.lua +10 -4
- package/dist/package.lua +1 -1
- package/dist/src/callbacks/customRevive.lua +1 -1
- package/dist/src/features/customStage/backdrop.lua +1 -1
- package/dist/src/features/saveDataManager/main.d.ts.map +1 -1
- package/dist/src/features/saveDataManager/main.lua +4 -0
- package/package.json +1 -1
- package/src/features/saveDataManager/main.ts +8 -0
- package/src/functions/rooms.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 12.3.
|
|
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 =
|
|
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 =
|
|
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.
|
|
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
|
@@ -130,7 +130,7 @@ function logStateChanged(self)
|
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
DEBUG = false
|
|
133
|
-
CustomReviveState =
|
|
133
|
+
CustomReviveState = {}
|
|
134
134
|
CustomReviveState.DISABLED = 0
|
|
135
135
|
CustomReviveState[CustomReviveState.DISABLED] = "DISABLED"
|
|
136
136
|
CustomReviveState.WAITING_FOR_ROOM_TRANSITION = 1
|
|
@@ -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;
|
|
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
|
@@ -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) {
|
package/src/functions/rooms.ts
CHANGED
|
@@ -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 ?
|
|
495
|
+
onlyCheckRoomTypes === undefined ? undefined : new Set(onlyCheckRoomTypes);
|
|
496
496
|
const rooms = getRoomsInsideGrid();
|
|
497
497
|
const matchingRooms =
|
|
498
|
-
roomTypeWhitelist ===
|
|
498
|
+
roomTypeWhitelist === undefined
|
|
499
499
|
? rooms
|
|
500
500
|
: rooms.filter(
|
|
501
501
|
(roomDescriptor) =>
|