isaacscript-common 1.2.279 → 1.2.280
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.
|
@@ -32,7 +32,8 @@ export declare function getRoomGridIndexesForType(...roomTypes: RoomType[]): int
|
|
|
32
32
|
export declare function getRoomItemPoolType(): ItemPoolType;
|
|
33
33
|
/**
|
|
34
34
|
* Helper function to get the room descriptor for every room on the level. Uses the `Level.GetRooms`
|
|
35
|
-
* method to accomplish this.
|
|
35
|
+
* method to accomplish this. Rooms without data are assumed to be non-existent and are not added to
|
|
36
|
+
* the list.
|
|
36
37
|
*
|
|
37
38
|
* @param includeExtraDimensionalRooms Optional. On some floors (e.g. Downpour 2, Mines 2),
|
|
38
39
|
* extra-dimensional rooms are automatically be generated and can be seen when you iterate over the
|
|
@@ -41,7 +42,8 @@ export declare function getRoomItemPoolType(): ItemPoolType;
|
|
|
41
42
|
export declare function getRooms(includeExtraDimensionalRooms?: boolean): RoomDescriptor[];
|
|
42
43
|
/**
|
|
43
44
|
* Helper function to get the room descriptor for every room on the level in a specific dimension.
|
|
44
|
-
* Uses the `Level.GetRooms` method to accomplish this.
|
|
45
|
+
* Uses the `Level.GetRooms` method to accomplish this. Rooms without data are assumed to be
|
|
46
|
+
* non-existent and are not added to the list.
|
|
45
47
|
*/
|
|
46
48
|
export declare function getRoomsOfDimension(dimension: Dimension): RoomDescriptor[];
|
|
47
49
|
/**
|
package/dist/functions/rooms.lua
CHANGED
|
@@ -53,7 +53,7 @@ function ____exports.getRooms(self, includeExtraDimensionalRooms)
|
|
|
53
53
|
local i = 0
|
|
54
54
|
while i < roomList.Size do
|
|
55
55
|
local roomDescriptor = roomList:Get(i)
|
|
56
|
-
if roomDescriptor ~= nil then
|
|
56
|
+
if roomDescriptor ~= nil and roomDescriptor.Data ~= nil then
|
|
57
57
|
rooms[#rooms + 1] = roomDescriptor
|
|
58
58
|
end
|
|
59
59
|
i = i + 1
|
|
@@ -64,7 +64,7 @@ function ____exports.getRooms(self, includeExtraDimensionalRooms)
|
|
|
64
64
|
local i = 0
|
|
65
65
|
while i <= MAX_ROOM_INDEX do
|
|
66
66
|
local roomDescriptor = level:GetRoomByIdx(i)
|
|
67
|
-
if roomDescriptor ~= nil then
|
|
67
|
+
if roomDescriptor.Data ~= nil then
|
|
68
68
|
rooms[#rooms + 1] = roomDescriptor
|
|
69
69
|
end
|
|
70
70
|
i = i + 1
|
|
@@ -141,7 +141,7 @@ function ____exports.getRoomsOfDimension(self, dimension)
|
|
|
141
141
|
local i = 0
|
|
142
142
|
while i <= MAX_ROOM_INDEX do
|
|
143
143
|
local roomDescriptor = level:GetRoomByIdx(i, dimension)
|
|
144
|
-
if roomDescriptor ~= nil then
|
|
144
|
+
if roomDescriptor.Data ~= nil then
|
|
145
145
|
rooms[#rooms + 1] = roomDescriptor
|
|
146
146
|
end
|
|
147
147
|
i = i + 1
|