isaacscript-common 1.2.193 → 1.2.196

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 (58) hide show
  1. package/dist/callbacks/customRevive.lua +3 -3
  2. package/dist/callbacks/postEsauJr.lua +2 -2
  3. package/dist/callbacks/postPlayerChangeHealth.lua +2 -2
  4. package/dist/callbacks/postPlayerFatalDamage.lua +2 -2
  5. package/dist/callbacks/postPlayerReordered.lua +3 -3
  6. package/dist/callbacks/preBerserkDeath.lua +2 -1
  7. package/dist/constants.d.ts +2 -38
  8. package/dist/constants.lua +3 -103
  9. package/dist/features/extraConsoleCommands/commands.lua +5 -3
  10. package/dist/features/playerInventory.lua +3 -3
  11. package/dist/functions/character.d.ts +46 -0
  12. package/dist/functions/character.lua +64 -0
  13. package/dist/functions/charge.lua +2 -2
  14. package/dist/functions/collectibles.lua +7 -6
  15. package/dist/functions/entity.lua +3 -3
  16. package/dist/functions/familiars.lua +3 -3
  17. package/dist/functions/flying.lua +1 -1
  18. package/dist/functions/pickups.d.ts +5 -0
  19. package/dist/functions/pickups.lua +33 -2
  20. package/dist/functions/player.d.ts +23 -127
  21. package/dist/functions/player.lua +86 -247
  22. package/dist/functions/playerDataStructures.lua +2 -2
  23. package/dist/functions/playerHealth.lua +7 -7
  24. package/dist/functions/playerIndex.d.ts +67 -0
  25. package/dist/functions/playerIndex.lua +125 -0
  26. package/dist/functions/pocketItems.d.ts +5 -0
  27. package/dist/functions/pocketItems.lua +5 -0
  28. package/dist/functions/positionVelocity.lua +2 -1
  29. package/dist/functions/revive.lua +6 -4
  30. package/dist/functions/utils.d.ts +2 -1
  31. package/dist/functions/utils.lua +5 -0
  32. package/dist/index.d.ts +3 -1
  33. package/dist/index.lua +17 -1
  34. package/dist/objects/colors.d.ts +17 -0
  35. package/dist/objects/colors.lua +13 -0
  36. package/dist/sets/charactersThatStartWithAnActiveItemSet.d.ts +2 -0
  37. package/dist/sets/charactersThatStartWithAnActiveItemSet.lua +18 -0
  38. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts +2 -0
  39. package/dist/sets/charactersWithBlackHeartFromEternalHeartSet.lua +6 -0
  40. package/dist/sets/charactersWithFreeDevilDealsSet.d.ts +2 -0
  41. package/dist/sets/charactersWithFreeDevilDealsSet.lua +6 -0
  42. package/dist/sets/charactersWithNoRedHeartsSet.d.ts +6 -0
  43. package/dist/sets/charactersWithNoRedHeartsSet.lua +15 -0
  44. package/dist/sets/charactersWithNoSoulHeartsSet.d.ts +6 -0
  45. package/dist/sets/charactersWithNoSoulHeartsSet.lua +12 -0
  46. package/dist/sets/chestPickupVariantsSet.d.ts +2 -0
  47. package/dist/sets/chestPickupVariantsSet.lua +19 -0
  48. package/dist/sets/familiarsThatShootPlayerTearsSet.d.ts +2 -0
  49. package/dist/sets/familiarsThatShootPlayerTearsSet.lua +15 -0
  50. package/dist/sets/lostStyleCharactersSet.d.ts +6 -0
  51. package/dist/sets/lostStyleCharactersSet.lua +12 -0
  52. package/dist/sets/redHeartSubTypesSet.d.ts +2 -0
  53. package/dist/sets/redHeartSubTypesSet.lua +6 -0
  54. package/dist/sets/singleUseActiveCollectibleTypesSet.d.ts +2 -0
  55. package/dist/sets/singleUseActiveCollectibleTypesSet.lua +15 -0
  56. package/dist/sets/storyBossesSet.d.ts +2 -0
  57. package/dist/sets/storyBossesSet.lua +20 -0
  58. package/package.json +2 -2
