isaacscript-common 9.8.1 → 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.
@@ -279,6 +279,11 @@ end
279
279
  function ____exports.blackMarket(self)
280
280
  changeRoom(nil, GridRoom.BLACK_MARKET)
281
281
  end
282
+ --- Toggles permanent Curse of the Blind.
283
+ function ____exports.blind(self)
284
+ v.persistent.blind = not v.persistent.blind
285
+ printEnabled(nil, v.persistent.blind, "permanent Curse of the Blind")
286
+ end
282
287
  --- Gives a blood charge. This only affects Bethany. Provide a number to give a custom amount of
283
288
  -- charges. (You can use negative numbers to remove charges.)
284
289
  function ____exports.bloodCharges(self, params)
@@ -400,11 +405,11 @@ function ____exports.cards(self)
400
405
  if asCardType(nil, cardType) == lastCardType then
401
406
  return
402
407
  end
403
- local position = gridCoordinatesToWorldPosition(nil, x, y)
408
+ local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
404
409
  spawnCard(
405
410
  nil,
406
411
  asCardType(nil, cardType),
407
- position
412
+ worldPosition
408
413
  )
409
414
  cardType = cardType + 1
410
415
  x = x + 1
@@ -418,25 +423,18 @@ end
418
423
  function ____exports.cc(self)
419
424
  ____exports.chaosCardTears(nil)
420
425
  end
421
- --- Displays the current challenge, if any.
422
- function ____exports.getChallenge(self)
423
- local challenge = Isaac.GetChallenge()
424
- local challengeName = Challenge[challenge]
425
- local challengeDescription = challengeName == nil and tostring(challenge) .. " (custom)" or ((("Challenge." .. challengeName) .. " (") .. tostring(challenge)) .. ")"
426
- printConsole(nil, "The current challenge is: " .. challengeDescription)
427
- end
428
426
  --- Restart as the specified character. Accepts either the character sub-type or the partial name of
429
427
  -- the character.
430
428
  --
431
429
  -- For example:
432
430
  -- - character 2 - Restarts as Cain.
433
431
  -- - character ta - Restarts as Tainted Azazel.
434
- function ____exports.characterCommand(self, params)
432
+ function ____exports.character(self, params)
435
433
  if params == "" then
436
434
  printConsole(nil, "You must specify a character name or number.")
437
435
  return
438
436
  end
439
- local character
437
+ local playerType
440
438
  local num = tonumber(params)
441
439
  if num == nil then
442
440
  local match = getMapPartialMatch(nil, params, CHARACTER_MAP)
@@ -444,7 +442,7 @@ function ____exports.characterCommand(self, params)
444
442
  printConsole(nil, "Unknown character: " .. params)
445
443
  return
446
444
  end
447
- character = match[2]
445
+ playerType = match[2]
448
446
  else
449
447
  if num < FIRST_CHARACTER or num > LAST_VANILLA_CHARACTER then
450
448
  printConsole(
@@ -453,13 +451,13 @@ function ____exports.characterCommand(self, params)
453
451
  )
454
452
  return
455
453
  end
456
- character = num
454
+ playerType = num
457
455
  end
458
- local characterName = getCharacterName(nil, character)
459
- restart(nil, character)
456
+ local characterName = getCharacterName(nil, playerType)
457
+ restart(nil, playerType)
460
458
  printConsole(
461
459
  nil,
462
- ((("Restarting as character: " .. characterName) .. " (") .. tostring(character)) .. ")"
460
+ ((("Restarting as character: " .. characterName) .. " (") .. tostring(playerType)) .. ")"
463
461
  )
464
462
  end
465
463
  --- Alias for the "addCharges" command.
@@ -504,6 +502,11 @@ end
504
502
  function ____exports.crawlSpace(self)
505
503
  spawnTrapdoorOrCrawlSpace(nil, false)
506
504
  end
