isaacscript-common 9.8.3 → 9.8.4
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.
|
@@ -84,7 +84,7 @@ export declare function chaosCardTears(): void;
|
|
|
84
84
|
* - character 2 - Restarts as Cain.
|
|
85
85
|
* - character ta - Restarts as Tainted Azazel.
|
|
86
86
|
*/
|
|
87
|
-
export declare function
|
|
87
|
+
export declare function character(params: string): void;
|
|
88
88
|
/** Alias for the "addCharges" command. */
|
|
89
89
|
export declare function charge(params: string): void;
|
|
90
90
|
/** Warps to the first Clean Bedroom on the floor. */
|
|
@@ -278,13 +278,13 @@ export declare function pocket(params: string): void;
|
|
|
278
278
|
*/
|
|
279
279
|
export declare function poopMana(params: string): void;
|
|
280
280
|
/** Alias for the "getPosition" command. */
|
|
281
|
-
export declare function
|
|
281
|
+
export declare function position(): void;
|
|
282
282
|
/** Alias for the "hearts" command. */
|
|
283
283
|
export declare function redHearts(params: string): void;
|
|
284
284
|
/** Moves the player 0.5 units right. Provide a number to move a custom amount of units. */
|
|
285
285
|
export declare function right(params: string): void;
|
|
286
286
|
/** Logs information about the room to the "log.txt" file. */
|
|
287
|
-
export declare function
|
|
287
|
+
export declare function room(): void;
|
|
288
288
|
/**
|
|
289
289
|
* Gives a rotten heart. Provide a number to give a custom amount of hearts. (You can use negative
|
|
290
290
|
* numbers to remove hearts.)
|
|
@@ -313,7 +313,7 @@ export declare function secretRoom(): void;
|
|
|
313
313
|
/** Changes to a seeded run, using the seed of the current run. */
|
|
314
314
|
export declare function seedStick(): void;
|
|
315
315
|
/** Logs all of the current run's seed effects to the "log.txt" file. */
|
|
316
|
-
export declare function
|
|
316
|
+
export declare function seeds(): void;
|
|
317
317
|
/**
|
|
318
318
|
* Sets a charge to the player's specified active item. You must provide the active slot number and
|
|
319
319
|
* the number of charges to set.
|
|
@@ -372,7 +372,7 @@ export declare function tears(): void;
|
|
|
372
372
|
/** Alias for the "runTests" command. */
|
|
373
373
|
export declare function tests(): void;
|
|
374
374
|
/** Creates a trapdoor next to the player. */
|
|
375
|
-
export declare function
|
|
375
|
+
export declare function trapdoor(): void;
|
|
376
376
|
/** Warps to the first Treasure Room on the floor. */
|
|
377
377
|
export declare function treasureRoom(): void;
|
|
378
378
|
/** Warps to the first Ultra Secret Room on the floor. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AAyHA;;;;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,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,iDAAiD;AACjD,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,4CAA4C;AAC5C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEjD;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA6BzC;AAED,2EAA2E;AAC3E,wBAAgB,KAAK,IAAI,IAAI,CAe5B;AAED,8CAA8C;AAC9C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAGrC;AAED;;;;;;;GAOG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AAyHA;;;;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,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,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IAAI,IAAI,IAAI,CAG3B;AAED,6DAA6D;AAC7D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkBvD;AAED,gEAAgE;AAChE,wBAAgB,KAAK,IAAI,IAAI,CAY5B;AAED,4CAA4C;AAC5C,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,IAAI,IAAI,CAInC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED;;;GAGG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAQ5B;AAED,wCAAwC;AACxC,wBAAgB,KAAK,IAAI,IAAI,CAE5B;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;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"}
|
|
@@ -405,11 +405,11 @@ function ____exports.cards(self)
|
|
|
405
405
|
if asCardType(nil, cardType) == lastCardType then
|
|
406
406
|
return
|
|
407
407
|
end
|
|
408
|
-
local
|
|
408
|
+
local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
|
|
409
409
|
spawnCard(
|
|
410
410
|
nil,
|
|
411
411
|
asCardType(nil, cardType),
|
|
412
|
-
|
|
412
|
+
worldPosition
|
|
413
413
|
)
|
|
414
414
|
cardType = cardType + 1
|
|
415
415
|
x = x + 1
|
|
@@ -429,12 +429,12 @@ end
|
|
|
429
429
|
-- For example:
|
|
430
430
|
-- - character 2 - Restarts as Cain.
|
|
431
431
|
-- - character ta - Restarts as Tainted Azazel.
|
|
432
|
-
function ____exports.
|
|
432
|
+
function ____exports.character(self, params)
|
|
433
433
|
if params == "" then
|
|
434
434
|
printConsole(nil, "You must specify a character name or number.")
|
|
435
435
|
return
|
|
436
436
|
end
|
|
437
|
-
local
|
|
437
|
+
local playerType
|
|
438
438
|
local num = tonumber(params)
|
|
439
439
|
if num == nil then
|
|
440
440
|
local match = getMapPartialMatch(nil, params, CHARACTER_MAP)
|
|
@@ -442,7 +442,7 @@ function ____exports.characterCommand(self, params)
|
|
|
442
442
|
printConsole(nil, "Unknown character: " .. params)
|
|
443
443
|
return
|
|
444
444
|
end
|
|
445
|
-
|
|
445
|
+
playerType = match[2]
|
|
446
446
|
else
|
|
447
447
|
if num < FIRST_CHARACTER or num > LAST_VANILLA_CHARACTER then
|
|
448
448
|
printConsole(
|
|
@@ -451,13 +451,13 @@ function ____exports.characterCommand(self, params)
|
|
|
451
451
|
)
|
|
452
452
|
return
|
|
453
453
|
end
|
|
454
|
-
|
|
454
|
+
playerType = num
|
|
455
455
|
end
|
|
456
|
-
local characterName = getCharacterName(nil,
|
|
457
|
-
restart(nil,
|
|
456
|
+
local characterName = getCharacterName(nil, playerType)
|
|
457
|
+
restart(nil, playerType)
|
|
458
458
|
printConsole(
|
|
459
459
|
nil,
|
|
460
|
-
((("Restarting as character: " .. characterName) .. " (") .. tostring(
|
|
460
|
+
((("Restarting as character: " .. characterName) .. " (") .. tostring(playerType)) .. ")"
|
|
461
461
|
)
|
|
462
462
|
end
|
|
463
463
|
--- Alias for the "addCharges" command.
|
|
@@ -664,8 +664,8 @@ function ____exports.gridEntities(self)
|
|
|
664
664
|
if gridEntityType == nil then
|
|
665
665
|
return
|
|
666
666
|
end
|
|
667
|
-
local
|
|
668
|
-
spawnGridEntity(nil, gridEntityType,
|
|
667
|
+
local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
|
|
668
|
+
spawnGridEntity(nil, gridEntityType, worldPosition)
|
|
669
669
|
x = x + 1
|
|
670
670
|
end
|
|
671
671
|
end
|
|
@@ -853,8 +853,8 @@ function ____exports.pills(self)
|
|
|
853
853
|
if pillColor == nil then
|
|
854
854
|
return
|
|
855
855
|
end
|
|
856
|
-
local
|
|
857
|
-
spawnPill(nil, pillColor,
|
|
856
|
+
local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
|
|
857
|
+
spawnPill(nil, pillColor, worldPosition)
|
|
858
858
|
x = x + 1
|
|
859
859
|
end
|
|
860
860
|
end
|
|
@@ -889,7 +889,7 @@ function ____exports.pocket(self, params)
|
|
|
889
889
|
player:SetPocketActiveItem(collectibleType, ActiveSlot.POCKET)
|
|
890
890
|
end
|
|
891
891
|
--- Alias for the "getPosition" command.
|
|
892
|
-
function ____exports.
|
|
892
|
+
function ____exports.position(self)
|
|
893
893
|
____exports.getPosition(nil)
|
|
894
894
|
end
|
|
895
895
|
--- Alias for the "hearts" command.
|
|
@@ -901,7 +901,7 @@ function ____exports.right(self, params)
|
|
|
901
901
|
movePlayer(nil, params, Direction.RIGHT)
|
|
902
902
|
end
|
|
903
903
|
--- Logs information about the room to the "log.txt" file.
|
|
904
|
-
function ____exports.
|
|
904
|
+
function ____exports.room(self)
|
|
905
905
|
logRoom()
|
|
906
906
|
printConsole(nil, "Logged room information to the \"log.txt\" file.")
|
|
907
907
|
end
|
|
@@ -966,12 +966,12 @@ function ____exports.secretRoom(self)
|
|
|
966
966
|
end
|
|
967
967
|
--- Changes to a seeded run, using the seed of the current run.
|
|
968
968
|
function ____exports.seedStick(self)
|
|
969
|
-
local
|
|
970
|
-
local startSeedString =
|
|
969
|
+
local seedsClass = game:GetSeeds()
|
|
970
|
+
local startSeedString = seedsClass:GetStartSeedString()
|
|
971
971
|
Isaac.ExecuteCommand("seed " .. startSeedString)
|
|
972
972
|
end
|
|
973
973
|
--- Logs all of the current run's seed effects to the "log.txt" file.
|
|
974
|
-
function ____exports.
|
|
974
|
+
function ____exports.seeds(self)
|
|
975
975
|
logSeedEffects()
|
|
976
976
|
printConsole(nil, "Logged the seed effects to the \"log.txt\" file.")
|
|
977
977
|
end
|
|
@@ -1058,8 +1058,8 @@ function ____exports.setPosition(self, params)
|
|
|
1058
1058
|
return
|
|
1059
1059
|
end
|
|
1060
1060
|
local player = Isaac.GetPlayer()
|
|
1061
|
-
local
|
|
1062
|
-
player.Position =
|
|
1061
|
+
local newPosition = Vector(x, y)
|
|
1062
|
+
player.Position = newPosition
|
|
1063
1063
|
end
|
|
1064
1064
|
--- Warps to the first shop on the floor.
|
|
1065
1065
|
function ____exports.shop(self)
|
|
@@ -1113,8 +1113,8 @@ function ____exports.spawnGoldenTrinket(self, params)
|
|
|
1113
1113
|
return
|
|
1114
1114
|
end
|
|
1115
1115
|
local goldenTrinketType = getGoldenTrinketType(nil, trinketType)
|
|
1116
|
-
local
|
|
1117
|
-
local centerPos =
|
|
1116
|
+
local roomClass = game:GetRoom()
|
|
1117
|
+
local centerPos = roomClass:GetCenterPos()
|
|
1118
1118
|
spawnTrinket(nil, goldenTrinketType, centerPos)
|
|
1119
1119
|
end
|
|
1120
1120
|
--- Toggles maximum movement speed and flight for the player.
|
|
@@ -1149,7 +1149,7 @@ function ____exports.tests(self)
|
|
|
1149
1149
|
____exports.runTests(nil)
|
|
1150
1150
|
end
|
|
1151
1151
|
--- Creates a trapdoor next to the player.
|
|
1152
|
-
function ____exports.
|
|
1152
|
+
function ____exports.trapdoor(self)
|
|
1153
1153
|
spawnTrapdoorOrCrawlSpace(nil, true)
|
|
1154
1154
|
end
|
|
1155
1155
|
--- Warps to the first Treasure Room on the floor.
|
package/package.json
CHANGED
|
@@ -380,8 +380,8 @@ export function cards(): void {
|
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
const
|
|
384
|
-
spawnCard(asCardType(cardType),
|
|
383
|
+
const worldPosition = gridCoordinatesToWorldPosition(x, y);
|
|
384
|
+
spawnCard(asCardType(cardType), worldPosition);
|
|
385
385
|
cardType++;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
@@ -409,13 +409,13 @@ export function chaosCardTears(): void {
|
|
|
409
409
|
* - character 2 - Restarts as Cain.
|
|
410
410
|
* - character ta - Restarts as Tainted Azazel.
|
|
411
411
|
*/
|
|
412
|
-
export function
|
|
412
|
+
export function character(params: string): void {
|
|
413
413
|
if (params === "") {
|
|
414
414
|
printConsole("You must specify a character name or number.");
|
|
415
415
|
return;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
let
|
|
418
|
+
let playerType: PlayerType;
|
|
419
419
|
const num = tonumber(params) as PlayerType | undefined;
|
|
420
420
|
if (num === undefined) {
|
|
421
421
|
const match = getMapPartialMatch(params, CHARACTER_MAP);
|
|
@@ -424,19 +424,19 @@ export function characterCommand(params: string): void {
|
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
|
|
427
|
-
|
|
427
|
+
playerType = match[1];
|
|
428
428
|
} else {
|
|
429
429
|
if (num < FIRST_CHARACTER || num > LAST_VANILLA_CHARACTER) {
|
|
430
430
|
printConsole(`Invalid player sub-type: ${num}`);
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
433
|
|
|
434
|
-
|
|
434
|
+
playerType = num;
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
const characterName = getCharacterName(
|
|
438
|
-
restart(
|
|
439
|
-
printConsole(`Restarting as character: ${characterName} (${
|
|
437
|
+
const characterName = getCharacterName(playerType);
|
|
438
|
+
restart(playerType);
|
|
439
|
+
printConsole(`Restarting as character: ${characterName} (${playerType})`);
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
/** Alias for the "addCharges" command. */
|
|
@@ -734,8 +734,8 @@ export function gridEntities(): void {
|
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
736
|
|
|
737
|
-
const
|
|
738
|
-
spawnGridEntity(gridEntityType,
|
|
737
|
+
const worldPosition = gridCoordinatesToWorldPosition(x, y);
|
|
738
|
+
spawnGridEntity(gridEntityType, worldPosition);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
@@ -980,8 +980,8 @@ export function pills(): void {
|
|
|
980
980
|
return;
|
|
981
981
|
}
|
|
982
982
|
|
|
983
|
-
const
|
|
984
|
-
spawnPill(pillColor,
|
|
983
|
+
const worldPosition = gridCoordinatesToWorldPosition(x, y);
|
|
984
|
+
spawnPill(pillColor, worldPosition);
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
}
|
|
@@ -1041,7 +1041,7 @@ export function poopMana(params: string): void {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
/** Alias for the "getPosition" command. */
|
|
1044
|
-
export function
|
|
1044
|
+
export function position(): void {
|
|
1045
1045
|
getPosition();
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
@@ -1056,7 +1056,7 @@ export function right(params: string): void {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
1058
|
/** Logs information about the room to the "log.txt" file. */
|
|
1059
|
-
export function
|
|
1059
|
+
export function room(): void {
|
|
1060
1060
|
logRoom();
|
|
1061
1061
|
printConsole('Logged room information to the "log.txt" file.');
|
|
1062
1062
|
}
|
|
@@ -1140,13 +1140,13 @@ export function secretRoom(): void {
|
|
|
1140
1140
|
|
|
1141
1141
|
/** Changes to a seeded run, using the seed of the current run. */
|
|
1142
1142
|
export function seedStick(): void {
|
|
1143
|
-
const
|
|
1144
|
-
const startSeedString =
|
|
1143
|
+
const seedsClass = game.GetSeeds();
|
|
1144
|
+
const startSeedString = seedsClass.GetStartSeedString();
|
|
1145
1145
|
Isaac.ExecuteCommand(`seed ${startSeedString}`);
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
1148
|
/** Logs all of the current run's seed effects to the "log.txt" file. */
|
|
1149
|
-
export function
|
|
1149
|
+
export function seeds(): void {
|
|
1150
1150
|
logSeedEffects();
|
|
1151
1151
|
printConsole('Logged the seed effects to the "log.txt" file.');
|
|
1152
1152
|
}
|
|
@@ -1237,8 +1237,8 @@ export function setPosition(params: string): void {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
const player = Isaac.GetPlayer();
|
|
1240
|
-
const
|
|
1241
|
-
player.Position =
|
|
1240
|
+
const newPosition = Vector(x, y);
|
|
1241
|
+
player.Position = newPosition;
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
1244
|
/** Warps to the first shop on the floor. */
|
|
@@ -1329,8 +1329,8 @@ export function spawnGoldenTrinket(params: string): void {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
const goldenTrinketType = getGoldenTrinketType(trinketType);
|
|
1332
|
-
const
|
|
1333
|
-
const centerPos =
|
|
1332
|
+
const roomClass = game.GetRoom();
|
|
1333
|
+
const centerPos = roomClass.GetCenterPos();
|
|
1334
1334
|
spawnTrinket(goldenTrinketType, centerPos);
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
@@ -1386,7 +1386,7 @@ export function tests(): void {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
|
|
1388
1388
|
/** Creates a trapdoor next to the player. */
|
|
1389
|
-
export function
|
|
1389
|
+
export function trapdoor(): void {
|
|
1390
1390
|
spawnTrapdoorOrCrawlSpace(true);
|
|
1391
1391
|
}
|
|
1392
1392
|
|