@@ -0,0 +1,125 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local __TS__ArrayPush = ____lualib.__TS__ArrayPush
5
+ local __TS__ArrayFind = ____lualib.__TS__ArrayFind
6
+ local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
7
+ local ____exports = {}
8
+ local getPlayerIndexCollectibleType, DEFAULT_COLLECTIBLE_TYPE, EXCLUDED_CHARACTERS
9
+ local ____cachedClasses = require("cachedClasses")
10
+ local game = ____cachedClasses.game
11
+ function ____exports.getAllPlayers(self)
12
+ local numPlayers = game:GetNumPlayers()
13
+ local players = {}
14
+ do
15
+ local i = 0
16
+ while i < numPlayers do
17
+ local player = Isaac.GetPlayer(i)
18
+ __TS__ArrayPush(players, player)
19
+ i = i + 1
20
+ end
21
+ end
22
+ return players
23
+ end
24
+ function ____exports.getPlayerIndex(self, player, differentiateForgottenAndSoul)
25
+ if differentiateForgottenAndSoul == nil then
26
+ differentiateForgottenAndSoul = false
27
+ end
28
+ local playerToUse = player
29
+ local isSubPlayer = player:IsSubPlayer()
30
+ if isSubPlayer then
31
+ local playerParent = ____exports.getSubPlayerParent(nil, player)
32
+ if playerParent ~= nil then
33
+ playerToUse = playerParent
34
+ end
35
+ end
36
+ local collectibleType = getPlayerIndexCollectibleType(nil, player, differentiateForgottenAndSoul)
37
+ local collectibleRNG = playerToUse:GetCollectibleRNG(collectibleType)
38
+ local seed = collectibleRNG:GetSeed()
39
+ return seed
40
+ end
41
+ function getPlayerIndexCollectibleType(self, player, differentiateForgottenAndSoul)
42
+ local character = player:GetPlayerType()
43
+ repeat
44
+ local ____switch10 = character
45
+ local ____cond10 = ____switch10 == PlayerType.PLAYER_THESOUL
46
+ if ____cond10 then
47
+ do
48
+ return differentiateForgottenAndSoul and CollectibleType.COLLECTIBLE_SPOON_BENDER or DEFAULT_COLLECTIBLE_TYPE
49
+ end
50
+ end
51
+ ____cond10 = ____cond10 or ____switch10 == PlayerType.PLAYER_LAZARUS2_B
52
+ if ____cond10 then
53
+ do
54
+ return CollectibleType.COLLECTIBLE_INNER_EYE
55
+ end
56
+ end
57
+ do
58
+ do
59
+ return DEFAULT_COLLECTIBLE_TYPE
60
+ end
61
+ end
62
+ until true
63
+ end
64
+ function ____exports.getPlayers(self, performCharacterExclusions)
65
+ if performCharacterExclusions == nil then
66
+ performCharacterExclusions = false
67
+ end
68
+ local players = ____exports.getAllPlayers(nil)
69
+ local nonChildPlayers = __TS__ArrayFilter(
70
+ players,
71
+ function(____, player) return not ____exports.isChildPlayer(nil, player) end
72
+ )
73
+ local nonChildPlayersFiltered = __TS__ArrayFilter(
74
+ nonChildPlayers,
75
+ function(____, player)
76
+ local character = player:GetPlayerType()
77
+ return not EXCLUDED_CHARACTERS:has(character)
78
+ end
79
+ )
80
+ return performCharacterExclusions and nonChildPlayersFiltered or nonChildPlayers
81
+ end
82
+ function ____exports.getSubPlayerParent(self, subPlayer)
83
+ local subPlayerPtrHash = GetPtrHash(subPlayer)
84
+ local players = ____exports.getPlayers(nil)
85
+ return __TS__ArrayFind(
86
+ players,
87
+ function(____, player)
88
+ local thisPlayerSubPlayer = player:GetSubPlayer()
89
+ if thisPlayerSubPlayer == nil then
90
+ return false
91
+ end
92
+ local thisPlayerSubPlayerPtrHash = GetPtrHash(thisPlayerSubPlayer)
93
+ return thisPlayerSubPlayerPtrHash == subPlayerPtrHash
94
+ end
95
+ )
96
+ end
97
+ function ____exports.isChildPlayer(self, player)
98
+ return player.Parent ~= nil
99
+ end
100
+ DEFAULT_COLLECTIBLE_TYPE = CollectibleType.COLLECTIBLE_SAD_ONION
101
+ EXCLUDED_CHARACTERS = __TS__New(Set, {PlayerType.PLAYER_ESAU, PlayerType.PLAYER_THESOUL_B})
102
+ function ____exports.getPlayerFromIndex(self, playerIndex)
103
+ local players = ____exports.getPlayers(nil)
104
+ return __TS__ArrayFind(
105
+ players,
106
+ function(____, player) return ____exports.getPlayerIndex(nil, player) == playerIndex end
107
+ )
108
+ end
109
+ function ____exports.getPlayerIndexVanilla(self, playerToFind)
110
+ local numPlayers = game:GetNumPlayers()
111
+ local playerToFindHash = GetPtrHash(playerToFind)
112
+ do
113
+ local i = 0
114
+ while i < numPlayers do
115
+ local player = Isaac.GetPlayer(i)
116
+ local playerHash = GetPtrHash(player)
117
+ if playerHash == playerToFindHash then
118
+ return i
119
+ end
120
+ i = i + 1
121
+ end
122
+ end
123
+ return nil
124
+ end
125
+ return ____exports
@@ -21,3 +21,8 @@ export declare function getPocketItems(player: EntityPlayer): PocketItemDescript
21
21
  * items. (Only Tainted Forgotten can pick up items.)
