isaacscript-common 7.17.2 → 7.17.3

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.
Files changed (107) hide show
  1. package/dist/features/characterHealthConversion.d.ts +0 -1
  2. package/dist/features/characterHealthConversion.d.ts.map +1 -1
  3. package/dist/features/characterHealthConversion.lua +2 -0
  4. package/dist/features/characterStats.d.ts +0 -1
  5. package/dist/features/characterStats.d.ts.map +1 -1
  6. package/dist/features/characterStats.lua +2 -0
  7. package/dist/features/collectibleItemPoolType.d.ts +0 -1
  8. package/dist/features/collectibleItemPoolType.d.ts.map +1 -1
  9. package/dist/features/collectibleItemPoolType.lua +2 -0
  10. package/dist/features/customGridEntity.d.ts +0 -2
  11. package/dist/features/customGridEntity.d.ts.map +1 -1
  12. package/dist/features/customGridEntity.lua +2 -0
  13. package/dist/features/customPickup.d.ts +0 -1
  14. package/dist/features/customPickup.d.ts.map +1 -1
  15. package/dist/features/customPickup.lua +2 -0
  16. package/dist/features/deployJSONRoom.d.ts +0 -2
  17. package/dist/features/deployJSONRoom.d.ts.map +1 -1
  18. package/dist/features/deployJSONRoom.lua +2 -0
  19. package/dist/features/disableAllSound.d.ts +0 -2
  20. package/dist/features/disableAllSound.d.ts.map +1 -1
  21. package/dist/features/disableAllSound.lua +2 -0
  22. package/dist/features/disableInputs.d.ts +0 -1
  23. package/dist/features/disableInputs.d.ts.map +1 -1
  24. package/dist/features/disableInputs.lua +2 -0
  25. package/dist/features/fadeInRemover.d.ts +0 -2
  26. package/dist/features/fadeInRemover.d.ts.map +1 -1
  27. package/dist/features/fadeInRemover.lua +2 -0
  28. package/dist/features/fastReset.d.ts +0 -2
  29. package/dist/features/fastReset.d.ts.map +1 -1
  30. package/dist/features/fastReset.lua +2 -0
  31. package/dist/features/forgottenSwitch.d.ts +0 -2
  32. package/dist/features/forgottenSwitch.d.ts.map +1 -1
  33. package/dist/features/forgottenSwitch.lua +2 -0
  34. package/dist/features/pause.d.ts +0 -2
  35. package/dist/features/pause.d.ts.map +1 -1
  36. package/dist/features/pause.lua +2 -0
  37. package/dist/features/persistentEntities.d.ts +0 -2
  38. package/dist/features/persistentEntities.d.ts.map +1 -1
  39. package/dist/features/persistentEntities.lua +2 -0
  40. package/dist/features/pickupIndex.d.ts +0 -2
  41. package/dist/features/pickupIndex.d.ts.map +1 -1
  42. package/dist/features/pickupIndex.lua +2 -0
  43. package/dist/features/playerInventory.d.ts +0 -2
  44. package/dist/features/playerInventory.d.ts.map +1 -1
  45. package/dist/features/playerInventory.lua +2 -0
  46. package/dist/features/ponyDetection.d.ts +0 -2
  47. package/dist/features/ponyDetection.d.ts.map +1 -1
  48. package/dist/features/ponyDetection.lua +2 -0
  49. package/dist/features/preventChildEntities.d.ts +0 -2
  50. package/dist/features/preventChildEntities.d.ts.map +1 -1
  51. package/dist/features/preventChildEntities.lua +2 -0
  52. package/dist/features/preventCollectibleRotation.d.ts +0 -1
  53. package/dist/features/preventCollectibleRotation.d.ts.map +1 -1
  54. package/dist/features/preventCollectibleRotation.lua +2 -0
  55. package/dist/features/registerHotkey.d.ts +0 -1
  56. package/dist/features/registerHotkey.d.ts.map +1 -1
  57. package/dist/features/registerHotkey.lua +2 -0
  58. package/dist/features/roomClearFrame.d.ts +0 -2
  59. package/dist/features/roomClearFrame.d.ts.map +1 -1
  60. package/dist/features/roomClearFrame.lua +2 -0
  61. package/dist/features/roomHistory.d.ts +0 -2
  62. package/dist/features/roomHistory.d.ts.map +1 -1
  63. package/dist/features/roomHistory.lua +2 -0
  64. package/dist/features/runInNFrames.d.ts +0 -2
  65. package/dist/features/runInNFrames.d.ts.map +1 -1
  66. package/dist/features/runInNFrames.lua +2 -0
  67. package/dist/features/runNextRoom.d.ts +0 -2
  68. package/dist/features/runNextRoom.d.ts.map +1 -1
  69. package/dist/features/runNextRoom.lua +2 -0
  70. package/dist/features/sirenHelpers.d.ts +0 -1
  71. package/dist/features/sirenHelpers.d.ts.map +1 -1
  72. package/dist/features/sirenHelpers.lua +2 -0
  73. package/dist/features/stageHistory.d.ts +0 -2
  74. package/dist/features/stageHistory.d.ts.map +1 -1
  75. package/dist/features/stageHistory.lua +2 -0
  76. package/dist/features/taintedLazarusPlayers.d.ts +0 -2
  77. package/dist/features/taintedLazarusPlayers.d.ts.map +1 -1
  78. package/dist/features/taintedLazarusPlayers.lua +2 -0
  79. package/dist/index.d.ts +175 -11417
  80. package/package.json +1 -1
  81. package/src/features/characterHealthConversion.ts +1 -0
  82. package/src/features/characterStats.ts +1 -0
  83. package/src/features/collectibleItemPoolType.ts +1 -0
  84. package/src/features/customGridEntity.ts +1 -0
  85. package/src/features/customPickup.ts +1 -0
  86. package/src/features/deployJSONRoom.ts +1 -0
  87. package/src/features/disableAllSound.ts +1 -0
  88. package/src/features/disableInputs.ts +1 -0
  89. package/src/features/fadeInRemover.ts +1 -0
  90. package/src/features/fastReset.ts +4 -0
  91. package/src/features/forgottenSwitch.ts +1 -0
  92. package/src/features/pause.ts +1 -0
  93. package/src/features/persistentEntities.ts +1 -0
  94. package/src/features/pickupIndex.ts +1 -0
  95. package/src/features/playerInventory.ts +1 -0
  96. package/src/features/ponyDetection.ts +1 -0
  97. package/src/features/preventChildEntities.ts +1 -0
  98. package/src/features/preventCollectibleRotation.ts +1 -0
  99. package/src/features/registerHotkey.ts +1 -0
  100. package/src/features/roomClearFrame.ts +1 -0
  101. package/src/features/roomHistory.ts +1 -0
  102. package/src/features/runInNFrames.ts +1 -0
  103. package/src/features/runNextRoom.ts +1 -0
  104. package/src/features/sirenHelpers.ts +1 -0
  105. package/src/features/stageHistory.ts +1 -0
  106. package/src/features/taintedLazarusPlayers.ts +1 -0
  107. package/src/types/AwaitingTextInput.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "7.17.2",
