isaacscript-common 9.8.2 → 9.9.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.
@@ -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 characterCommand(params: string): void;
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 positionCommand(): void;
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 roomCommand(): void;
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 seedsCommand(): void;
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 trapdoorCommand(): void;
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,CA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,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"}
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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AAgB,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"}
@@ -282,7 +282,7 @@ end
282
282
  --- Toggles permanent Curse of the Blind.
283
283
  function ____exports.blind(self)
284
284
  v.persistent.blind = not v.persistent.blind
285
- printEnabled(nil, not v.persistent.blind, "permanent Curse of the Blind")
285
+ printEnabled(nil, v.persistent.blind, "permanent Curse of the Blind")
286
286
  end
287
287
  --- Gives a blood charge. This only affects Bethany. Provide a number to give a custom amount of
288
288
  -- charges. (You can use negative numbers to remove charges.)
@@ -405,11 +405,11 @@ function ____exports.cards(self)
405
405
  if asCardType(nil, cardType) == lastCardType then
406
406
  return
407
407
  end
408
- local position = gridCoordinatesToWorldPosition(nil, x, y)
408
+ local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
409
409
  spawnCard(
410
410
  nil,
411
411
  asCardType(nil, cardType),
412
- position
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.characterCommand(self, params)
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 character
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
- character = match[2]
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
- character = num
454
+ playerType = num
455
455
  end
456
- local characterName = getCharacterName(nil, character)
457
- restart(nil, character)
456
+ local characterName = getCharacterName(nil, playerType)
457
+ restart(nil, playerType)
458
458
  printConsole(
459
459
  nil,
460
- ((("Restarting as character: " .. characterName) .. " (") .. tostring(character)) .. ")"
460
+ ((("Restarting as character: " .. characterName) .. " (") .. tostring(playerType)) .. ")"
461
461
  )
462
462
  end
463
463
  --- Alias for the "addCharges" command.
@@ -505,7 +505,7 @@ end
505
505
  --- Toggles permanent Curse of the Cursed.
506
506
  function ____exports.cursed(self)
507
507
  v.persistent.cursed = not v.persistent.cursed
508
- printEnabled(nil, not v.persistent.cursed, "permanent Curse of the Cursed")
508
+ printEnabled(nil, v.persistent.cursed, "permanent Curse of the Cursed")
509
509
  end
510
510
  --- Uses the D20.
511
511
  function ____exports.d20(self)
@@ -531,7 +531,7 @@ end
531
531
  --- Toggles permanent Curse of Darkness.
532
532
  function ____exports.darkness(self)
533
533
  v.persistent.darkness = not v.persistent.darkness
534
- printEnabled(nil, not v.persistent.darkness, "permanent Curse of Darkness")
534
+ printEnabled(nil, v.persistent.darkness, "permanent Curse of Darkness")
535
535
  end
536
536
  --- Alias for the "devil" command.
537
537
  function ____exports.dd(self)
@@ -611,7 +611,7 @@ end
611
611
  --- Toggles permanent Curse of the Giant.
612
612
  function ____exports.giant(self)
613
613
  v.persistent.giant = not v.persistent.giant
614
- printEnabled(nil, not v.persistent.giant, "permanent Curse of the Giant")
614
+ printEnabled(nil, v.persistent.giant, "permanent Curse of the Giant")
615
615
  end
616
616
  --- Gives a Giga Bomb. Provide a number to give a custom amount of Giga Bombs. (You can use negative
617
617
  -- numbers to remove bombs.)
@@ -664,8 +664,8 @@ function ____exports.gridEntities(self)
664
664
  if gridEntityType == nil then
665
665
  return
666
666
  end
667
- local position = gridCoordinatesToWorldPosition(nil, x, y)
668
- spawnGridEntity(nil, gridEntityType, position)
667
+ local worldPosition = gridCoordinatesToWorldPosition(nil, x, y)
668
+ spawnGridEntity(nil, gridEntityType, worldPosition)
669
669
  x = x + 1
670
670
  end
671
671
  end
@@ -715,7 +715,7 @@ end
715
715
  --- Toggles permanent Curse of the Labyrinth.
716
716
  function ____exports.labyrinth(self)
717
717
  v.persistent.labyrinth = not v.persistent.labyrinth
718
- printEnabled(nil, not v.persistent.labyrinth, "permanent Curse of the Labyrinth")
718
+ printEnabled(nil, v.persistent.labyrinth, "permanent Curse of the Labyrinth")
719
719
  end
720
720
  --- Moves the player 0.5 units left. Provide a number to move a custom amount of units.
721
721
  function ____exports.left(self, params)
@@ -754,7 +754,7 @@ end
754
754
  --- Toggles permanent Curse of the Lost.
755
755
  function ____exports.lost(self)
756
756
  v.persistent.lost = not v.persistent.lost
757
- printEnabled(nil, not v.persistent.lost, "permanent Curse of the Lost")
757
+ printEnabled(nil, v.persistent.lost, "permanent Curse of the Lost")
758
758
  end
759
759
  --- Alias for the "1hp" command.
760
760
  function ____exports.lowHP(self)
@@ -786,7 +786,7 @@ end
786
786
  --- Toggles permanent Curse of the Maze.
787
787
  function ____exports.maze(self)
788
788
  v.persistent.maze = not v.persistent.maze
789
- printEnabled(nil, not v.persistent.maze, "permanent Curse of the Maze")
789
+ printEnabled(nil, v.persistent.maze, "permanent Curse of the Maze")
790
790
  end
791
791
  --- Warps to the first Miniboss Room on the floor.
792
792
  function ____exports.miniboss(self)
@@ -853,8 +853,8 @@ function ____exports.pills(self)
853
853
  if pillColor == nil then
854
854
  return
855
855
  end
856
- local position = gridCoordinatesToWorldPosition(nil, x, y)
857
- spawnPill(nil, pillColor, position)
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.positionCommand(self)
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.roomCommand(self)
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 seeds = game:GetSeeds()
970
- local startSeedString = seeds:GetStartSeedString()
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.seedsCommand(self)
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 position = Vector(x, y)
1062
- player.Position = 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 room = game:GetRoom()
1117
- local centerPos = room:GetCenterPos()
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.trapdoorCommand(self)
1152
+ function ____exports.trapdoor(self)
1153
1153
  spawnTrapdoorOrCrawlSpace(nil, true)
1154
1154
  end
1155
1155
  --- Warps to the first Treasure Room on the floor.
@@ -1163,7 +1163,7 @@ end
1163
1163
  --- Toggles permanent Curse of the Unknown.
1164
1164
  function ____exports.unknown(self)
1165
1165
  v.persistent.unknown = not v.persistent.unknown
1166
- printEnabled(nil, not v.persistent.unknown, "permanent Curse of the Unknown")
1166
+ printEnabled(nil, v.persistent.unknown, "permanent Curse of the Unknown")
1167
1167
  end
1168
1168
  --- If currently on a set seed, changes to an unseeded state and restarts the game.
1169
1169
  function ____exports.unseed(self)
@@ -71,6 +71,12 @@ export declare function getEntities(entityType?: EntityType, variant?: number, s
71
71
  * as comparing other types is non-trivial.
72
72
  */
73
73
  export declare function getEntityFields(entity: Entity): LuaMap<string, boolean | number | string>;
74
+ /**
75
+ * Helper function to get an entity from a `PtrHash`. Note that doing this is very expensive, so you
76
+ * should only use this function when debugging. (Normally, if you need to work backwards from a
77
+ * reference, you would use an `EntityPtr` instead of a `PtrHash`.
78
+ */
79
+ export declare function getEntityFromPtrHash(ptrHash: PtrHash): Entity | undefined;
74
80
  /** Helper function to return a string containing the entity's type, variant, and sub-type. */
75
81
  export declare function getEntityID(entity: Entity): string;
76
82
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/functions/entities.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI1D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAO/C;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,UAAU,GAAE,UAAe,EAC3B,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,GAAG,CAcL;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,UAAU,GAAE,UAAe,EAC3B,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,OAAO,CAGT;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,EACpD,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,CAAC,EAAE,GACZ,CAAC,GAAG,SAAS,CAaf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,WAAW,CACzB,UAAU,GAAE,UAAe,EAC3B,OAAO,SAAK,EACZ,OAAO,SAAK,EACZ,cAAc,UAAQ,GACrB,MAAM,EAAE,CAMV;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,GACb,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,CA8B3C;AA0BD,8FAA8F;AAC9F,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,UAA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GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,SAAS,EAChD,QAAQ,EAAE,CAAC,EAAE,EACb,GAAG,CAAC,EAAE,GAAG,GACR,CAAC,EAAE,CAgBL;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAgB9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CASzD;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CACnB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,EAChB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,EACvC,SAAS,GAAE,IAAI,GAAG,GAAG,GAAG,SAAqB,GAC5C,MAAM,CAsCR;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,GAAG,EACZ,OAAO,EAAE,GAAG,EACZ,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,IAAI,GAAG,GAAG,EACrB,QAAQ,GAAE,MAAmB,EAC7B,OAAO,GAAE,MAAM,GAAG,SAAqB,GACtC,MAAM,CAUR"}
@@ -1,4 +1,5 @@
1
1
  local ____lualib = require("lualib_bundle")
2
+ local __TS__ArrayFind = ____lualib.__TS__ArrayFind
2
3
  local Set = ____lualib.Set
3
4
  local __TS__New = ____lualib.__TS__New
4
5
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
@@ -208,6 +209,16 @@ function ____exports.getEntityFields(self, entity)
208
209
  setPrimitiveEntityFields(nil, entity, parentTable, entityFields)
209
210
  return entityFields
210
211
  end
212
+ --- Helper function to get an entity from a `PtrHash`. Note that doing this is very expensive, so you
213
+ -- should only use this function when debugging. (Normally, if you need to work backwards from a
214
+ -- reference, you would use an `EntityPtr` instead of a `PtrHash`.
215
+ function ____exports.getEntityFromPtrHash(self, ptrHash)
216
+ local entities = ____exports.getEntities(nil)
217
+ return __TS__ArrayFind(
218
+ entities,
219
+ function(____, entity) return GetPtrHash(entity) == ptrHash end
220
+ )
221
+ end
211
222
  --- Helper function to return a string containing the entity's type, variant, and sub-type.
212
223
  function ____exports.getEntityID(self, entity)
213
224
  return (((tostring(entity.Type) .. ".") .. tostring(entity.Variant)) .. ".") .. tostring(entity.SubType)
@@ -13,4 +13,14 @@ export declare function logEntity(this: void, entity: Entity): void;
13
13
  export declare function logGridEntities(this: void, gridEntities: GridEntity[]): void;
14
14
  /** Helper function for log information about a specific grid entity. */
15
15
  export declare function logGridEntity(this: void, gridEntity: GridEntity): void;
16
+ /**
17
+ * Helper function to log information about the entity that corresponding to a pointer hash. (Only
18
+ * use this when debugging, since retrieving the corresponding entity is expensive.)
19
+ */
20
+ export declare function logPtrHash(this: void, ptrHash: PtrHash): void;
21
+ /**
22
+ * Helper function to log information about the entity that corresponding to one or more pointer
23
+ * hashes. (Only use this when debugging, since retrieving the corresponding entity is expensive.)
24
+ */
25
+ export declare function logPtrHashes(this: void, ptrHashes: PtrHash[]): void;
16
26
  //# sourceMappingURL=logEntities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logEntities.d.ts","sourceRoot":"","sources":["../../src/functions/logEntities.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,cAAc,EACf,MAAM,8BAA8B,CAAC;AAiBtC,8FAA8F;AAC9F,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,wBAAwB,EAAE,OAAO,EACjC,gBAAgB,CAAC,EAAE,UAAU,GAC5B,IAAI,CAuCN;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,OAAO,EACrB,oBAAoB,CAAC,EAAE,cAAc,GACpC,IAAI,CA6CN;AAED,iEAAiE;AACjE,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAA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,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAQ7D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,IAAI,CAInE"}
@@ -9,6 +9,7 @@ local EffectVariant = ____isaac_2Dtypescript_2Ddefinitions.EffectVariant
9
9
  local GridEntityType = ____isaac_2Dtypescript_2Ddefinitions.GridEntityType
10
10
  local ____entities = require("functions.entities")
11
11
  local getEntities = ____entities.getEntities
12
+ local getEntityFromPtrHash = ____entities.getEntityFromPtrHash
12
13
  local getEntityID = ____entities.getEntityID
13
14
  local ____gridEntities = require("functions.gridEntities")
14
15
  local getGridEntities = ____gridEntities.getGridEntities
@@ -217,4 +218,22 @@ function ____exports.logGridEntities(gridEntities)
217
218
  ____exports.logGridEntity(gridEntity)
218
219
  end
219
220
  end
221
+ --- Helper function to log information about the entity that corresponding to a pointer hash. (Only
222
+ -- use this when debugging, since retrieving the corresponding entity is expensive.)
223
+ function ____exports.logPtrHash(ptrHash)
224
+ log("PtrHash: " .. tostring(ptrHash))
225
+ local entity = getEntityFromPtrHash(nil, ptrHash)
226
+ if entity == nil then
227
+ log("No corresponding entity found.")
228
+ else
229
+ ____exports.logEntity(entity)
230
+ end
231
+ end
232
+ --- Helper function to log information about the entity that corresponding to one or more pointer
233
+ -- hashes. (Only use this when debugging, since retrieving the corresponding entity is expensive.)
234
+ function ____exports.logPtrHashes(ptrHashes)
235
+ for ____, ptrHash in ipairs(ptrHashes) do
236
+ ____exports.logPtrHash(ptrHash)
237
+ end
238
+ end
220
239
  return ____exports
@@ -33,6 +33,9 @@ export declare function setFloorDisplayFlags(displayFlagsMap: Map<int, BitFlags<
33
33
  * Helper function to set a particular room's minimap display flags (e.g. whether or not it is
34
34
  * visible and so on).
35
35
  *
36
+ * You must call the `Level.UpdateVisibility` method after using this function for the changes to
37
+ * take effect.
38
+ *
36
39
  * @param roomGridIndex Set to undefined to use the current room index.
37
40
  * @param displayFlags The bit flags value to set. (See the `DisplayFlag` enum.)
38
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"minimap.d.ts","sourceRoot":"","sources":["../../src/functions/minimap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,8BAA8B,CAAC;AAK5E;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAS7C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAYtE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,CAAC,EAAE,GAAG,GAClB,QAAQ,CAAC,WAAW,CAAC,CAGvB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,eAAe,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,GAC/C,IAAI,CAgBN;AAED,gDAAgD;AAChD,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,GAC/C,IAAI,CAEN;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,GAAG,GAAG,SAAS,EAC9B,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAC,GAClC,IAAI,CAGN"}
1
+ {"version":3,"file":"minimap.d.ts","sourceRoot":"","sources":["../../src/functions/minimap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,8BAA8B,CAAC;AAK5E;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAS7C;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAYtE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,CAAC,EAAE,GAAG,GAClB,QAAQ,CAAC,WAAW,CAAC,CAGvB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,eAAe,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,GAC/C,IAAI,CAgBN;AAED,gDAAgD;AAChD,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,GAC/C,IAAI,CAEN;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,GAAG,GAAG,SAAS,EAC9B,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAC,GAClC,IAAI,CAGN"}
@@ -14,6 +14,9 @@ local getRoomsInsideGrid = ____rooms.getRoomsInsideGrid
14
14
  --- Helper function to set a particular room's minimap display flags (e.g. whether or not it is
15
15
  -- visible and so on).
16
16
  --
17
+ -- You must call the `Level.UpdateVisibility` method after using this function for the changes to
18
+ -- take effect.
19
+ --
17
20
  -- @param roomGridIndex Set to undefined to use the current room index.
18
21
  -- @param displayFlags The bit flags value to set. (See the `DisplayFlag` enum.)
19
22
  function ____exports.setRoomDisplayFlags(self, roomGridIndex, displayFlags)
package/dist/index.d.ts CHANGED
@@ -2983,6 +2983,13 @@ export declare function getEntities(entityType?: EntityType, variant?: number, s
2983
2983
  */
2984
2984
  export declare function getEntityFields(entity: Entity): LuaMap<string, boolean | number | string>;
2985
2985
 
2986
+ /**
2987
+ * Helper function to get an entity from a `PtrHash`. Note that doing this is very expensive, so you
2988
+ * should only use this function when debugging. (Normally, if you need to work backwards from a
2989
+ * reference, you would use an `EntityPtr` instead of a `PtrHash`.
2990
+ */
2991
+ export declare function getEntityFromPtrHash(ptrHash: PtrHash): Entity | undefined;
2992
+
2986
2993
  /** Helper function to return a string containing the entity's type, variant, and sub-type. */
2987
2994
  export declare function getEntityID(entity: Entity): string;
2988
2995
 
@@ -6588,6 +6595,18 @@ export declare function logPlayerHealth(this: void, player: EntityPlayer): void;
6588
6595
  */
6589
6596
  export declare function logProjectileFlags(this: void, flags: ProjectileFlag | BitFlags<ProjectileFlag>): void;
6590
6597
 
6598
+ /**
6599
+ * Helper function to log information about the entity that corresponding to a pointer hash. (Only
6600
+ * use this when debugging, since retrieving the corresponding entity is expensive.)
6601
+ */
6602
+ export declare function logPtrHash(this: void, ptrHash: PtrHash): void;
6603
+
6604
+ /**
6605
+ * Helper function to log information about the entity that corresponding to one or more pointer
6606
+ * hashes. (Only use this when debugging, since retrieving the corresponding entity is expensive.)
6607
+ */
6608
+ export declare function logPtrHashes(this: void, ptrHashes: PtrHash[]): void;
6609
+
6591
6610
  /** Helper function for logging information about the current room. */
6592
6611
  export declare function logRoom(this: void): void;
6593
6612
 
@@ -10630,6 +10649,9 @@ export declare function setRoomData(roomGridIndex: int, roomData: Readonly<RoomC
10630
10649
  * Helper function to set a particular room's minimap display flags (e.g. whether or not it is
10631
10650
  * visible and so on).
10632
10651
  *
10652
+ * You must call the `Level.UpdateVisibility` method after using this function for the changes to
10653
+ * take effect.
10654
+ *
10633
10655
  * @param roomGridIndex Set to undefined to use the current room index.
10634
10656
  * @param displayFlags The bit flags value to set. (See the `DisplayFlag` enum.)
10635
10657
  */
@@ -73,8 +73,8 @@ ____exports.CARD_MAP = __TS__New(Map, {
73
73
  {"algiz", CardType.RUNE_ALGIZ},
74
74
  {"resistance", CardType.RUNE_ALGIZ},
75
75
  {"shield", CardType.RUNE_ALGIZ},
76
- {"blank", CardType.RUNE_BLANK},
77
- {"black", CardType.RUNE_BLACK},
76
+ {"blankRune", CardType.RUNE_BLANK},
77
+ {"blackRune", CardType.RUNE_BLACK},
78
78
  {"chaos", CardType.CHAOS},
79
79
  {"credit", CardType.CREDIT},
80
80
  {"rules", CardType.RULES},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "9.8.2",
3
+ "version": "9.9.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -227,7 +227,7 @@ export function blackMarket(): void {
227
227
  /** Toggles permanent Curse of the Blind. */
228
228
  export function blind(): void {
229
229
  v.persistent.blind = !v.persistent.blind;
230
- printEnabled(!v.persistent.blind, "permanent Curse of the Blind");
230
+ printEnabled(v.persistent.blind, "permanent Curse of the Blind");
231
231
  }
232
232
 
233
233
  /**
@@ -380,8 +380,8 @@ export function cards(): void {
380
380
  return;
381
381
  }
382
382
 
383
- const position = gridCoordinatesToWorldPosition(x, y);
384
- spawnCard(asCardType(cardType), position);
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 characterCommand(params: string): void {
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 character: PlayerType;
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
- character = match[1];
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
- character = num;
434
+ playerType = num;
435
435
  }
436
436
 
437
- const characterName = getCharacterName(character);
438
- restart(character);
439
- printConsole(`Restarting as character: ${characterName} (${character})`);
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. */
@@ -497,7 +497,7 @@ export function crawlSpace(): void {
497
497
  /** Toggles permanent Curse of the Cursed. */
498
498
  export function cursed(): void {
499
499
  v.persistent.cursed = !v.persistent.cursed;
500
- printEnabled(!v.persistent.cursed, "permanent Curse of the Cursed");
500
+ printEnabled(v.persistent.cursed, "permanent Curse of the Cursed");
501
501
  }
502
502
 
503
503
  /** Uses the D20. */
@@ -528,7 +528,7 @@ export function damage(): void {
528
528
  /** Toggles permanent Curse of Darkness. */
529
529
  export function darkness(): void {
530
530
  v.persistent.darkness = !v.persistent.darkness;
531
- printEnabled(!v.persistent.darkness, "permanent Curse of Darkness");
531
+ printEnabled(v.persistent.darkness, "permanent Curse of Darkness");
532
532
  }
533
533
 
534
534
  /** Alias for the "devil" command. */
@@ -645,7 +645,7 @@ export function getPosition(): void {
645
645
  /** Toggles permanent Curse of the Giant. */
646
646
  export function giant(): void {
647
647
  v.persistent.giant = !v.persistent.giant;
648
- printEnabled(!v.persistent.giant, "permanent Curse of the Giant");
648
+ printEnabled(v.persistent.giant, "permanent Curse of the Giant");
649
649
  }
650
650
 
651
651
  /**
@@ -734,8 +734,8 @@ export function gridEntities(): void {
734
734
  return;
735
735
  }
736
736
 
737
- const position = gridCoordinatesToWorldPosition(x, y);
738
- spawnGridEntity(gridEntityType, position);
737
+ const worldPosition = gridCoordinatesToWorldPosition(x, y);
738
+ spawnGridEntity(gridEntityType, worldPosition);
739
739
  }
740
740
  }
741
741
  }
@@ -801,7 +801,7 @@ export function keys(params: string): void {
801
801
  /** Toggles permanent Curse of the Labyrinth. */
802
802
  export function labyrinth(): void {
803
803
  v.persistent.labyrinth = !v.persistent.labyrinth;
804
- printEnabled(!v.persistent.labyrinth, "permanent Curse of the Labyrinth");
804
+ printEnabled(v.persistent.labyrinth, "permanent Curse of the Labyrinth");
805
805
  }
806
806
 
807
807
  /** Moves the player 0.5 units left. Provide a number to move a custom amount of units. */
@@ -855,7 +855,7 @@ export function listGridAll(params: string): void {
855
855
  /** Toggles permanent Curse of the Lost. */
856
856
  export function lost(): void {
857
857
  v.persistent.lost = !v.persistent.lost;
858
- printEnabled(!v.persistent.lost, "permanent Curse of the Lost");
858
+ printEnabled(v.persistent.lost, "permanent Curse of the Lost");
859
859
  }
860
860
 
861
861
  /** Alias for the "1hp" command. */
@@ -903,7 +903,7 @@ export function maxHearts(params: string): void {
903
903
  /** Toggles permanent Curse of the Maze. */
904
904
  export function maze(): void {
905
905
  v.persistent.maze = !v.persistent.maze;
906
- printEnabled(!v.persistent.maze, "permanent Curse of the Maze");
906
+ printEnabled(v.persistent.maze, "permanent Curse of the Maze");
907
907
  }
908
908
 
909
909
  /** Warps to the first Miniboss Room on the floor. */
@@ -980,8 +980,8 @@ export function pills(): void {
980
980
  return;
981
981
  }
982
982
 
983
- const position = gridCoordinatesToWorldPosition(x, y);
984
- spawnPill(pillColor, position);
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 positionCommand(): void {
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 roomCommand(): void {
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 seeds = game.GetSeeds();
1144
- const startSeedString = seeds.GetStartSeedString();
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 seedsCommand(): void {
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 position = Vector(x, y);
1241
- player.Position = 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 room = game.GetRoom();
1333
- const centerPos = room.GetCenterPos();
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 trapdoorCommand(): void {
1389
+ export function trapdoor(): void {
1390
1390
  spawnTrapdoorOrCrawlSpace(true);
1391
1391
  }
1392
1392
 
@@ -1403,7 +1403,7 @@ export function ultraSecretRoom(): void {
1403
1403
  /** Toggles permanent Curse of the Unknown. */
1404
1404
  export function unknown(): void {
1405
1405
  v.persistent.unknown = !v.persistent.unknown;
1406
- printEnabled(!v.persistent.unknown, "permanent Curse of the Unknown");
1406
+ printEnabled(v.persistent.unknown, "permanent Curse of the Unknown");
1407
1407
  }
1408
1408
 
1409
1409
  /** If currently on a set seed, changes to an unseeded state and restarts the game. */
@@ -194,6 +194,16 @@ function setPrimitiveEntityFields(
194
194
  }
195
195
  }
196
196
 
197
+ /**
198
+ * Helper function to get an entity from a `PtrHash`. Note that doing this is very expensive, so you
199
+ * should only use this function when debugging. (Normally, if you need to work backwards from a
200
+ * reference, you would use an `EntityPtr` instead of a `PtrHash`.
201
+ */
202
+ export function getEntityFromPtrHash(ptrHash: PtrHash): Entity | undefined {
203
+ const entities = getEntities();
204
+ return entities.find((entity) => GetPtrHash(entity) === ptrHash);
205
+ }
206
+
197
207
  /** Helper function to return a string containing the entity's type, variant, and sub-type. */
198
208
  export function getEntityID(entity: Entity): string {
199
209
  return `${entity.Type}.${entity.Variant}.${entity.SubType}`;
@@ -3,7 +3,7 @@ import {
3
3
  EntityType,
4
4
  GridEntityType,
5
5
  } from "isaac-typescript-definitions";
6
- import { getEntities, getEntityID } from "./entities";
6
+ import { getEntities, getEntityFromPtrHash, getEntityID } from "./entities";
7
7
  import { getGridEntities, getGridEntityID } from "./gridEntities";
8
8
  import { log } from "./log";
9
9
 
@@ -274,3 +274,27 @@ function getGridEntityLogLine(gridEntity: GridEntity, num?: int): string {
274
274
 
275
275
  return msg;
276
276
  }
277
+
278
+ /**
279
+ * Helper function to log information about the entity that corresponding to a pointer hash. (Only
280
+ * use this when debugging, since retrieving the corresponding entity is expensive.)
281
+ */
282
+ export function logPtrHash(this: void, ptrHash: PtrHash): void {
283
+ log(`PtrHash: ${ptrHash}`);
284
+ const entity = getEntityFromPtrHash(ptrHash);
285
+ if (entity === undefined) {
286
+ log("No corresponding entity found.");
287
+ } else {
288
+ logEntity(entity);
289
+ }
290
+ }
291
+
292
+ /**
293
+ * Helper function to log information about the entity that corresponding to one or more pointer
294
+ * hashes. (Only use this when debugging, since retrieving the corresponding entity is expensive.)
295
+ */
296
+ export function logPtrHashes(this: void, ptrHashes: PtrHash[]): void {
297
+ for (const ptrHash of ptrHashes) {
298
+ logPtrHash(ptrHash);
299
+ }
300
+ }
@@ -90,6 +90,9 @@ export function setFloorDisplayFlags(
90
90
  * Helper function to set a particular room's minimap display flags (e.g. whether or not it is
91
91
  * visible and so on).
92
92
  *
93
+ * You must call the `Level.UpdateVisibility` method after using this function for the changes to
94
+ * take effect.
95
+ *
93
96
  * @param roomGridIndex Set to undefined to use the current room index.
94
97
  * @param displayFlags The bit flags value to set. (See the `DisplayFlag` enum.)
95
98
  */
@@ -71,8 +71,8 @@ export const CARD_MAP: ReadonlyMap<string, CardType> = new Map([
71
71
  ["algiz", CardType.RUNE_ALGIZ], // 39
72
72
  ["resistance", CardType.RUNE_ALGIZ], // 39
73
73
  ["shield", CardType.RUNE_ALGIZ], // 39
74
- ["blank", CardType.RUNE_BLANK], // 40
75
- ["black", CardType.RUNE_BLACK], // 41
74
+ ["blankRune", CardType.RUNE_BLANK], // 40
75
+ ["blackRune", CardType.RUNE_BLACK], // 41
76
76
  ["chaos", CardType.CHAOS], // 42
77
77
  ["credit", CardType.CREDIT], // 43
78
78
  ["rules", CardType.RULES], // 44