22
22
  */
23
23
  export declare function hasOpenPocketItemSlot(player: EntityPlayer): boolean;
24
+ /**
25
+ * Helper function to determine whether or not the player's "active" pocket item slot is set to
26
+ * their pocket active item.
27
+ */
28
+ export declare function isFirstSlotPocketActiveItem(player: EntityPlayer): boolean;
@@ -60,4 +60,9 @@ function ____exports.hasOpenPocketItemSlot(self, player)
60
60
  function(____, pocketItem) return pocketItem.type == PocketItemType.EMPTY end
61
61
  )
62
62
  end
63
+ function ____exports.isFirstSlotPocketActiveItem(self, player)
64
+ local pocketItems = ____exports.getPocketItems(nil, player)
65
+ local firstPocketItem = pocketItems[1]
66
+ return firstPocketItem.type == PocketItemType.ACTIVE_ITEM
67
+ end
63
68
  return ____exports
@@ -13,7 +13,8 @@ local ____entitySpecific = require("functions.entitySpecific")
13
13
  local getEffects = ____entitySpecific.getEffects
14
14
  local ____player = require("functions.player")
15
15
  local getPlayerCloserThan = ____player.getPlayerCloserThan
16
- local getPlayers = ____player.getPlayers
16
+ local ____playerIndex = require("functions.playerIndex")
17
+ local getPlayers = ____playerIndex.getPlayers
17
18
  local MAX_FIND_FREE_POSITION_ATTEMPTS = 100
18
19
  function ____exports.anyEntityCloserThan(self, entities, position, distance)
