isaacscript-common 1.2.272 → 1.2.275
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/constants.d.ts +2 -2
- package/dist/functions/rooms.lua +4 -5
- package/package.json +2 -2
package/dist/constants.d.ts
CHANGED
|
@@ -120,9 +120,9 @@ export declare const UI_HEART_WIDTH = 12;
|
|
|
120
120
|
* This is a safer version of the `Vector.One` constant. (Other mods can mutate this vector, so it
|
|
121
121
|
* is not safe to use.)
|
|
122
122
|
*/
|
|
123
|
-
export declare const VectorOne:
|
|
123
|
+
export declare const VectorOne: Readonly<Vector>;
|
|
124
124
|
/**
|
|
125
125
|
* This is a safer version of the `Vector.Zero` constant. (Other mods can mutate this vector, so it
|
|
126
126
|
* is not safe to use.)
|
|
127
127
|
*/
|
|
128
|
-
export declare const VectorZero:
|
|
128
|
+
export declare const VectorZero: Readonly<Vector>;
|
package/dist/functions/rooms.lua
CHANGED
|
@@ -3,6 +3,7 @@ local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
|
3
3
|
local Set = ____lualib.Set
|
|
4
4
|
local __TS__New = ____lualib.__TS__New
|
|
5
5
|
local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
|
|
6
|
+
local __TS__StringIncludes = ____lualib.__TS__StringIncludes
|
|
6
7
|
local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
|
|
7
8
|
local Map = ____lualib.Map
|
|
8
9
|
local ____exports = {}
|
|
@@ -12,8 +13,6 @@ local sfxManager = ____cachedClasses.sfxManager
|
|
|
12
13
|
local ____constants = require("constants")
|
|
13
14
|
local MAX_ROOM_INDEX = ____constants.MAX_ROOM_INDEX
|
|
14
15
|
local NUM_DIMENSIONS = ____constants.NUM_DIMENSIONS
|
|
15
|
-
local ____doubleTroubleRoomVariants = require("sets.doubleTroubleRoomVariants")
|
|
16
|
-
local DOUBLE_TROUBLE_ROOM_VARIANTS = ____doubleTroubleRoomVariants.DOUBLE_TROUBLE_ROOM_VARIANTS
|
|
17
16
|
local ____doors = require("functions.doors")
|
|
18
17
|
local closeAllDoors = ____doors.closeAllDoors
|
|
19
18
|
local getDoors = ____doors.getDoors
|
|
@@ -36,10 +35,10 @@ local getRoomAllowedDoors = ____roomData.getRoomAllowedDoors
|
|
|
36
35
|
local getRoomData = ____roomData.getRoomData
|
|
37
36
|
local getRoomDescriptor = ____roomData.getRoomDescriptor
|
|
38
37
|
local getRoomGridIndex = ____roomData.getRoomGridIndex
|
|
38
|
+
local getRoomName = ____roomData.getRoomName
|
|
39
39
|
local getRoomShape = ____roomData.getRoomShape
|
|
40
40
|
local getRoomStageID = ____roomData.getRoomStageID
|
|
41
41
|
local getRoomSubType = ____roomData.getRoomSubType
|
|
42
|
-
local getRoomVariant = ____roomData.getRoomVariant
|
|
43
42
|
local ____roomShape = require("functions.roomShape")
|
|
44
43
|
local getGridIndexDelta = ____roomShape.getGridIndexDelta
|
|
45
44
|
function ____exports.getRooms(self, includeExtraDimensionalRooms)
|
|
@@ -175,8 +174,8 @@ end
|
|
|
175
174
|
function ____exports.inDoubleTrouble(self)
|
|
176
175
|
local room = game:GetRoom()
|
|
177
176
|
local roomType = room:GetType()
|
|
178
|
-
local
|
|
179
|
-
return roomType == RoomType.ROOM_BOSS and
|
|
177
|
+
local roomName = getRoomName(nil)
|
|
178
|
+
return roomType == RoomType.ROOM_BOSS and __TS__StringIncludes(roomName, "Double Trouble")
|
|
180
179
|
end
|
|
181
180
|
function ____exports.inGenesisRoom(self)
|
|
182
181
|
local roomGridIndex = getRoomGridIndex(nil)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.275",
|
|
4
4
|
"description": "Helper functions for IsaacScript mods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dist/**/*.d.ts"
|
|
26
26
|
],
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"isaac-typescript-definitions": "^1.0.
|
|
28
|
+
"isaac-typescript-definitions": "^1.0.392",
|
|
29
29
|
"isaacscript-lint": "^1.0.99",
|
|
30
30
|
"isaacscript-tsconfig": "^1.1.8",
|
|
31
31
|
"typedoc": "^0.22.15",
|