isaacscript-common 9.5.1 → 9.6.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/features/extraConsoleCommands/init.lua +1 -0
- package/dist/features/extraConsoleCommands/listCommands.d.ts +3 -1
- package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/listCommands.lua +11 -1
- package/package.json +1 -1
- package/src/features/extraConsoleCommands/init.ts +1 -0
- package/src/features/extraConsoleCommands/listCommands.ts +10 -1
|
@@ -60,6 +60,7 @@ function initMap(self)
|
|
|
60
60
|
extraConsoleCommandsFunctionMap:set("crawlSpace", commands.crawlSpace)
|
|
61
61
|
extraConsoleCommandsFunctionMap:set("d20", commands.d20)
|
|
62
62
|
extraConsoleCommandsFunctionMap:set("d6", commands.d6)
|
|
63
|
+
extraConsoleCommandsFunctionMap:set("dadsNote", commands.dadsNote)
|
|
63
64
|
extraConsoleCommandsFunctionMap:set("damage", commands.damage)
|
|
64
65
|
extraConsoleCommandsFunctionMap:set("dd", commands.dd)
|
|
65
66
|
extraConsoleCommandsFunctionMap:set("devilRoom", commands.devilRoom)
|
|
@@ -44,7 +44,7 @@ export declare function bombs(params: string): void;
|
|
|
44
44
|
* numbers to remove hearts.)
|
|
45
45
|
*/
|
|
46
46
|
export declare function boneHearts(params: string): void;
|
|
47
|
-
/** Alias for the "
|
|
47
|
+
/** Alias for the "bossRoom" command. */
|
|
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;
|
|
@@ -105,6 +105,8 @@ export declare function crawlSpace(): void;
|
|
|
105
105
|
export declare function d20(): void;
|
|
106
106
|
/** Uses the D6. */
|
|
107
107
|
export declare function d6(): void;
|
|
108
|
+
/** Warps to the Mausoleum 2 Boss Room that has Dad's Note in it. */
|
|
109
|
+
export declare function dadsNote(): void;
|
|
108
110
|
/** Toggles extremely high-damage tears for the player. */
|
|
109
111
|
export declare function damage(): void;
|
|
110
112
|
/** Alias for the "devil" command. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AA+GA;;;;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,2CAA2C;AAC3C,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;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,iDAAiD;AACjD,wBAAgB,QAAQ,IAAI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,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
|
|
@@ -15,8 +15,10 @@ local DisplayFlag = ____isaac_2Dtypescript_2Ddefinitions.DisplayFlag
|
|
|
15
15
|
local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
|
|
16
16
|
local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
|
|
17
17
|
local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
|
|
18
|
+
local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
|
|
18
19
|
local PillColor = ____isaac_2Dtypescript_2Ddefinitions.PillColor
|
|
19
20
|
local RoomType = ____isaac_2Dtypescript_2Ddefinitions.RoomType
|
|
21
|
+
local StageType = ____isaac_2Dtypescript_2Ddefinitions.StageType
|
|
20
22
|
local ____cachedClasses = require("core.cachedClasses")
|
|
21
23
|
local game = ____cachedClasses.game
|
|
22
24
|
local sfxManager = ____cachedClasses.sfxManager
|
|
@@ -83,6 +85,8 @@ local ____run = require("functions.run")
|
|
|
83
85
|
local onSetSeed = ____run.onSetSeed
|
|
84
86
|
local restart = ____run.restart
|
|
85
87
|
local setUnseeded = ____run.setUnseeded
|
|
88
|
+
local ____stage = require("functions.stage")
|
|
89
|
+
local setStage = ____stage.setStage
|
|
86
90
|
local ____trinkets = require("functions.trinkets")
|
|
87
91
|
local getGoldenTrinketType = ____trinkets.getGoldenTrinketType
|
|
88
92
|
local ____types = require("functions.types")
|
|
@@ -329,7 +333,7 @@ end
|
|
|
329
333
|
function ____exports.boneHearts(self, params)
|
|
330
334
|
addHeart(nil, params, HealthType.BONE)
|
|
331
335
|
end
|
|
332
|
-
--- Alias for the "
|
|
336
|
+
--- Alias for the "bossRoom" command.
|
|
333
337
|
function ____exports.boss(self)
|
|
334
338
|
____exports.bossRoom(nil)
|
|
335
339
|
end
|
|
@@ -510,6 +514,12 @@ function ____exports.d6(self)
|
|
|
510
514
|
local player = Isaac.GetPlayer()
|
|
511
515
|
useActiveItemTemp(nil, player, CollectibleType.D6)
|
|
512
516
|
end
|
|
517
|
+
--- Warps to the Mausoleum 2 Boss Room that has Dad's Note in it.
|
|
518
|
+
function ____exports.dadsNote(self)
|
|
519
|
+
game:SetStateFlag(GameStateFlag.BACKWARDS_PATH_INIT, true)
|
|
520
|
+
setStage(nil, LevelStage.DEPTHS_2, StageType.REPENTANCE)
|
|
521
|
+
____exports.bossRoom(nil)
|
|
522
|
+
end
|
|
513
523
|
--- Toggles extremely high-damage tears for the player.
|
|
514
524
|
function ____exports.damage(self)
|
|
515
525
|
v.run.maxDamage = not v.run.maxDamage
|
package/package.json
CHANGED
|
@@ -68,6 +68,7 @@ function initMap() {
|
|
|
68
68
|
extraConsoleCommandsFunctionMap.set("crawlSpace", commands.crawlSpace);
|
|
69
69
|
extraConsoleCommandsFunctionMap.set("d20", commands.d20);
|
|
70
70
|
extraConsoleCommandsFunctionMap.set("d6", commands.d6);
|
|
71
|
+
extraConsoleCommandsFunctionMap.set("dadsNote", commands.dadsNote);
|
|
71
72
|
extraConsoleCommandsFunctionMap.set("damage", commands.damage);
|
|
72
73
|
extraConsoleCommandsFunctionMap.set("dd", commands.dd);
|
|
73
74
|
extraConsoleCommandsFunctionMap.set("devilRoom", commands.devilRoom);
|
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
PlayerType,
|
|
39
39
|
RoomType,
|
|
40
40
|
SoundEffect,
|
|
41
|
+
StageType,
|
|
41
42
|
TrinketType,
|
|
42
43
|
} from "isaac-typescript-definitions";
|
|
43
44
|
import { game, sfxManager } from "../../core/cachedClasses";
|
|
@@ -87,6 +88,7 @@ import {
|
|
|
87
88
|
import { gridCoordinatesToWorldPosition } from "../../functions/roomGrid";
|
|
88
89
|
import { changeRoom } from "../../functions/rooms";
|
|
89
90
|
import { onSetSeed, restart, setUnseeded } from "../../functions/run";
|
|
91
|
+
import { setStage } from "../../functions/stage";
|
|
90
92
|
import { getGoldenTrinketType } from "../../functions/trinkets";
|
|
91
93
|
import { asCardType } from "../../functions/types";
|
|
92
94
|
import { irange, printConsole, printEnabled } from "../../functions/utils";
|
|
@@ -285,7 +287,7 @@ export function boneHearts(params: string): void {
|
|
|
285
287
|
addHeart(params, HealthType.BONE);
|
|
286
288
|
}
|
|
287
289
|
|
|
288
|
-
/** Alias for the "
|
|
290
|
+
/** Alias for the "bossRoom" command. */
|
|
289
291
|
export function boss(): void {
|
|
290
292
|
bossRoom();
|
|
291
293
|
}
|
|
@@ -499,6 +501,13 @@ export function d6(): void {
|
|
|
499
501
|
useActiveItemTemp(player, CollectibleType.D6);
|
|
500
502
|
}
|
|
501
503
|
|
|
504
|
+
/** Warps to the Mausoleum 2 Boss Room that has Dad's Note in it. */
|
|
505
|
+
export function dadsNote(): void {
|
|
506
|
+
game.SetStateFlag(GameStateFlag.BACKWARDS_PATH_INIT, true);
|
|
507
|
+
setStage(LevelStage.DEPTHS_2, StageType.REPENTANCE);
|
|
508
|
+
bossRoom();
|
|
509
|
+
}
|
|
510
|
+
|
|
502
511
|
/** Toggles extremely high-damage tears for the player. */
|
|
503
512
|
export function damage(): void {
|
|
504
513
|
v.run.maxDamage = !v.run.maxDamage;
|