19
20
  return __TS__ArraySome(
@@ -2,8 +2,9 @@
2
2
  local ____exports = {}
3
3
  local ____cachedClasses = require("cachedClasses")
4
4
  local game = ____cachedClasses.game
5
+ local ____character = require("functions.character")
6
+ local getCharacterDeathAnimationName = ____character.getCharacterDeathAnimationName
5
7
  local ____player = require("functions.player")
6
- local getDeathAnimationName = ____player.getDeathAnimationName
7
8
  local getPlayerMaxHeartContainers = ____player.getPlayerMaxHeartContainers
8
9
  local getPlayerNumHitsRemaining = ____player.getPlayerNumHitsRemaining
9
10
  local hasLostCurse = ____player.hasLostCurse
@@ -28,8 +29,8 @@ function ____exports.willReviveFromSpiritShackles(self, player)
28
29
  return false
29
30
  end
30
31
  local effects = player:GetEffects()
31
- local spiritShacklesEnabled = not effects:HasNullEffect(NullItemID.ID_SPIRIT_SHACKLES_DISABLED)
32
- local playerInSoulForm = effects:HasNullEffect(NullItemID.ID_SPIRIT_SHACKLES_SOUL)
32
+ local spiritShacklesEnabled = not effects:HasNullEffect(102)
33
+ local playerInSoulForm = effects:HasNullEffect(101)
33
34
  return spiritShacklesEnabled and not playerInSoulForm
34
35
  end
35
36
  function ____exports.isDamageToPlayerFatal(self, player, damageAmount, damageSource, lastDamageGameFrame)
@@ -74,7 +75,8 @@ end
74
75
  function ____exports.willMysteriousPaperRevive(self, player)
75
76
  local gameFrameCount = game:GetFrameCount()
76
77
  local sprite = player:GetSprite()
77
- local animation = getDeathAnimationName(nil, player)
78
+ local character = player:GetPlayerType()
79
+ local animation = getCharacterDeathAnimationName(nil, character)
78
80
  local deathAnimationFrames = getFinalFrameOfAnimation(nil, sprite, animation)
79
81
  local frameOfDeath = gameFrameCount + deathAnimationFrames + 1
80
82
  return frameOfDeath % 4 == 3
@@ -1,5 +1,5 @@
1
- /// <reference types="typescript-to-lua/language-extensions" />
2
1
  /// <reference types="isaac-typescript-definitions" />
2
+ /// <reference types="typescript-to-lua/language-extensions" />
3
3
  /**
4
4
  * Helper function to get type safety on a switch statement.
5
5
  * Very useful to be future-safe against people adding values to a type or an enum.
@@ -36,6 +36,7 @@
36
36
  * ```
37
37
  */
38
38
  export declare const ensureAllCases: (obj: never) => never;
39
+ export declare function getDirectionName(direction: Direction): string | undefined;
39
40
  /**
40
41
  * TypeScriptToLua will transpile TypeScript enums to Lua tables that have a double mapping. Thus,
41
42
  * when you iterate over them, you will get both the names of the enums and the values of the enums,
@@ -4,8 +4,13 @@ local __TS__ArraySort = ____lualib.__TS__ArraySort
4
4
  local __TS__StringReplace = ____lualib.__TS__StringReplace
5
5
  local __TS__StringSubstr = ____lualib.__TS__StringSubstr
6
6
  local ____exports = {}
7
+ local ____directionNames = require("objects.directionNames")
8
+ local DIRECTION_NAMES = ____directionNames.DIRECTION_NAMES
7
9
  local HEX_STRING_LENGTH = 6
8
10
  ____exports.ensureAllCases = function(____, obj) return obj end
11
+ function ____exports.getDirectionName(self, direction)
12
+ return DIRECTION_NAMES[direction]
13
+ end
9
14
  function ____exports.getEnumKeys(self, transpiledEnum)
10
15
  local enumKeys = {}
11
16
  for key in pairs(transpiledEnum) do
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export * from "./functions/bitwise";
33
33
  export * from "./functions/cacheFlag";
34
34
  export * from "./functions/cards";
35
35
  export * from "./functions/challenges";
36
+ export * from "./functions/character";
36
37
  export * from "./functions/charge";
37
38
  export * from "./functions/collectibleCacheFlag";
38
39
  export * from "./functions/collectibles";
@@ -63,6 +64,7 @@ export * from "./functions/pills";
63
64
  export * from "./functions/player";
64
65
  export * from "./functions/playerDataStructures";
65
66
  export * from "./functions/playerHealth";
67
+ export * from "./functions/playerIndex";
66
68
  export * from "./functions/pocketItems";
67
69
  export * from "./functions/positionVelocity";
68
70
  export * from "./functions/random";
@@ -91,7 +93,7 @@ export * from "./maps/cardMap";
91
93
  export * from "./maps/characterMap";
92
94
  export * from "./maps/pillEffectMap";
93
95
  export * from "./maps/roomTypeMap";
94
- export * from "./objects/directionNames";
96
+ export * from "./objects/colors";
95
97
  export * from "./types/AddCallbackParametersCustom";
96
98
  export * from "./types/AnyEntity";
97
99
  export * from "./types/CollectibleIndex";
package/dist/index.lua CHANGED
@@ -273,6 +273,14 @@ do
273
273
  end
274
274
  end
275
275
  end
276
+ do
277
+ local ____export = require("functions.character")
278
+ for ____exportKey, ____exportValue in pairs(____export) do
279
+ if ____exportKey ~= "default" then
280
+ ____exports[____exportKey] = ____exportValue
281
+ end
282
+ end
283
+ end
276
284
  do
277
285
  local ____export = require("functions.charge")
278
286
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -504,6 +512,14 @@ do
504
512
  end
505
513
  end
506
514
  end
515
+ do
516
+ local ____export = require("functions.playerIndex")
517
+ for ____exportKey, ____exportValue in pairs(____export) do
518
+ if ____exportKey ~= "default" then
519
+ ____exports[____exportKey] = ____exportValue
520
+ end
521
+ end
522
+ end
507
523
  do
508
524
  local ____export = require("functions.pocketItems")
509
525
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -729,7 +745,7 @@ do
729
745
  end
730
746
  end
731
747
  do
732
- local ____export = require("objects.directionNames")
748
+ local ____export = require("objects.colors")
733
749
  for ____exportKey, ____exportValue in pairs(____export) do
734
750
  if ____exportKey ~= "default" then
735
751
  ____exports[____exportKey] = ____exportValue
@@ -0,0 +1,17 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /**
3
+ * A collection of common colors that can be reused.
4
+ *
5
+ * Note that if you want to further modify these colors, you should copy them first with the
6
+ * `copyColor` function.
7
+ */
8
+ export declare const COLORS: {
9
+ Black: Color;
10
+ Red: Color;
11
+ Green: Color;
12
+ Blue: Color;
13
+ Yellow: Color;
14
+ Pink: Color;
15
+ Cyan: Color;
16
+ White: Color;
17
+ };
@@ -0,0 +1,13 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ ____exports.COLORS = {
4
+ Black = Color(1, 1, 1),
5
+ Red = Color(1, 0, 0),
6
+ Green = Color(0, 1, 0),
7
+ Blue = Color(0, 0, 1),
8
+ Yellow = Color(1, 1, 0),
9
+ Pink = Color(1, 0, 1),
10
+ Cyan = Color(0, 1, 1),
11
+ White = Color(1, 1, 1)
12
+ }
13
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const CHARACTERS_THAT_START_WITH_AN_ACTIVE_ITEM_SET: ReadonlySet<PlayerType>;
@@ -0,0 +1,18 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.CHARACTERS_THAT_START_WITH_AN_ACTIVE_ITEM_SET = __TS__New(Set, {
6
+ PlayerType.PLAYER_ISAAC,
7
+ PlayerType.PLAYER_MAGDALENE,
8
+ PlayerType.PLAYER_JUDAS,
9
+ PlayerType.PLAYER_BLUEBABY,
10
+ PlayerType.PLAYER_EVE,
11
+ PlayerType.PLAYER_EDEN,
12
+ PlayerType.PLAYER_THELOST,
13
+ PlayerType.PLAYER_LILITH,
14
+ PlayerType.PLAYER_KEEPER,
15
+ PlayerType.PLAYER_APOLLYON,
16
+ PlayerType.PLAYER_EDEN_B
17
+ })
18
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const CHARACTERS_WITH_BLACK_HEART_FROM_ETERNAL_HEART_SET: ReadonlySet<PlayerType>;
@@ -0,0 +1,6 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.CHARACTERS_WITH_BLACK_HEART_FROM_ETERNAL_HEART_SET = __TS__New(Set, {PlayerType.PLAYER_BLACKJUDAS, PlayerType.PLAYER_JUDAS_B})
6
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const CHARACTERS_WITH_FREE_DEVIL_DEALS_SET: ReadonlySet<PlayerType>;
@@ -0,0 +1,6 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.CHARACTERS_WITH_FREE_DEVIL_DEALS_SET = __TS__New(Set, {PlayerType.PLAYER_THELOST, PlayerType.PLAYER_THELOST_B, PlayerType.PLAYER_JACOB2_B})
6
+ return ____exports
@@ -0,0 +1,6 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /**
3
+ * The set of characters where red heart containers will be turned into soul hearts (e.g. Blue
4
+ * Baby). This includes The Lost and Tainted Lost. This does not include Keeper or Tainted Keeper.
5
+ */
6
+ export declare const CHARACTERS_WITH_NO_RED_HEARTS_SET: ReadonlySet<PlayerType>;
@@ -0,0 +1,15 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.CHARACTERS_WITH_NO_RED_HEARTS_SET = __TS__New(Set, {
6
+ PlayerType.PLAYER_BLUEBABY,
7
+ PlayerType.PLAYER_THELOST,
8
+ PlayerType.PLAYER_BLACKJUDAS,
9
+ PlayerType.PLAYER_JUDAS_B,
10
+ PlayerType.PLAYER_BLUEBABY_B,
11
+ PlayerType.PLAYER_THELOST_B,
12
+ PlayerType.PLAYER_THEFORGOTTEN_B,
13
+ PlayerType.PLAYER_BETHANY_B
14
+ })
15
+ return ____exports
@@ -0,0 +1,6 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /**
3
+ * The set of characters where soul hearts will be automatically stripped away (e.g. Bethany). This
4
+ * includes The Lost and Tainted Lost.
5
+ */
6
+ export declare const CHARACTERS_WITH_NO_SOUL_HEARTS_SET: ReadonlySet<PlayerType>;
@@ -0,0 +1,12 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.CHARACTERS_WITH_NO_SOUL_HEARTS_SET = __TS__New(Set, {
6
+ PlayerType.PLAYER_THELOST,
7
+ PlayerType.PLAYER_KEEPER,
8
+ PlayerType.PLAYER_BETHANY,
9
+ PlayerType.PLAYER_THELOST_B,
10
+ PlayerType.PLAYER_KEEPER_B
11
+ })
12
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const CHEST_PICKUP_VARIANTS: ReadonlySet<PickupVariant>;
@@ -0,0 +1,19 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.CHEST_PICKUP_VARIANTS = __TS__New(Set, {
6
+ 50,
7
+ 51,
8
+ 52,
9
+ 53,
10
+ 54,
11
+ 55,
12
+ 56,
13
+ 57,
14
+ 58,
15
+ 60,
16
+ 360,
17
+ 390
18
+ })
19
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const FAMILIARS_THAT_SHOOT_PLAYER_TEARS_SET: ReadonlySet<FamiliarVariant>;
@@ -0,0 +1,15 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.FAMILIARS_THAT_SHOOT_PLAYER_TEARS_SET = __TS__New(Set, {
6
+ FamiliarVariant.SCISSORS,
7
+ FamiliarVariant.INCUBUS,
8
+ FamiliarVariant.FATES_REWARD,
9
+ FamiliarVariant.SPRINKLER,
10
+ FamiliarVariant.LOST_SOUL,
11
+ FamiliarVariant.TWISTED_BABY,
12
+ FamiliarVariant.BLOOD_BABY,
13
+ FamiliarVariant.DECAP_ATTACK
14
+ })
15
+ return ____exports
@@ -0,0 +1,6 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /**
3
+ * This is the set of characters that look like The Lost and play the "LostDeath" animation when
4
+ * they die.
5
+ */
6
+ export declare const LOST_STYLE_CHARACTERS_SET: ReadonlySet<PlayerType>;
@@ -0,0 +1,12 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.LOST_STYLE_CHARACTERS_SET = __TS__New(Set, {
6
+ PlayerType.PLAYER_THELOST,
7
+ PlayerType.PLAYER_THESOUL,
8
+ PlayerType.PLAYER_THELOST_B,
9
+ PlayerType.PLAYER_JACOB2_B,
10
+ PlayerType.PLAYER_THESOUL_B
11
+ })
12
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const RED_HEART_SUB_TYPES_SET: ReadonlySet<HeartSubType>;
@@ -0,0 +1,6 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.RED_HEART_SUB_TYPES_SET = __TS__New(Set, {HeartSubType.HEART_FULL, HeartSubType.HEART_HALF, HeartSubType.HEART_DOUBLEPACK})
6
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const SINGLE_USE_ACTIVE_COLLECTIBLE_TYPES_SET: ReadonlySet<CollectibleType>;
@@ -0,0 +1,15 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.SINGLE_USE_ACTIVE_COLLECTIBLE_TYPES_SET = __TS__New(Set, {
6
+ CollectibleType.COLLECTIBLE_FORGET_ME_NOW,
7
+ CollectibleType.COLLECTIBLE_EDENS_SOUL,
8
+ CollectibleType.COLLECTIBLE_ALABASTER_BOX,
9
+ CollectibleType.COLLECTIBLE_PLAN_C,
10
+ CollectibleType.COLLECTIBLE_MAMA_MEGA,
11
+ CollectibleType.COLLECTIBLE_SACRIFICIAL_ALTAR,
12
+ CollectibleType.COLLECTIBLE_DEATH_CERTIFICATE,
13
+ CollectibleType.COLLECTIBLE_R_KEY
14
+ })
15
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const STORY_BOSSES_SET: ReadonlySet<EntityType>;
@@ -0,0 +1,20 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ ____exports.STORY_BOSSES_SET = __TS__New(Set, {
6
+ EntityType.ENTITY_MOM,
7
+ EntityType.ENTITY_MOMS_HEART,
8
+ EntityType.ENTITY_SATAN,
9
+ EntityType.ENTITY_ISAAC,
10
+ EntityType.ENTITY_THE_LAMB,
11
+ EntityType.ENTITY_MEGA_SATAN,
12
+ EntityType.ENTITY_MEGA_SATAN_2,
13
+ EntityType.ENTITY_ULTRA_GREED,
14
+ EntityType.ENTITY_HUSH,
15
+ EntityType.ENTITY_DELIRIUM,
16
+ EntityType.ENTITY_MOTHER,
17
+ EntityType.ENTITY_DOGMA,
18
+ EntityType.ENTITY_BEAST
19
+ })
20
+ return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.193",
3
+ "version": "1.2.196",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,7 +25,7 @@
25
25
  "dist/**/*.d.ts"
26
26
  ],
27
27
  "devDependencies": {
28
- "isaac-typescript-definitions": "^1.0.373",
28
+ "isaac-typescript-definitions": "^1.0.376",
29
29
  "isaacscript-lint": "^1.0.93",
30
30
  "isaacscript-tsconfig": "^1.1.8",
31
31
  "typedoc": "^0.22.13",