isaacscript-common 1.2.88 → 1.2.89
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.
|
@@ -147,8 +147,8 @@ export declare function inBeastRoom(): boolean;
|
|
|
147
147
|
export declare function inBossRoomOf(bossID: BossID): boolean;
|
|
148
148
|
/**
|
|
149
149
|
* Helper function for determining whether the current room is a crawlspace. Use this function over
|
|
150
|
-
* comparing to `GridRooms.ROOM_DUNGEON_IDX`
|
|
151
|
-
* being in
|
|
150
|
+
* comparing to `RoomType.ROOM_DUNGEON` or `GridRooms.ROOM_DUNGEON_IDX` since there is a special
|
|
151
|
+
* case of the player being in a boss fight that take place in a dungeon.
|
|
152
152
|
*/
|
|
153
153
|
export declare function inCrawlspace(): boolean;
|
|
154
154
|
/**
|
package/dist/functions/rooms.lua
CHANGED
|
@@ -92,7 +92,7 @@ end
|
|
|
92
92
|
function ____exports.inDeathCertificateArea(self)
|
|
93
93
|
local roomStageID = ____exports.getRoomStageID(nil)
|
|
94
94
|
local roomSubType = ____exports.getRoomSubType(nil)
|
|
95
|
-
return roomStageID == 35 and (roomSubType == 33 or roomSubType ==
|
|
95
|
+
return roomStageID == 35 and (roomSubType == 33 or roomSubType == 34)
|
|
96
96
|
end
|
|
97
97
|
function ____exports.changeRoom(self, roomGridIndex)
|
|
98
98
|
local game = Game()
|
|
@@ -195,9 +195,11 @@ function ____exports.inAngelShop(self)
|
|
|
195
195
|
return roomType == RoomType.ROOM_ANGEL and roomSubType == 1
|
|
196
196
|
end
|
|
197
197
|
function ____exports.inBeastRoom(self)
|
|
198
|
-
local
|
|
198
|
+
local game = Game()
|
|
199
|
+
local room = game:GetRoom()
|
|
200
|
+
local roomType = room:GetType()
|
|
199
201
|
local roomSubType = ____exports.getRoomSubType(nil)
|
|
200
|
-
return
|
|
202
|
+
return roomType == RoomType.ROOM_DUNGEON and roomSubType == 4
|
|
201
203
|
end
|
|
202
204
|
function ____exports.inBossRoomOf(self, bossID)
|
|
203
205
|
local game = Game()
|
|
@@ -208,9 +210,11 @@ function ____exports.inBossRoomOf(self, bossID)
|
|
|
208
210
|
return roomType == RoomType.ROOM_BOSS and roomStageID == 0 and roomSubType == bossID
|
|
209
211
|
end
|
|
210
212
|
function ____exports.inCrawlspace(self)
|
|
211
|
-
local
|
|
213
|
+
local game = Game()
|
|
214
|
+
local room = game:GetRoom()
|
|
215
|
+
local roomType = room:GetType()
|
|
212
216
|
local roomSubType = ____exports.getRoomSubType(nil)
|
|
213
|
-
return
|
|
217
|
+
return roomType == RoomType.ROOM_DUNGEON and roomSubType ~= 4
|
|
214
218
|
end
|
|
215
219
|
function ____exports.inDevilsCrownTreasureRoom(self)
|
|
216
220
|
local roomDescriptor = ____exports.getCurrentRoomDescriptorReadOnly(nil)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.89",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@zamiell/typescript-to-lua": "^1.4.0",
|
|
29
|
-
"isaac-typescript-definitions": "^1.0.
|
|
29
|
+
"isaac-typescript-definitions": "^1.0.355",
|
|
30
30
|
"isaacscript-lint": "^1.0.81",
|
|
31
31
|
"isaacscript-tsconfig": "^1.1.8",
|
|
32
32
|
"typedoc": "^0.22.12",
|