3
+ "version": "7.17.3",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -23,6 +23,7 @@ const characterHealthReplacementMap = new Map<
23
23
  ConversionHeartSubType
24
24
  >();
25
25
 
26
+ /** @internal */
26
27
  export function characterHealthConversionInit(mod: Mod): void {
27
28
  mod.AddCallback(ModCallback.POST_PEFFECT_UPDATE, postPEffectUpdate); // 4
28
29
  mod.AddCallback(
@@ -18,6 +18,7 @@ const FEATURE_NAME = "characterStats";
18
18
  type StatMap = Map<CacheFlag, number> | ReadonlyMap<CacheFlag, number>;
19
19
  const charactersStatMap = new Map<PlayerType, StatMap>();
20
20
 
21
+ /** @internal */
21
22
  export function characterStatsInit(mod: Mod): void {
22
23
  mod.AddCallback(ModCallback.EVALUATE_CACHE, evaluateCache); // 8
23
24
  }
@@ -22,6 +22,7 @@ const v = {
22
22
  },
23
23
  };
24
24
 
25
+ /** @internal */
25
26
  export function collectibleItemPoolTypeInit(mod: Mod): void {
26
27
  saveDataManager(FEATURE_NAME, v);
27
28
 
@@ -45,6 +45,7 @@ const v = {
45
45
  },
46
46
  };
47
47
 
48
+ /** @internal */
48
49
  export function customGridEntityInit(mod: ModUpgraded): void {
49
50
  saveDataManager(FEATURE_NAME, v);
50
51
 
@@ -32,6 +32,7 @@ const PICKUP_EFFECT_SUB_TYPE = 103;
32
32
  /** Indexed by entity ID. */
33
33
  const customPickupFunctionsMap = new Map<string, CustomPickupFunctions>();
34
34
 
35
+ /** @internal */
35
36
  export function customPickupInit(mod: Mod): void {
36
37
  mod.AddCallback(ModCallback.PRE_PICKUP_COLLISION, prePickupCollision); // 38
37
38
  mod.AddCallback(
@@ -93,6 +93,7 @@ const v = {
93
93
  },
94
94
  };
95
95
 
96
+ /** @internal */
96
97
  export function deployJSONRoomInit(mod: ModUpgraded): void {
97
98
  saveDataManager(FEATURE_NAME, v);
98
99
 
@@ -14,6 +14,7 @@ const v = {
14
14
  },
15
15
  };
16
16
 
17
+ /** @internal */
17
18
  export function disableAllSoundInit(mod: Mod): void {
18
19
  saveDataManager(FEATURE_NAME, v);
19
20
 
@@ -28,6 +28,7 @@ const v = {
28
28
  },
29
29
  };
30
30
 
31
+ /** @internal */
31
32
  export function disableInputsInit(mod: Mod): void {
32
33
  saveDataManager(FEATURE_NAME, v);
33
34
 
@@ -14,6 +14,7 @@ const v = {
14
14
  },
15
15
  };
16
16
 
17
+ /** @internal */
17
18
  export function fadeInRemoverInit(mod: Mod): void {
18
19
  saveDataManager(FEATURE_NAME, v, () => false);
19
20
 
@@ -9,8 +9,12 @@ import { restart } from "../functions/run";
9
9
 
10
10
  const FEATURE_NAME = "fastReset";
11
11
 
12
+ /** A global variable set by custom consoles. */
13
+ declare let AwaitingTextInput: boolean;
14
+
12
15
  let enabled = false;
13
16
 
17
+ /** @internal */
14
18
  export function fastResetInit(mod: Mod): void {
15
19
  mod.AddCallback(ModCallback.POST_RENDER, postRender); // 2
16
20
  }
@@ -14,6 +14,7 @@ const v = {
14
14
  },
15
15
  };
16
16
 
17
+ /** @internal */
17
18
  export function forgottenSwitchInit(mod: Mod): void {
18
19
  saveDataManager(FEATURE_NAME, v);
19
20
 
@@ -37,6 +37,7 @@ const v = {
37
37
  },
38
38
  };
39
39
 
40
+ /** @internal */
40
41
  export function pauseInit(mod: Mod): void {
41
42
  saveDataManager(FEATURE_NAME, v);
42
43
 
@@ -43,6 +43,7 @@ const v = {
43
43
  },
44
44
  };
45
45
 
46
+ /** @internal */
46
47
  export function persistentEntitiesInit(mod: ModUpgraded): void {
47
48
  saveDataManager(FEATURE_NAME, v);
48
49
 
@@ -44,6 +44,7 @@ const v = {
44
44
  },
45
45
  };
46
46
 
47
+ /** @internal */
47
48
  export function pickupIndexInit(mod: ModUpgraded): void {
48
49
  saveDataManager(FEATURE_NAME, v);
49
50
 
@@ -45,6 +45,7 @@ function resetInventory(player: EntityPlayer) {
45
45
  mapSetPlayer(v.run.playersInventory, player, inventory);
46
46
  }
47
47
 
48
+ /** @internal */
48
49
  export function playerInventoryInit(mod: ModUpgraded): void {
49
50
  saveDataManager(FEATURE_NAME, v);
50
51
 
@@ -33,6 +33,7 @@ const v = {
33
33
  },
34
34
  };
35
35
 
36
+ /** @internal */
36
37
  export function ponyDetectionInit(mod: ModUpgraded): void {
37
38
  saveDataManager(FEATURE_NAME, v);
38
39
 
@@ -9,6 +9,7 @@ const v = {
9
9
  },
10
10
  };
11
11
 
12
+ /** @internal */
12
13
  export function preventChildEntitiesInit(mod: Mod): void {
13
14
  saveDataManager(FEATURE_NAME, v);
14
15
 
@@ -32,6 +32,7 @@ const v = {
32
32
  },
33
33
  };
34
34
 
35
+ /** @internal */
35
36
  export function preventCollectibleRotationInit(mod: Mod): void {
36
37
  saveDataManager(FEATURE_NAME, v);
37
38
 
@@ -23,6 +23,7 @@ const dynamicHotkeyFunctionMap = new Map<
23
23
 
24
24
  const keyPressedMap = new DefaultMap<Keyboard, boolean>(false);
25
25
 
26
+ /** @internal */
26
27
  export function registerHotkeyInit(mod: Mod): void {
27
28
  mod.AddCallback(ModCallback.POST_RENDER, postRender); // 2
28
29
  }
@@ -13,6 +13,7 @@ const v = {
13
13
  },
14
14
  };
15
15
 
16
+ /** @internal */
16
17
  export function roomClearFrameInit(mod: ModUpgraded): void {
17
18
  saveDataManager(FEATURE_NAME, v);
18
19
 
@@ -23,6 +23,7 @@ const v = {
23
23
  },
24
24
  };
25
25
 
26
+ /** @internal */
26
27
  export function roomHistoryInit(mod: ModUpgraded): void {
27
28
  saveDataManager(FEATURE_NAME, v);
28
29
 
@@ -30,6 +30,7 @@ const v = {
30
30
  },
31
31
  };
32
32
 
33
+ /** @internal */
33
34
  export function runInNFramesInit(mod: Mod): void {
34
35
  saveDataManager(FEATURE_NAME, v, false); // Functions are not serializable.
35
36
 
@@ -12,6 +12,7 @@ const v = {
12
12
  },
13
13
  };
14
14
 
15
+ /** @internal */
15
16
  export function runNextRoomInit(mod: ModUpgraded): void {
16
17
  saveDataManager(FEATURE_NAME, v, false); // Functions are not serializable.
17
18
 
@@ -17,6 +17,7 @@ const v = {
17
17
  },
18
18
  };
19
19
 
20
+ /** @internal */
20
21
  export function sirenHelpersInit(mod: Mod): void {
21
22
  saveDataManager(FEATURE_NAME, v);
22
23
 
@@ -13,6 +13,7 @@ const v = {
13
13
  },
14
14
  };
15
15
 
16
+ /** @internal */
16
17
  export function stageHistoryInit(mod: ModUpgraded): void {
17
18
  saveDataManager(FEATURE_NAME, v);
18
19
 
@@ -30,6 +30,7 @@ const v = {
30
30
  },
31
31
  };
32
32
 
33
+ /** @internal */
33
34
  export function taintedLazarusPlayersInit(mod: ModUpgraded): void {
34
35
  // `EntityPtr` is not serializable, so we cannot save the data. However, this is inconsequential,
35
36
  // since the `POST_PLAYER_INIT` callback will fire when a run is continued, which will repopulate
@@ -1,2 +0,0 @@
1
- /** A global variable set by custom consoles. */
2
- declare let AwaitingTextInput: boolean;