isaacscript-common 2.0.11 → 2.0.14

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 (103) hide show
  1. package/dist/callbacks/subscriptions/postBombInitLate.d.ts +1 -1
  2. package/dist/callbacks/subscriptions/postCollectibleInitFirst.d.ts +1 -1
  3. package/dist/callbacks/subscriptions/postEffectInitLate.d.ts +1 -1
  4. package/dist/callbacks/subscriptions/postFamiliarInitLate.d.ts +1 -1
  5. package/dist/callbacks/subscriptions/postHolyMantleRemoved.d.ts +2 -2
  6. package/dist/callbacks/subscriptions/postItemDischarged.d.ts +2 -2
  7. package/dist/callbacks/subscriptions/postItemPickup.d.ts +1 -1
  8. package/dist/callbacks/subscriptions/postKnifeInitLate.d.ts +1 -1
  9. package/dist/callbacks/subscriptions/postLaserInitLate.d.ts +1 -1
  10. package/dist/callbacks/subscriptions/postNPCInitLate.d.ts +1 -1
  11. package/dist/callbacks/subscriptions/postNPCStateChanged.d.ts +1 -1
  12. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.d.ts +2 -2
  13. package/dist/callbacks/subscriptions/postPickupCollect.d.ts +1 -1
  14. package/dist/callbacks/subscriptions/postPickupInitLate.d.ts +1 -1
  15. package/dist/callbacks/subscriptions/postPlayerChangeType.d.ts +1 -1
  16. package/dist/callbacks/subscriptions/postProjectileInitLate.d.ts +1 -1
  17. package/dist/callbacks/subscriptions/postPurchase.d.ts +1 -1
  18. package/dist/callbacks/subscriptions/postTearInitLate.d.ts +1 -1
  19. package/dist/callbacks/subscriptions/postTearInitVeryLate.d.ts +1 -1
  20. package/dist/callbacks/subscriptions/postTrinketBreak.d.ts +2 -2
  21. package/dist/callbacks/subscriptions/preItemPickup.d.ts +1 -1
  22. package/dist/classes/DefaultMap.d.ts +2 -1
  23. package/dist/constants.d.ts +16 -7
  24. package/dist/constants.lua +2 -2
  25. package/dist/enums/ModCallbackCustom.d.ts +0 -3
  26. package/dist/features/characterHealthConversion.d.ts +1 -1
  27. package/dist/features/characterStats.d.ts +1 -1
  28. package/dist/features/deployJSONRoom.d.ts +16 -9
  29. package/dist/features/deployJSONRoom.lua +2 -2
  30. package/dist/features/disableInputs.d.ts +6 -6
  31. package/dist/features/disableSound.d.ts +2 -2
  32. package/dist/features/extraConsoleCommands/commands.d.ts +12 -9
  33. package/dist/features/extraConsoleCommands/commands.lua +14 -0
  34. package/dist/features/extraConsoleCommands/init.lua +1 -0
  35. package/dist/features/preventCollectibleRotate.d.ts +1 -1
  36. package/dist/features/runInNFrames.d.ts +2 -1
  37. package/dist/features/saveDataManager/exports.d.ts +8 -6
  38. package/dist/features/sirenHelpers.d.ts +2 -2
  39. package/dist/functions/array.d.ts +10 -9
  40. package/dist/functions/benchmark.d.ts +1 -1
  41. package/dist/functions/boss.d.ts +3 -3
  42. package/dist/functions/cards.d.ts +10 -8
  43. package/dist/functions/character.d.ts +10 -10
  44. package/dist/functions/charge.d.ts +6 -3
  45. package/dist/functions/collectibleCacheFlag.d.ts +2 -2
  46. package/dist/functions/collectibleSet.d.ts +1 -1
  47. package/dist/functions/collectibleTag.d.ts +3 -3
  48. package/dist/functions/collectibles.d.ts +22 -19
  49. package/dist/functions/collectibles.lua +2 -1
  50. package/dist/functions/color.d.ts +1 -1
  51. package/dist/functions/deepCopy.d.ts +2 -1
  52. package/dist/functions/entity.d.ts +16 -13
  53. package/dist/functions/entity.lua +1 -1
  54. package/dist/functions/entitySpecific.d.ts +58 -49
  55. package/dist/functions/enums.d.ts +6 -5
  56. package/dist/functions/enums.lua +1 -1
  57. package/dist/functions/familiars.d.ts +5 -5
  58. package/dist/functions/familiars.lua +1 -1
  59. package/dist/functions/flag.d.ts +6 -2
  60. package/dist/functions/flying.d.ts +4 -4
  61. package/dist/functions/gridEntity.d.ts +15 -10
  62. package/dist/functions/gridEntity.lua +0 -4
  63. package/dist/functions/kColor.d.ts +1 -1
  64. package/dist/functions/level.d.ts +1 -0
  65. package/dist/functions/level.lua +29 -0
  66. package/dist/functions/log.d.ts +2 -2
  67. package/dist/functions/map.d.ts +2 -1
  68. package/dist/functions/math.d.ts +8 -1
  69. package/dist/functions/math.lua +6 -0
  70. package/dist/functions/npc.d.ts +3 -3
  71. package/dist/functions/pickups.d.ts +26 -26
  72. package/dist/functions/pills.d.ts +5 -4
  73. package/dist/functions/player.d.ts +19 -19
  74. package/dist/functions/playerIndex.d.ts +2 -1
  75. package/dist/functions/positionVelocity.d.ts +9 -5
  76. package/dist/functions/random.d.ts +7 -5
  77. package/dist/functions/rng.d.ts +1 -1
  78. package/dist/functions/rooms.d.ts +29 -5
  79. package/dist/functions/rooms.lua +56 -21
  80. package/dist/functions/run.d.ts +1 -1
  81. package/dist/functions/set.d.ts +1 -1
  82. package/dist/functions/spawnCollectible.d.ts +5 -5
  83. package/dist/functions/transformations.d.ts +4 -3
  84. package/dist/functions/trinketCacheFlag.d.ts +2 -2
  85. package/dist/functions/trinketGive.d.ts +3 -3
  86. package/dist/functions/trinketSet.d.ts +1 -1
  87. package/dist/functions/trinkets.d.ts +12 -9
  88. package/dist/functions/trinkets.lua +2 -2
  89. package/dist/functions/ui.d.ts +2 -2
  90. package/dist/functions/utils.d.ts +4 -2
  91. package/dist/functions/vector.d.ts +1 -1
  92. package/dist/index.d.ts +1 -0
  93. package/dist/index.lua +8 -0
  94. package/dist/objects/roomShapeToDoorSlots.d.ts +1 -1
  95. package/dist/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +3 -3
  96. package/dist/sets/mineShaftRoomSubTypesSet.d.ts +2 -0
  97. package/dist/sets/mineShaftRoomSubTypesSet.lua +14 -0
  98. package/dist/types/CollectibleIndex.d.ts +2 -1
  99. package/dist/types/PickingUpItem.d.ts +1 -1
  100. package/dist/types/PlayerIndex.d.ts +2 -1
  101. package/dist/types/TrinketSituation.d.ts +3 -3
  102. package/dist/upgradeMod.d.ts +2 -4
  103. package/package.json +4 -3
