isaacscript-common 73.0.0 → 73.1.0
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 +27 -2
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +27 -2
- package/package.json +1 -1
- package/src/classes/features/other/extraConsoleCommands/commands.ts +26 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 73.
|
|
3
|
+
isaacscript-common 73.1.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -53390,10 +53390,12 @@ return ____exports
|
|
|
53390
53390
|
["src.classes.features.other.extraConsoleCommands.commands"] = function(...)
|
|
53391
53391
|
local ____lualib = require("lualib_bundle")
|
|
53392
53392
|
local __TS__StringSplit = ____lualib.__TS__StringSplit
|
|
53393
|
+
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
53393
53394
|
local __TS__ArrayIncludes = ____lualib.__TS__ArrayIncludes
|
|
53394
53395
|
local ____exports = {}
|
|
53395
53396
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
53396
53397
|
local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
|
|
53398
|
+
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
53397
53399
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
53398
53400
|
local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
|
|
53399
53401
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -53474,6 +53476,8 @@ local ____playerIndex = require("src.functions.playerIndex")
|
|
|
53474
53476
|
local getPlayers = ____playerIndex.getPlayers
|
|
53475
53477
|
local ____players = require("src.functions.players")
|
|
53476
53478
|
local getPlayerName = ____players.getPlayerName
|
|
53479
|
+
local ____roomData = require("src.functions.roomData")
|
|
53480
|
+
local getRoomData = ____roomData.getRoomData
|
|
53477
53481
|
local ____roomGrid = require("src.functions.roomGrid")
|
|
53478
53482
|
local gridCoordinatesToWorldPosition = ____roomGrid.gridCoordinatesToWorldPosition
|
|
53479
53483
|
local ____roomTransition = require("src.functions.roomTransition")
|
|
@@ -53487,6 +53491,7 @@ local setUnseeded = ____run.setUnseeded
|
|
|
53487
53491
|
local ____spawnCollectible = require("src.functions.spawnCollectible")
|
|
53488
53492
|
local spawnCollectibleUnsafe = ____spawnCollectible.spawnCollectibleUnsafe
|
|
53489
53493
|
local ____stage = require("src.functions.stage")
|
|
53494
|
+
local onStage = ____stage.onStage
|
|
53490
53495
|
local setStage = ____stage.setStage
|
|
53491
53496
|
local ____string = require("src.functions.string")
|
|
53492
53497
|
local getMapPartialMatch = ____string.getMapPartialMatch
|
|
@@ -53510,6 +53515,8 @@ local ____roomNameToTypeMap = require("src.maps.roomNameToTypeMap")
|
|
|
53510
53515
|
local ROOM_NAME_TO_TYPE_MAP = ____roomNameToTypeMap.ROOM_NAME_TO_TYPE_MAP
|
|
53511
53516
|
local ____trinketNameToTypeMap = require("src.maps.trinketNameToTypeMap")
|
|
53512
53517
|
local TRINKET_NAME_TO_TYPE_MAP = ____trinketNameToTypeMap.TRINKET_NAME_TO_TYPE_MAP
|
|
53518
|
+
local ____roomTypeNames = require("src.objects.roomTypeNames")
|
|
53519
|
+
local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
|
|
53513
53520
|
local ____subroutines = require("src.classes.features.other.extraConsoleCommands.subroutines")
|
|
53514
53521
|
local addHeart = ____subroutines.addHeart
|
|
53515
53522
|
local devilAngel = ____subroutines.devilAngel
|
|
@@ -53522,7 +53529,25 @@ local warpToRoomType = ____subroutines.warpToRoomType
|
|
|
53522
53529
|
local ____v = require("src.classes.features.other.extraConsoleCommands.v")
|
|
53523
53530
|
local v = ____v.v
|
|
53524
53531
|
function ____exports.bossRoom(self)
|
|
53525
|
-
|
|
53532
|
+
local roomType = RoomType.BOSS
|
|
53533
|
+
local roomGridIndexes = getRoomGridIndexesForType(nil, roomType)
|
|
53534
|
+
local roomGridIndex = roomGridIndexes[1]
|
|
53535
|
+
if onStage(nil, LevelStage.VOID) then
|
|
53536
|
+
roomGridIndex = __TS__ArrayFind(
|
|
53537
|
+
roomGridIndexes,
|
|
53538
|
+
function(____, thisRoomGridIndex)
|
|
53539
|
+
local ____opt_0 = getRoomData(nil, thisRoomGridIndex)
|
|
53540
|
+
return (____opt_0 and ____opt_0.Subtype) == BossID.DELIRIUM
|
|
53541
|
+
end
|
|
53542
|
+
)
|
|
53543
|
+
end
|
|
53544
|
+
local roomTypeName = ROOM_TYPE_NAMES[RoomType.BOSS]
|
|
53545
|
+
if roomGridIndex == nil then
|
|
53546
|
+
print(("There are no " .. roomTypeName) .. "s on this floor.")
|
|
53547
|
+
return
|
|
53548
|
+
end
|
|
53549
|
+
changeRoom(nil, roomGridIndex)
|
|
53550
|
+
print(((("Warped to room type: " .. roomTypeName) .. " (") .. tostring(roomType)) .. ")")
|
|
53526
53551
|
end
|
|
53527
53552
|
function ____exports.chaosCardTears(self)
|
|
53528
53553
|
v.persistent.chaosCardTears = not v.persistent.chaosCardTears
|
|
@@ -48,7 +48,7 @@ export declare function boneHearts(params: string): void;
|
|
|
48
48
|
export declare function boss(): void;
|
|
49
49
|
/** Warps to the room next to the first Boss Room on the floor. */
|
|
50
50
|
export declare function bossNextRoom(): void;
|
|
51
|
-
/** Warps to the first Boss Room on the floor. */
|
|
51
|
+
/** Warps to the first Boss Room on the floor (or the Delirium Boss Room if on The Void). */
|
|
52
52
|
export declare function bossRoom(): void;
|
|
53
53
|
/** Warps to the Boss Rush for the floor. */
|
|
54
54
|
export declare function bossRush(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAuJA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAc1C;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED,wCAAwC;AACxC,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,kEAAkE;AAClE,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,4FAA4F;AAC5F,wBAAgB,QAAQ,IAAI,IAAI,CAsB/B;AAED,4CAA4C;AAC5C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED;;;GAGG;A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,CAE5B;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,4CAA4C;AAC5C,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAE5C;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC;AAED,yCAAyC;AACzC,wBAAgB,EAAE,IAAI,IAAI,CAEzB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__StringSplit = ____lualib.__TS__StringSplit
|
|
3
|
+
local __TS__ArrayFind = ____lualib.__TS__ArrayFind
|
|
3
4
|
local __TS__ArrayIncludes = ____lualib.__TS__ArrayIncludes
|
|
4
5
|
local ____exports = {}
|
|
5
6
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
7
|
local ActiveSlot = ____isaac_2Dtypescript_2Ddefinitions.ActiveSlot
|
|
8
|
+
local BossID = ____isaac_2Dtypescript_2Ddefinitions.BossID
|
|
7
9
|
local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
|
|
8
10
|
local Challenge = ____isaac_2Dtypescript_2Ddefinitions.Challenge
|
|
9
11
|
local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
|
|
@@ -84,6 +86,8 @@ local ____playerIndex = require("src.functions.playerIndex")
|
|
|
84
86
|
local getPlayers = ____playerIndex.getPlayers
|
|
85
87
|
local ____players = require("src.functions.players")
|
|
86
88
|
local getPlayerName = ____players.getPlayerName
|
|
89
|
+
local ____roomData = require("src.functions.roomData")
|
|
90
|
+
local getRoomData = ____roomData.getRoomData
|
|
87
91
|
local ____roomGrid = require("src.functions.roomGrid")
|
|
88
92
|
local gridCoordinatesToWorldPosition = ____roomGrid.gridCoordinatesToWorldPosition
|
|
89
93
|
local ____roomTransition = require("src.functions.roomTransition")
|
|
@@ -97,6 +101,7 @@ local setUnseeded = ____run.setUnseeded
|
|
|
97
101
|
local ____spawnCollectible = require("src.functions.spawnCollectible")
|
|
98
102
|
local spawnCollectibleUnsafe = ____spawnCollectible.spawnCollectibleUnsafe
|
|
99
103
|
local ____stage = require("src.functions.stage")
|
|
104
|
+
local onStage = ____stage.onStage
|
|
100
105
|
local setStage = ____stage.setStage
|
|
101
106
|
local ____string = require("src.functions.string")
|
|
102
107
|
local getMapPartialMatch = ____string.getMapPartialMatch
|
|
@@ -120,6 +125,8 @@ local ____roomNameToTypeMap = require("src.maps.roomNameToTypeMap")
|
|
|
120
125
|
local ROOM_NAME_TO_TYPE_MAP = ____roomNameToTypeMap.ROOM_NAME_TO_TYPE_MAP
|
|
121
126
|
local ____trinketNameToTypeMap = require("src.maps.trinketNameToTypeMap")
|
|
122
127
|
local TRINKET_NAME_TO_TYPE_MAP = ____trinketNameToTypeMap.TRINKET_NAME_TO_TYPE_MAP
|
|
128
|
+
local ____roomTypeNames = require("src.objects.roomTypeNames")
|
|
129
|
+
local ROOM_TYPE_NAMES = ____roomTypeNames.ROOM_TYPE_NAMES
|
|
123
130
|
local ____subroutines = require("src.classes.features.other.extraConsoleCommands.subroutines")
|
|
124
131
|
local addHeart = ____subroutines.addHeart
|
|
125
132
|
local devilAngel = ____subroutines.devilAngel
|
|
@@ -131,9 +138,27 @@ local warpNextToRoomType = ____subroutines.warpNextToRoomType
|
|
|
131
138
|
local warpToRoomType = ____subroutines.warpToRoomType
|
|
132
139
|
local ____v = require("src.classes.features.other.extraConsoleCommands.v")
|
|
133
140
|
local v = ____v.v
|
|
134
|
-
--- Warps to the first Boss Room on the floor.
|
|
141
|
+
--- Warps to the first Boss Room on the floor (or the Delirium Boss Room if on The Void).
|
|
135
142
|
function ____exports.bossRoom(self)
|
|
136
|
-
|
|
143
|
+
local roomType = RoomType.BOSS
|
|
144
|
+
local roomGridIndexes = getRoomGridIndexesForType(nil, roomType)
|
|
145
|
+
local roomGridIndex = roomGridIndexes[1]
|
|
146
|
+
if onStage(nil, LevelStage.VOID) then
|
|
147
|
+
roomGridIndex = __TS__ArrayFind(
|
|
148
|
+
roomGridIndexes,
|
|
149
|
+
function(____, thisRoomGridIndex)
|
|
150
|
+
local ____opt_0 = getRoomData(nil, thisRoomGridIndex)
|
|
151
|
+
return (____opt_0 and ____opt_0.Subtype) == BossID.DELIRIUM
|
|
152
|
+
end
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
local roomTypeName = ROOM_TYPE_NAMES[RoomType.BOSS]
|
|
156
|
+
if roomGridIndex == nil then
|
|
157
|
+
print(("There are no " .. roomTypeName) .. "s on this floor.")
|
|
158
|
+
return
|
|
159
|
+
end
|
|
160
|
+
changeRoom(nil, roomGridIndex)
|
|
161
|
+
print(((("Warped to room type: " .. roomTypeName) .. " (") .. tostring(roomType)) .. ")")
|
|
137
162
|
end
|
|
138
163
|
--- Toggles Chaos Card tears for the player. Useful for killing enemies very fast without using
|
|
139
164
|
-- "debug 10".
|
package/package.json
CHANGED
|
@@ -45,6 +45,7 @@ import type {
|
|
|
45
45
|
} from "isaac-typescript-definitions";
|
|
46
46
|
import {
|
|
47
47
|
ActiveSlot,
|
|
48
|
+
BossID,
|
|
48
49
|
CacheFlag,
|
|
49
50
|
Challenge,
|
|
50
51
|
CollectibleType,
|
|
@@ -114,12 +115,13 @@ import {
|
|
|
114
115
|
} from "../../../../functions/playerCollectibles";
|
|
115
116
|
import { getPlayers } from "../../../../functions/playerIndex";
|
|
116
117
|
import { getPlayerName } from "../../../../functions/players";
|
|
118
|
+
import { getRoomData } from "../../../../functions/roomData";
|
|
117
119
|
import { gridCoordinatesToWorldPosition } from "../../../../functions/roomGrid";
|
|
118
120
|
import { reloadRoom as reloadRoomFunction } from "../../../../functions/roomTransition";
|
|
119
121
|
import { changeRoom } from "../../../../functions/rooms";
|
|
120
122
|
import { onSetSeed, restart, setUnseeded } from "../../../../functions/run";
|
|
121
123
|
import { spawnCollectibleUnsafe } from "../../../../functions/spawnCollectible";
|
|
122
|
-
import { setStage } from "../../../../functions/stage";
|
|
124
|
+
import { onStage, setStage } from "../../../../functions/stage";
|
|
123
125
|
import { getMapPartialMatch } from "../../../../functions/string";
|
|
124
126
|
import { getGoldenTrinketType } from "../../../../functions/trinkets";
|
|
125
127
|
import {
|
|
@@ -134,6 +136,7 @@ import { COLLECTIBLE_NAME_TO_TYPE_MAP } from "../../../../maps/collectibleNameTo
|
|
|
134
136
|
import { PILL_NAME_TO_EFFECT_MAP } from "../../../../maps/pillNameToEffectMap";
|
|
135
137
|
import { ROOM_NAME_TO_TYPE_MAP } from "../../../../maps/roomNameToTypeMap";
|
|
136
138
|
import { TRINKET_NAME_TO_TYPE_MAP } from "../../../../maps/trinketNameToTypeMap";
|
|
139
|
+
import { ROOM_TYPE_NAMES } from "../../../../objects/roomTypeNames";
|
|
137
140
|
import {
|
|
138
141
|
addHeart,
|
|
139
142
|
devilAngel,
|
|
@@ -335,9 +338,29 @@ export function bossNextRoom(): void {
|
|
|
335
338
|
warpNextToRoomType(RoomType.BOSS);
|
|
336
339
|
}
|
|
337
340
|
|
|
338
|
-
/** Warps to the first Boss Room on the floor. */
|
|
341
|
+
/** Warps to the first Boss Room on the floor (or the Delirium Boss Room if on The Void). */
|
|
339
342
|
export function bossRoom(): void {
|
|
340
|
-
warpToRoomType
|
|
343
|
+
// Most of the logic here is copied from the "warpToRoomType" function.
|
|
344
|
+
const roomType = RoomType.BOSS;
|
|
345
|
+
const roomGridIndexes = getRoomGridIndexesForType(roomType);
|
|
346
|
+
|
|
347
|
+
let roomGridIndex = roomGridIndexes[0];
|
|
348
|
+
|
|
349
|
+
if (onStage(LevelStage.VOID)) {
|
|
350
|
+
roomGridIndex = roomGridIndexes.find(
|
|
351
|
+
(thisRoomGridIndex) =>
|
|
352
|
+
getRoomData(thisRoomGridIndex)?.Subtype === BossID.DELIRIUM,
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
const roomTypeName = ROOM_TYPE_NAMES[RoomType.BOSS];
|
|
357
|
+
if (roomGridIndex === undefined) {
|
|
358
|
+
print(`There are no ${roomTypeName}s on this floor.`);
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
changeRoom(roomGridIndex);
|
|
363
|
+
print(`Warped to room type: ${roomTypeName} (${roomType})`);
|
|
341
364
|
}
|
|
342
365
|
|
|
343
366
|
/** Warps to the Boss Rush for the floor. */
|