505
+ --- Toggles permanent Curse of the Cursed.
506
+ function ____exports.cursed(self)
507
+ v.persistent.cursed = not v.persistent.cursed
508
+ printEnabled(nil, v.persistent.cursed, "permanent Curse of the Cursed")
509
+ end
507
510
  --- Uses the D20.
508
511
  function ____exports.d20(self)
509
512
  local player = Isaac.GetPlayer()
@@ -525,6 +528,11 @@ function ____exports.damage(self)
525
528
  v.run.maxDamage = not v.run.maxDamage
526
529
  printEnabled(nil, v.run.maxDamage, "debug damage")
527
530
  end
531
+ --- Toggles permanent Curse of Darkness.
532
+ function ____exports.darkness(self)
533
+ v.persistent.darkness = not v.persistent.darkness
534
+ printEnabled(nil, v.persistent.darkness, "permanent Curse of Darkness")
535
+ end
528
536
  --- Alias for the "devil" command.
529
537
  function ____exports.dd(self)
530
538
  ____exports.devilRoom(nil)
@@ -583,6 +591,13 @@ end
583
591
  function ____exports.fool(self)
584
592
  ____exports.startingRoom(nil)
585
593
  end
594
+ --- Displays the current challenge, if any.
595
+ function ____exports.getChallenge(self)
596
+ local challenge = Isaac.GetChallenge()
597
+ local challengeName = Challenge[challenge]
598
+ local challengeDescription = challengeName == nil and tostring(challenge) .. " (custom)" or ((("Challenge." .. challengeName) .. " (") .. tostring(challenge)) .. ")"
599
+ printConsole(nil, "The current challenge is: " .. challengeDescription)
600
+ end
586
601
  --- Prints the current position of all players.
587
602
  function ____exports.getPosition(self)
588
603
  for ____, player in ipairs(getPlayers(nil)) do
@@ -593,6 +608,11 @@ function ____exports.getPosition(self)
593
608
  )
594
609
  end
595
610
  end
611
+ --- Toggles permanent Curse of the Giant.
612
+ function ____exports.giant(self)
613
+ v.persistent.giant = not v.persistent.giant
614
+ printEnabled(nil, v.persistent.giant, "permanent Curse of the Giant")
615
+ end
596
616
  --- Gives a Giga Bomb. Provide a number to give a custom amount of Giga Bombs. (You can use negative
597
617
  -- numbers to remove bombs.)
598
618
  function ____exports.gigaBomb(self, params)
@@ -644,8 +664,8 @@ function ____exports.gridEntities(self)
644
664
  if gridEntityType == nil then
645
665
  return
646
666
  end
647
- local position = gridCoordinatesToWorldPosition(nil, x, y)
648
- spawnGridEntity(nil, gridEntityType, position)
667
+ local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
668
+ spawnGridEntity(nil, gridEntityType, worldPosition)
649
669
  x = x + 1
650
670
  end
651
671
  end
@@ -692,6 +712,11 @@ function ____exports.keys(self, params)
692
712
  local player = Isaac.GetPlayer()
693
713
  player:AddKeys(numKeys)
694
714
  end
715
+ --- Toggles permanent Curse of the Labyrinth.
716
+ function ____exports.labyrinth(self)
717
+ v.persistent.labyrinth = not v.persistent.labyrinth
718
+ printEnabled(nil, v.persistent.labyrinth, "permanent Curse of the Labyrinth")
719
+ end
695
720
  --- Moves the player 0.5 units left. Provide a number to move a custom amount of units.
696
721
  function ____exports.left(self, params)
697
722
  movePlayer(nil, params, Direction.LEFT)
@@ -726,6 +751,11 @@ end
726
751
  function ____exports.listGridAll(self, params)
727
752
  listGridEntities(nil, params, true)
728
753
  end
754
+ --- Toggles permanent Curse of the Lost.
755
+ function ____exports.lost(self)
756
+ v.persistent.lost = not v.persistent.lost
757
+ printEnabled(nil, v.persistent.lost, "permanent Curse of the Lost")
758
+ end
729
759
  --- Alias for the "1hp" command.
