isaacscript-common 16.1.2 → 16.1.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 16.1.
|
|
3
|
+
isaacscript-common 16.1.3
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -20055,6 +20055,7 @@ local DoorSlot = ____isaac_2Dtypescript_2Ddefinitions.DoorSlot
|
|
|
20055
20055
|
local DoorSlotFlag = ____isaac_2Dtypescript_2Ddefinitions.DoorSlotFlag
|
|
20056
20056
|
local DoorState = ____isaac_2Dtypescript_2Ddefinitions.DoorState
|
|
20057
20057
|
local DoorVariant = ____isaac_2Dtypescript_2Ddefinitions.DoorVariant
|
|
20058
|
+
local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
|
|
20058
20059
|
local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
|
|
20059
20060
|
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
20060
20061
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
@@ -20107,6 +20108,10 @@ function ____exports.getDoors(self, ...)
|
|
|
20107
20108
|
if door == nil then
|
|
20108
20109
|
goto __continue25
|
|
20109
20110
|
end
|
|
20111
|
+
local gridEntityType = door:GetType()
|
|
20112
|
+
if gridEntityType ~= GridEntityType.DOOR then
|
|
20113
|
+
goto __continue25
|
|
20114
|
+
end
|
|
20110
20115
|
if roomTypesSet.size == 0 or roomTypesSet:has(door.TargetRoomType) then
|
|
20111
20116
|
doors[#doors + 1] = door
|
|
20112
20117
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doors.d.ts","sourceRoot":"","sources":["../../../src/functions/doors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,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itions.DoorSlotFlag
|
|
13
13
|
local DoorState = ____isaac_2Dtypescript_2Ddefinitions.DoorState
|
|
14
14
|
local DoorVariant = ____isaac_2Dtypescript_2Ddefinitions.DoorVariant
|
|
15
|
+
local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
|
|
15
16
|
local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
|
|
16
17
|
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
17
18
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
@@ -72,6 +73,10 @@ function ____exports.getDoors(self, ...)
|
|
|
72
73
|
if door == nil then
|
|
73
74
|
goto __continue25
|
|
74
75
|
end
|
|
76
|
+
local gridEntityType = door:GetType()
|
|
77
|
+
if gridEntityType ~= GridEntityType.DOOR then
|
|
78
|
+
goto __continue25
|
|
79
|
+
end
|
|
75
80
|
if roomTypesSet.size == 0 or roomTypesSet:has(door.TargetRoomType) then
|
|
76
81
|
doors[#doors + 1] = door
|
|
77
82
|
end
|
package/package.json
CHANGED
package/src/functions/doors.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
DoorSlotFlag,
|
|
5
5
|
DoorState,
|
|
6
6
|
DoorVariant,
|
|
7
|
+
GridEntityType,
|
|
7
8
|
GridRoom,
|
|
8
9
|
RoomShape,
|
|
9
10
|
RoomType,
|
|
@@ -194,6 +195,12 @@ export function getDoors(...roomTypes: RoomType[]): GridEntityDoor[] {
|
|
|
194
195
|
continue;
|
|
195
196
|
}
|
|
196
197
|
|
|
198
|
+
// In Repentance, sometimes doors won't be doors for some reason.
|
|
199
|
+
const gridEntityType = door.GetType();
|
|
200
|
+
if (gridEntityType !== GridEntityType.DOOR) {
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
|
|
197
204
|
if (roomTypesSet.size === 0 || roomTypesSet.has(door.TargetRoomType)) {
|
|
198
205
|
doors.push(door);
|
|
199
206
|
}
|