@@ -26,7 +26,7 @@ export declare function deleteSetsFromSet<T>(mainSet: Set<T>, ...setsToRemove: A
26
26
  *
27
27
  * @param set The set to get an element from.
28
28
  * @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
29
- * `RNG.Next` method will be called. Default is `getRandomSeed()`.
29
+ * `RNG.Next` method will be called. Default is `getRandomSeed()`.
30
30
  * @param exceptions Optional. An array of elements to skip over if selected.
31
31
  */
32
32
  export declare function getRandomSetElement<T>(set: Set<T> | ReadonlySet<T>, seedOrRNG?: Seed | RNG, exceptions?: T[] | readonly T[]): T;
@@ -8,13 +8,13 @@ import { CollectibleType } from "isaac-typescript-definitions";
8
8
  * @param collectibleType The collectible type to spawn.
9
9
  * @param position The position to spawn the collectible at.
10
10
  * @param seedOrRNG Optional. The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
11
- * `RNG.Next` method will be called. Default is `getRandomSeed()`.
11
+ * `RNG.Next` method will be called. Default is `getRandomSeed()`.
12
12
  * @param options Optional. Set to true to make the collectible a "There's Options" style
13
- * collectible. Default is false.
13
+ * collectible. Default is false.
14
14
  * @param forceFreeItem Optional. Set to true to disable the logic that gives the item a price for
15
- * Tainted Keeper. Default is false.
15
+ * Tainted Keeper. Default is false.
16
16
  */
17
- export declare function spawnCollectible(collectibleType: CollectibleType | int, position: Vector, seedOrRNG?: Seed | RNG, options?: boolean, forceFreeItem?: boolean): EntityPickup;
17
+ export declare function spawnCollectible(collectibleType: CollectibleType, position: Vector, seedOrRNG?: Seed | RNG, options?: boolean, forceFreeItem?: boolean): EntityPickup;
18
18
  /**
19
19
  * Helper function to spawn an empty collectible. Doing this is tricky since spawning a collectible
20
20
  * with `CollectibleType.NULL` will result in spawning a collectible with a random type from the
@@ -25,6 +25,6 @@ export declare function spawnCollectible(collectibleType: CollectibleType | int,
25
25
  *
26
26
  * @param position The position to spawn the empty collectible at.
27
27
  * @param seedOrRNG The `Seed` or `RNG` object to use. If an `RNG` object is provided, the
28
- * `RNG.Next` method will be called. Default is `getRandomSeed()`.
28
+ * `RNG.Next` method will be called. Default is `getRandomSeed()`.
29
29
  */
30
30
  export declare function spawnEmptyCollectible(position: Vector, seedOrRNG?: Seed | RNG): EntityPickup;
@@ -9,7 +9,7 @@ import { CollectibleType, PlayerForm } from "isaac-typescript-definitions";
9
9
  * const guppyCollectibleTypes = getCollectibleTypesForTransformation(PlayerForm.GUPPY);
10
10
  * ```
11
11
  */
12
- export declare function getCollectibleTypesForTransformation(playerForm: PlayerForm): Set<CollectibleType | int>;
12
+ export declare function getCollectibleTypesForTransformation(playerForm: PlayerForm): Set<CollectibleType>;
13
13
  /** Returns the number of items that a player has towards a particular transformation. */
14
14
  export declare function getPlayerNumCollectiblesForTransformation(player: EntityPlayer, playerForm: PlayerForm): int;
15
15
  /** Returns a set of the player's current transformations. */
@@ -17,13 +17,14 @@ export declare function getPlayerTransformations(player: EntityPlayer): Set<Play
17
17
  /**
18
18
  * Helper function to get a transformation name from a PlayerForm enum.
19
19
  *
20
- * Example:
20
+ * For example:
21
+ *
21
22
  * ```ts
22
23
  * const transformationName = getTransformationName(PlayerForm.LORD_OF_THE_FLIES);
23
24
  * // transformationName is "Beelzebub"
24
25
  * ```
25
26
  */
26
27
  export declare function getTransformationName(playerForm: PlayerForm): string;
27
- export declare function getTransformationsForCollectibleType(collectibleType: CollectibleType | int): Set<PlayerForm>;
28
+ export declare function getTransformationsForCollectibleType(collectibleType: CollectibleType): Set<PlayerForm>;
28
29
  export declare function hasFlyingTransformation(player: EntityPlayer): boolean;
29
30
  export declare function isTransformationFlying(playerForm: PlayerForm): boolean;
@@ -3,8 +3,8 @@ import { CacheFlag, TrinketType } from "isaac-typescript-definitions";
3
3
  * Returns a map containing every trinket type that the player has that matches the provided
4
4
  * CacheFlag. The values of the map correspond to the multiplier for that trinket.
5
5
  */
6
- export declare function getPlayerTrinketsForCacheFlag(player: EntityPlayer, cacheFlag: CacheFlag): Map<TrinketType | int, int>;
6
+ export declare function getPlayerTrinketsForCacheFlag(player: EntityPlayer, cacheFlag: CacheFlag): Map<TrinketType, int>;
7
7
  /**
8
8
  * Returns a set containing every trinket type with the given cache flag, including modded trinkets.
9
9
  */
10
- export declare function getTrinketsForCacheFlag(cacheFlag: CacheFlag): Set<TrinketType | int>;
10
+ export declare function getTrinketsForCacheFlag(cacheFlag: CacheFlag): Set<TrinketType>;
@@ -14,9 +14,9 @@ export declare function giveTrinketsBack(player: EntityPlayer, trinketSituation:
14
14
  * @param player The player to smelt the trinkets to.
15
15
  * @param trinketType The trinket type to smelt.
16
16
  * @param numTrinkets Optional. If specified, will smelt the given number of trinkets. Use this to
17
- * avoid calling this function multiple times. Default is 1.
17
+ * avoid calling this function multiple times. Default is 1.
18
18
  */
19
- export declare function smeltTrinket(player: EntityPlayer, trinketType: TrinketType | int, numTrinkets?: number): void;
19
+ export declare function smeltTrinket(player: EntityPlayer, trinketType: TrinketType, numTrinkets?: number): void;
20
20
  /**
21
21
  * Helper function to temporarily remove a specific kind of trinket from the player. Use this in
22
22
  * combination with the `giveTrinketsBack` function to take away and give back a trinket on the same
@@ -27,7 +27,7 @@ export declare function smeltTrinket(player: EntityPlayer, trinketType: TrinketT
27
27
  *
28
28
  * @returns Undefined if the player does not have the trinket, or TrinketSituation if they do.
29
29
  */
30
- export declare function temporarilyRemoveTrinket(player: EntityPlayer, trinketType: TrinketType | int): TrinketSituation | undefined;
30
+ export declare function temporarilyRemoveTrinket(player: EntityPlayer, trinketType: TrinketType): TrinketSituation | undefined;
31
31
  /**
32
32
  * Helper function to temporarily removes a player's held trinkets, if any. This will not remove any
33
33
  * smelted trinkets. Use this in combination with the `giveTrinketsBack` function to take away and
@@ -1,3 +1,3 @@
1
1
  import { TrinketType } from "isaac-typescript-definitions";
2
2
  /** Returns a set containing every valid trinket type in the game, including modded items. */
3
- export declare function getTrinketSet(): Set<TrinketType | int>;
3
+ export declare function getTrinketSet(): Set<TrinketType>;
@@ -5,11 +5,12 @@ import { CacheFlag, TrinketType } from "isaac-typescript-definitions";
5
5
  * For example, passing `TrinketType.SWALLOWED_PENNY` would result in 32769, which is the value that
6
6
  * corresponds to the golden trinket sub-type for Swallowed Penny.
7
7
  */
8
- export declare function getGoldenTrinketType(trinketType: TrinketType | int): TrinketType | int;
8
+ export declare function getGoldenTrinketType(trinketType: TrinketType): TrinketType;
9
9
  /**
10
10
  * Returns the slot number corresponding to where a trinket can be safely inserted.
11
11
  *
12
- * Example:
12
+ * For example:
13
+ *
13
14
  * ```ts
14
15
  * const player = Isaac.GetPlayer();
15
16
  * const trinketSlot = getOpenTrinketSlotNum(player);
@@ -24,18 +25,19 @@ export declare function getOpenTrinketSlot(player: EntityPlayer): int | undefine
24
25
  * Helper function to get the in-game description for a trinket. Returns "Unknown" if the provided
25
26
  * trinket type was not valid.
26
27
  */
27
- export declare function getTrinketDescription(trinketType: TrinketType | int): string;
28
+ export declare function getTrinketDescription(trinketType: TrinketType): string;
28
29
  /**
29
30
  * Helper function to get the name of a trinket. Returns "Unknown" if the provided trinket type is
30
31
  * not valid.
31
32
  *
32
- * Example:
33
+ * For example:
34
+ *
33
35
  * ```ts
34
36
  * const trinketType = TrinketType.SWALLOWED_PENNY;
35
37
  * const trinketName = getTrinketName(trinketType); // trinketName is "Swallowed Penny"
36
38
  * ```
37
39
  */
38
- export declare function getTrinketName(trinketType: TrinketType | int): string;
40
+ export declare function getTrinketName(trinketType: TrinketType): string;
39
41
  /**
40
42
  * Returns whether or not the player can hold an additional trinket, beyond what they are currently
41
43
  * carrying. This takes into account items that modify the max number of trinkets, like Mom's Purse.
@@ -44,7 +46,7 @@ export declare function getTrinketName(trinketType: TrinketType | int): string;
44
46
  * items. (Only Tainted Forgotten can pick up items.)
45
47
  */
46
48
  export declare function hasOpenTrinketSlot(player: EntityPlayer): boolean;
47
- export declare function isGoldenTrinket(trinketType: TrinketType | int): boolean;
49
+ export declare function isGoldenTrinket(trinketType: TrinketType): boolean;
48
50
  /**
49
51
  * Helper function to change the sprite of a trinket entity.
50
52
  *
@@ -53,8 +55,9 @@ export declare function isGoldenTrinket(trinketType: TrinketType | int): boolean
53
55
  *
54
56
  * @param trinket The trinket whose sprite you want to modify.
55
57
  * @param pngPath Equal to either the spritesheet path to load (e.g.
56
- * "gfx/items/collectibles/collectibles_001_thesadonion.png") or undefined. If undefined, the sprite
57
- * will be removed, making it appear like the collectible has already been taken by the player.
58
+ * "gfx/items/collectibles/collectibles_001_thesadonion.png") or undefined. If
59
+ * undefined, the sprite will be removed, making it appear like the collectible has
60
+ * already been taken by the player.
58
61
  */
59
62
  export declare function setTrinketSprite(trinket: EntityPickup, pngPath: string | undefined): void;
60
- export declare function trinketHasCacheFlag(trinketType: TrinketType | int, cacheFlag: CacheFlag): boolean;
63
+ export declare function trinketHasCacheFlag(trinketType: TrinketType, cacheFlag: CacheFlag): boolean;
@@ -44,7 +44,7 @@ function ____exports.getTrinketDescription(self, trinketType)
44
44
  if trinketDescription ~= nil then
45
45
  return trinketDescription
46
46
  end
47
- local itemConfigItem = itemConfig:GetCollectible(trinketType)
47
+ local itemConfigItem = itemConfig:GetTrinket(trinketType)
48
48
  if itemConfigItem ~= nil then
49
49
  return itemConfigItem.Description
50
50
  end
@@ -55,7 +55,7 @@ function ____exports.getTrinketName(self, trinketType)
55
55
  if trinketName ~= nil then
56
56
  return trinketName
57
57
  end
58
- local itemConfigItem = itemConfig:GetCollectible(trinketType)
58
+ local itemConfigItem = itemConfig:GetTrinket(trinketType)
59
59
  if itemConfigItem ~= nil then
60
60
  return itemConfigItem.Name
61
61
  end
@@ -6,8 +6,8 @@
6
6
  * offset setting so that mods can render UI elements to the screen in the correct position.
7
7
  *
8
8
  * @returns If the user does not have Mod Config Menu enabled, or does not have this option set,
9
- * then this function will return `Vector.Zero.` Otherwise, it will return a Vector that represents
10
- * a HUD offset that should be added to the position of a UI element.
9
+ * then this function will return `Vector.Zero.` Otherwise, it will return a Vector that
10
+ * represents a HUD offset that should be added to the position of a UI element.
11
11
  */
12
12
  export declare function getHUDOffsetVector(): Vector;
13
13
  /**
@@ -4,7 +4,8 @@
4
4
  *
5
5
  * Very useful to be future-safe against people adding values to a type or an enum.
6
6
  *
7
- * Example:
7
+ * For example:
8
+ *
8
9
  * ```ts
9
10
  * enum Situation {
10
11
  * ONE,
@@ -80,7 +81,8 @@ export declare function printEnabled(enabled: boolean, description: string): voi
80
81
  /**
81
82
  * Helper function to repeat code N times. This is faster to type and cleaner than using a for loop.
82
83
  *
83
- * Example:
84
+ * For example:
85
+ *
84
86
  * ```ts
85
87
  * const player = Isaac.GetPlayer();
86
88
  * repeat(10, () => {
@@ -13,7 +13,7 @@ interface CopyVectorReturn {
13
13
  * Helper function to copy a `Vector` object.
14
14
  *
15
15
  * @param vector The vector to copy. In the case of deserialization, this will actually be a Lua
16
- * table instead of an instantiated Vector class.
16
+ * table instead of an instantiated Vector class.
17
17
  * @param serializationType Default is `SerializationType.NONE`.
18
18
  */
19
19
  export declare function copyVector<V extends Vector | SerializedVector, S extends SerializationType>(vector: V, serializationType: S): CopyVectorReturn[S];
package/dist/index.d.ts CHANGED
@@ -62,6 +62,7 @@ export * from "./functions/jsonHelpers";
62
62
  export * from "./functions/jsonRoom";
63
63
  export * from "./functions/kColor";
64
64
  export * from "./functions/language";
65
+ export * from "./functions/level";
65
66
  export * from "./functions/log";
66
67
  export * from "./functions/map";
67
68
  export * from "./functions/math";
package/dist/index.lua CHANGED
@@ -509,6 +509,14 @@ do
509
509
  end
510
510
  end
511
511
  end
512
+ do
513
+ local ____export = require("functions.level")
514
+ for ____exportKey, ____exportValue in pairs(____export) do
515
+ if ____exportKey ~= "default" then
516
+ ____exports[____exportKey] = ____exportValue
517
+ end
518
+ end
519
+ end
512
520
  do
513
521
  local ____export = require("functions.log")
514
522
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -1,4 +1,4 @@
1
1
  import { DoorSlot, RoomShape } from "isaac-typescript-definitions";
2
2
  export declare const ROOM_SHAPE_TO_DOOR_SLOTS: {
3
- readonly [key in RoomShape]: ReadonlySet<DoorSlot> | undefined;
3
+ readonly [key in RoomShape]: ReadonlySet<DoorSlot>;
4
4
  };
@@ -6,11 +6,11 @@ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitio
6
6
  local DoorSlot = ____isaac_2Dtypescript_2Ddefinitions.DoorSlot
7
7
  local RoomShape = ____isaac_2Dtypescript_2Ddefinitions.RoomShape
8
8
  local ____constants = require("constants")
9
- local LEVEL_GRID_ROW_LENGTH = ____constants.LEVEL_GRID_ROW_LENGTH
9
+ local LEVEL_GRID_ROW_WIDTH = ____constants.LEVEL_GRID_ROW_WIDTH
10
10
  local LEFT = -1
11
- local UP = -LEVEL_GRID_ROW_LENGTH
11
+ local UP = -LEVEL_GRID_ROW_WIDTH
12
12
  local RIGHT = 1
13
- local DOWN = LEVEL_GRID_ROW_LENGTH
13
+ local DOWN = LEVEL_GRID_ROW_WIDTH
14
14
  ____exports.ROOM_SHAPE_TO_DOOR_SLOTS_TO_GRID_INDEX_DELTA = {
15
15
  [RoomShape.SHAPE_1x1] = __TS__New(Map, {{DoorSlot.LEFT_0, LEFT}, {DoorSlot.UP_0, UP}, {DoorSlot.RIGHT_0, RIGHT}, {DoorSlot.DOWN_0, DOWN}}),
16
16
  [RoomShape.IH] = __TS__New(Map, {{DoorSlot.LEFT_0, LEFT}, {DoorSlot.RIGHT_0, RIGHT}}),
@@ -0,0 +1,2 @@
1
+ import { MinesRoomSubType } from "isaac-typescript-definitions";
2
+ export declare const MINE_SHAFT_ROOM_SUB_TYPE_SET: ReadonlySet<MinesRoomSubType>;
@@ -0,0 +1,14 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
+ local MinesRoomSubType = ____isaac_2Dtypescript_2Ddefinitions.MinesRoomSubType
7
+ ____exports.MINE_SHAFT_ROOM_SUB_TYPE_SET = __TS__New(Set, {
8
+ MinesRoomSubType.MINESHAFT_ENTRANCE,
9
+ MinesRoomSubType.MINESHAFT_LOBBY,
10
+ MinesRoomSubType.MINESHAFT_KNIFE_PIECE,
11
+ MinesRoomSubType.MINESHAFT_ROOM_PRE_CHASE,
12
+ MinesRoomSubType.MINESHAFT_ROOM_POST_CHASE
13
+ })
14
+ return ____exports
@@ -3,7 +3,8 @@
3
3
  * [[`getCollectibleIndex`]] function. Mods can signify that data structures handle collectibles by
4
4
  * using this type.
5
5
  *
6
- * Example:
6
+ * For example:
7
+ *
7
8
  * ```ts
8
9
  * const collectiblesNameMap = new Map<CollectibleIndex, string>();
9
10
  * ```
@@ -3,7 +3,7 @@ export interface PickingUpItem {
3
3
  /** Needed so that we can distinguish between picking up a collectible and a trinket. */
4
4
  itemType: ItemType;
5
5
  /** Equal to either the collectible type or the trinket type. */
6
- subType: CollectibleType | TrinketType | int;
6
+ subType: CollectibleType | TrinketType;
7
7
  }
8
8
  export declare function newPickingUpItem(): PickingUpItem;
9
9
  export declare function resetPickingUpItem(pickingUpItem: PickingUpItem): void;
@@ -3,7 +3,8 @@
3
3
  * PlayerIndex is a specific type of string; see the documentation for the [[`getPlayerIndex`]]
4
4
  * function. Mods can signify that data structures handle `EntityPlayer` by using this type.
5
5
  *
6
- * Example:
6
+ * For example:
7
+ *
7
8
  * ```ts
8
9
  * const playersNameMap = new Map<PlayerIndex, string>();
9
10
  * ```
@@ -1,7 +1,7 @@
1
1
  import { TrinketType } from "isaac-typescript-definitions";
2
2
  export interface TrinketSituation {
3
- trinketTypeRemoved: TrinketType | int;
4
- trinketType1: TrinketType | int;
5
- trinketType2: TrinketType | int;
3
+ trinketTypeRemoved: TrinketType;
4
+ trinketType1: TrinketType;
5
+ trinketType2: TrinketType;
6
6
  numSmeltedTrinkets: int;
7
7
  }
@@ -3,7 +3,8 @@ import { ModUpgraded } from "./classes/ModUpgraded";
3
3
  /**
4
4
  * Use this function to enable the custom features and callbacks provided by `isaacscript-common`.
5
5
  *
6
- * Example:
6
+ * For example:
7
+ *
7
8
  * ```ts
8
9
  * const modVanilla = RegisterMod("My Mod", 1);
9
10
  * const mod = upgradeMod(modVanilla);
@@ -15,9 +16,6 @@ import { ModUpgraded } from "./classes/ModUpgraded";
15
16
  * mod.AddCallbackCustom(ModCallbackCustom.POST_ITEM_PICKUP, postItemPickup);
16
17
  * ```
17
18
  *
18
- * For a list of all custom callbacks, check out the
19
- * [Function Signatures](https://isaacscript.github.io/docs/function-signatures#custom-callbacks).
20
- *
21
19
  * @param modVanilla The mod object returned by the `RegisterMod` function.
22
20
  * @returns The upgraded mod object.
23
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "2.0.11",
3
+ "version": "2.0.14",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,12 +25,13 @@
25
25
  "dist/**/*.d.ts"
26
26
  ],
27
27
  "dependencies": {
28
- "isaac-typescript-definitions": "^2.0.14"
28
+ "isaac-typescript-definitions": "^2.0.19"
29
29
  },
30
30
  "devDependencies": {
31
- "isaacscript-lint": "^1.0.145",
31
+ "isaacscript-lint": "^1.0.150",
32
32
  "isaacscript-spell": "^1.0.3",
33
33
  "isaacscript-tsconfig": "^1.1.16",
34
+ "npm-check-updates": "^13.0.1",
34
35
  "ts-node": "^10.7.0",
35
36
  "typedoc": "^0.22.15",
36
37
  "typescript": "^4.6.4",