730
760
  function ____exports.lowHP(self)
731
761
  ____exports.oneHP(nil)
@@ -753,6 +783,11 @@ end
753
783
  function ____exports.maxHearts(self, params)
754
784
  addHeart(nil, params, HealthType.MAX_HEARTS)
755
785
  end
786
+ --- Toggles permanent Curse of the Maze.
787
+ function ____exports.maze(self)
788
+ v.persistent.maze = not v.persistent.maze
789
+ printEnabled(nil, v.persistent.maze, "permanent Curse of the Maze")
790
+ end
756
791
  --- Warps to the first Miniboss Room on the floor.
757
792
  function ____exports.miniboss(self)
758
793
  warpToRoomType(nil, RoomType.MINI_BOSS)
@@ -818,8 +853,8 @@ function ____exports.pills(self)
818
853
  if pillColor == nil then
819
854
  return
820
855
  end
821
- local position = gridCoordinatesToWorldPosition(nil, x, y)
822
- spawnPill(nil, pillColor, position)
856
+ local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
857
+ spawnPill(nil, pillColor, worldPosition)
823
858
  x = x + 1
824
859
  end
825
860
  end
@@ -854,7 +889,7 @@ function ____exports.pocket(self, params)
854
889
  player:SetPocketActiveItem(collectibleType, ActiveSlot.POCKET)
855
890
  end
856
891
  --- Alias for the "getPosition" command.
857
- function ____exports.positionCommand(self)
892
+ function ____exports.position(self)
858
893
  ____exports.getPosition(nil)
859
894
  end
860
895
  --- Alias for the "hearts" command.
@@ -866,7 +901,7 @@ function ____exports.right(self, params)
866
901
  movePlayer(nil, params, Direction.RIGHT)
867
902
  end
868
903
  --- Logs information about the room to the "log.txt" file.
869
- function ____exports.roomCommand(self)
904
+ function ____exports.room(self)
870
905
  logRoom()
871
906
  printConsole(nil, "Logged room information to the \"log.txt\" file.")
872
907
  end
@@ -931,12 +966,12 @@ function ____exports.secretRoom(self)
931
966
  end
932
967
  --- Changes to a seeded run, using the seed of the current run.
933
968
  function ____exports.seedStick(self)
934
- local seeds = game:GetSeeds()
935
- local startSeedString = seeds:GetStartSeedString()
969
+ local seedsClass = game:GetSeeds()
970
+ local startSeedString = seedsClass:GetStartSeedString()
936
971
  Isaac.ExecuteCommand("seed " .. startSeedString)
937
972
  end
938
973
  --- Logs all of the current run's seed effects to the "log.txt" file.
939
- function ____exports.seedsCommand(self)
974
+ function ____exports.seeds(self)
940
975
  logSeedEffects()
941
976
  printConsole(nil, "Logged the seed effects to the \"log.txt\" file.")
942
977
  end
@@ -1023,8 +1058,8 @@ function ____exports.setPosition(self, params)
1023
1058
  return
1024
1059
  end
1025
1060
  local player = Isaac.GetPlayer()
1026
- local position = Vector(x, y)
1027
- player.Position = position
1061
+ local newPosition = Vector(x, y)
1062
+ player.Position = newPosition
1028
1063
  end
1029
1064
  --- Warps to the first shop on the floor.
1030
1065
  function ____exports.shop(self)
@@ -1078,8 +1113,8 @@ function ____exports.spawnGoldenTrinket(self, params)
1078
1113
  return
1079
1114
  end
1080
1115
  local goldenTrinketType = getGoldenTrinketType(nil, trinketType)
1081
- local room = game:GetRoom()
1082
- local centerPos = room:GetCenterPos()
1116
+ local roomClass = game:GetRoom()
1117
+ local centerPos = roomClass:GetCenterPos()
1083
1118
  spawnTrinket(nil, goldenTrinketType, centerPos)
1084
1119
  end
1085
1120
  --- Toggles maximum movement speed and flight for the player.
@@ -1114,7 +1149,7 @@ function ____exports.tests(self)
1114
1149
  ____exports.runTests(nil)
1115
1150
  end
1116
1151
  --- Creates a trapdoor next to the player.
1117
- function ____exports.trapdoorCommand(self)
1152
+ function ____exports.trapdoor(self)
1118
1153
  spawnTrapdoorOrCrawlSpace(nil, true)
1119
1154
  end
1120
1155
  --- Warps to the first Treasure Room on the floor.
@@ -1125,6 +1160,11 @@ end
1125
1160
  function ____exports.ultraSecretRoom(self)
1126
1161
  warpToRoomType(nil, RoomType.ULTRA_SECRET)
1127
1162
  end
1163
+ --- Toggles permanent Curse of the Unknown.
1164
+ function ____exports.unknown(self)
1165
+ v.persistent.unknown = not v.persistent.unknown
1166
+ printEnabled(nil, v.persistent.unknown, "permanent Curse of the Unknown")
1167
+ end
1128
1168
  --- If currently on a set seed, changes to an unseeded state and restarts the game.
1129
1169
  function ____exports.unseed(self)
1130
1170
  if not onSetSeed(nil) then
@@ -1,5 +1,13 @@
1
1
  declare const v: {
2
2
  persistent: {
3
+ darkness: boolean;
4
+ labyrinth: boolean;
5
+ lost: boolean;
6
+ unknown: boolean;
7
+ cursed: boolean;
8
+ maze: boolean;
9
+ blind: boolean;
10
+ giant: boolean;
3
11
  disableCurses: boolean;
4
12
  };
5
13
  run: {
@@ -1 +1 @@
1
- {"version":3,"file":"v.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/v.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,CAAC;;;;;;;;;;;;CAaN,CAAC;AACF,eAAe,CAAC,CAAC;AAEjB,qEAAqE;AACrE,eAAO,MAAM,+BAA+B,uBAEjC,MAAM,KAAK,IAAI,CACvB,CAAC;AAEJ;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,OAAO,CAE3D"}
1
+ {"version":3,"file":"v.d.ts","sourceRoot":"","sources":["../../../src/features/extraConsoleCommands/v.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;CAsBN,CAAC;AACF,eAAe,CAAC,CAAC;AAEjB,qEAAqE;AACrE,eAAO,MAAM,+BAA+B,uBAEjC,MAAM,KAAK,IAAI,CACvB,CAAC;AAEJ;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,OAAO,CAE3D"}
@@ -2,7 +2,17 @@ local ____lualib = require("lualib_bundle")
2
2
  local Map = ____lualib.Map
3
3
  local __TS__New = ____lualib.__TS__New
4
4
  local ____exports = {}
5
- local v = {persistent = {disableCurses = false}, run = {
5
+ local v = {persistent = {
6
+ darkness = false,
7
+ labyrinth = false,
8
+ lost = false,
9
+ unknown = false,
10
+ cursed = false,
11
+ maze = false,
12
+ blind = false,
13
+ giant = false,
14
+ disableCurses = false
15
+ }, run = {
6
16
  chaosCardTears = false,
7
17
  spamBloodRights = false,
8
18
  maxDamage = false,
@@ -11,7 +11,7 @@ local sfxManager = ____cachedClasses.sfxManager
11
11
  local ____collectibles = require("functions.collectibles")
12
12
  local getCollectibleMaxCharges = ____collectibles.getCollectibleMaxCharges
13
13
  local ____playerIndex = require("functions.playerIndex")
14
- local getAllPlayers = ____playerIndex.getAllPlayers
14
+ local getPlayers = ____playerIndex.getPlayers
15
15
  local ____roomShape = require("functions.roomShape")
16
16
  local getRoomShapeCharges = ____roomShape.getRoomShapeCharges
17
17
  --- Helper function to add a charge to the player's active item. Will flash the HUD and play the
@@ -194,7 +194,7 @@ function ____exports.addRoomClearCharges(self, bigRoomDoubleCharge)
194
194
  if bigRoomDoubleCharge == nil then
195
195
  bigRoomDoubleCharge = true
196
196
  end
197
- for ____, player in ipairs(getAllPlayers(nil)) do
197
+ for ____, player in ipairs(getPlayers(nil)) do
198
198
  ____exports.addRoomClearCharge(nil, player, bigRoomDoubleCharge)
199
199
  end
200
200
  end
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/functions/log.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,UAAU,EAKV,cAAc,EAGd,QAAQ,EACR,OAAO,EACR,MAAM,8BAA8B,CAAC;AAkBtC;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EAKX,kBAAkB,SAAI,GACrB,MAAM,CAiBR;AAED;;;;;GAKG;AACH,wBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAGjD;AAED,wBAAgB,QAAQ,CAAC,CAAC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G,IAAI,CA4BxC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAiB/C;AAED,wBAAgB,MAAM,CACpB,IAAI,EAAE,IAAI,EACV,GAAG,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,WAAW,CAAC,SAAS,CAAC,GAC3C,IAAI,CAUN;AAED,gFAAgF;AAChF,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAQ1C;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,OAAO,EACjB,YAAY,SAAI,GACf,IAAI,CA2CN;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EACtC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EACpB,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,IAAI,CA0BN;AAED,iGAAiG;AACjG,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,GACnC,IAAI,CAEN;AAED,gGAAgG;AAChG,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GACjC,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAsB/D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,IAAI,CAGzE"}
@@ -243,6 +243,8 @@ function ____exports.logProjectileFlags(flags)
243
243
  end
244
244
  --- Helper function for logging information about the current room.
245
245
  function ____exports.logRoom()
246
+ local room = game:GetRoom()
247
+ local bossID = room:GetBossID()
246
248
  local roomGridIndex = getRoomGridIndex(nil)
247
249
  local roomListIndex = getRoomListIndex(nil)
248
250
  local roomData = getRoomData(nil)
@@ -260,6 +262,7 @@ function ____exports.logRoom()
260
262
  ____exports.log(((("Current room grid index: " .. tostring(roomGridIndex)) .. " (GridRoom.") .. roomGridIndexName) .. ")")
261
263
  end
262
264
  ____exports.log("Current room list index: " .. tostring(roomListIndex))
265
+ ____exports.log("Current room boss ID: " .. tostring(bossID))
263
266
  end
264
267
  --- Helper function for printing out every seed effect (i.e. Easter Egg) that is turned on for the
265
268
  -- particular run.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "9.8.1",
3
+ "version": "9.8.4",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -22,6 +22,6 @@
22
22
  "main": "dist/index",
23
23
  "types": "dist/index.d.ts",
24
24
  "dependencies": {
25
- "isaac-typescript-definitions": "^4.0.2"
25
+ "isaac-typescript-definitions": "^4.0.3"
26
26
  }
27
27
  }
@@ -28,7 +28,7 @@ const v = {
28
28
  };
29
29
 
30
30
  export function postPlayerFatalDamageInit(mod: Mod): void {
31
- saveDataManager("postPlayerFatalDamage", v);
31
+ saveDataManager("postPlayerFatalDamage", v, hasSubscriptions);
32
32
 
33
33
  mod.AddCallback(
34
34
  ModCallback.ENTITY_TAKE_DMG,
@@ -11,7 +11,7 @@ import v, { debugDisplayTextCallbacks, setDebugDisplayEnabled } from "./v";
11
11
  */
12
12
  export function debugDisplayInit(mod: ModUpgraded): void {
13
13
  setDebugDisplayEnabled();
14
- saveDataManager("debugDisplay", v, () => false);
14
+ saveDataManager("debugDisplay", v, false);
15
15
 
16
16
  mod.AddCallback(ModCallback.POST_FAMILIAR_RENDER, postFamiliarRender); // 25
17
17
  mod.AddCallback(ModCallback.POST_NPC_RENDER, postNPCRender); // 28