isaacscript-common 16.1.7 → 17.0.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.
Files changed (36) hide show
  1. package/dist/index.d.ts +191 -49
  2. package/dist/isaacscript-common.lua +517 -508
  3. package/dist/src/classes/ModUpgradedBase.d.ts +3 -1
  4. package/dist/src/classes/ModUpgradedBase.d.ts.map +1 -1
  5. package/dist/src/classes/ModUpgradedBase.lua +16 -8
  6. package/dist/src/classes/features/other/ModdedElementSets.d.ts +172 -5
  7. package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  8. package/dist/src/classes/features/other/ModdedElementSets.lua +161 -5
  9. package/dist/src/classes/features/other/Pause.d.ts +1 -0
  10. package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
  11. package/dist/src/classes/features/other/Pause.lua +5 -1
  12. package/dist/src/core/constants.d.ts +3 -1
  13. package/dist/src/core/constants.d.ts.map +1 -1
  14. package/dist/src/core/constants.lua +6 -0
  15. package/dist/src/core/upgradeMod.d.ts.map +1 -1
  16. package/dist/src/core/upgradeMod.lua +7 -0
  17. package/dist/src/functions/cards.d.ts +7 -34
  18. package/dist/src/functions/cards.d.ts.map +1 -1
  19. package/dist/src/functions/cards.lua +20 -119
  20. package/dist/src/functions/globals.d.ts.map +1 -1
  21. package/dist/src/functions/globals.lua +0 -1
  22. package/dist/src/functions/positionVelocity.d.ts.map +1 -1
  23. package/dist/src/functions/positionVelocity.lua +5 -5
  24. package/package.json +2 -2
  25. package/src/classes/ModUpgradedBase.ts +24 -9
  26. package/src/classes/features/other/ModdedElementSets.ts +346 -5
  27. package/src/classes/features/other/Pause.ts +5 -0
  28. package/src/core/constants.ts +9 -0
  29. package/src/core/upgradeMod.ts +10 -0
  30. package/src/functions/cards.ts +20 -139
  31. package/src/functions/globals.ts +0 -1
  32. package/src/functions/positionVelocity.ts +1 -7
  33. package/dist/src/objects/cardTypeToItemConfigCardType.d.ts +0 -6
  34. package/dist/src/objects/cardTypeToItemConfigCardType.d.ts.map +0 -1
  35. package/dist/src/objects/cardTypeToItemConfigCardType.lua +0 -106
  36. package/src/objects/cardTypeToItemConfigCardType.ts +0 -106
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 16.1.7
3
+ isaacscript-common 17.0.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -7625,6 +7625,8 @@ ____exports.TearVariant.SPORE = 48
7625
7625
  ____exports.TearVariant[____exports.TearVariant.SPORE] = "SPORE"
7626
7626
  ____exports.TearVariant.TECH_SWORD_BEAM = 49
7627
7627
  ____exports.TearVariant[____exports.TearVariant.TECH_SWORD_BEAM] = "TECH_SWORD_BEAM"
7628
+ ____exports.TearVariant.FETUS = 50
7629
+ ____exports.TearVariant[____exports.TearVariant.FETUS] = "FETUS"
7628
7630
  --- For `EntityType.FAMILIAR` (3).
7629
7631
  ____exports.FamiliarVariant = {}
7630
7632
  ____exports.FamiliarVariant.FAMILIAR_NULL = 0
@@ -11620,7 +11622,7 @@ ____exports.ItemConfigCardType.SPECIAL_OBJECT = 4
11620
11622
  ____exports.ItemConfigCardType[____exports.ItemConfigCardType.SPECIAL_OBJECT] = "SPECIAL_OBJECT"
11621
11623
  ____exports.ItemConfigCardType.TAROT_REVERSE = 5
11622
11624
  ____exports.ItemConfigCardType[____exports.ItemConfigCardType.TAROT_REVERSE] = "TAROT_REVERSE"
11623
- ____exports.ItemConfigCardType.MODDED = 7
11625
+ ____exports.ItemConfigCardType.MODDED = 6
11624
11626
  ____exports.ItemConfigCardType[____exports.ItemConfigCardType.MODDED] = "MODDED"
11625
11627
  return ____exports
11626
11628
  end,
@@ -12277,6 +12279,8 @@ ____exports.ModCallback.PRE_ROOM_ENTITY_SPAWN = 71
12277
12279
  ____exports.ModCallback[____exports.ModCallback.PRE_ROOM_ENTITY_SPAWN] = "PRE_ROOM_ENTITY_SPAWN"
12278
12280
  ____exports.ModCallback.PRE_ENTITY_DEVOLVE = 72
12279
12281
  ____exports.ModCallback[____exports.ModCallback.PRE_ENTITY_DEVOLVE] = "PRE_ENTITY_DEVOLVE"
12282
+ ____exports.ModCallback.PRE_MOD_UNLOAD = 73
12283
+ ____exports.ModCallback[____exports.ModCallback.PRE_MOD_UNLOAD] = "PRE_MOD_UNLOAD"
12280
12284
  return ____exports
12281
12285
  end,
12282
12286
  ["lua_modules.isaac-typescript-definitions.dist.src.enums.Mouse"] = function(...)
@@ -16880,10 +16884,14 @@ ____exports.LAST_STAGE = getLastEnumValue(nil, LevelStage)
16880
16884
  return ____exports
16881
16885
  end,
16882
16886
  ["src.core.constants"] = function(...)
16887
+ local ____lualib = require("lualib_bundle")
16888
+ local Set = ____lualib.Set
16889
+ local __TS__New = ____lualib.__TS__New
16883
16890
  local ____exports = {}
16884
16891
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
16885
16892
  local Dimension = ____isaac_2Dtypescript_2Ddefinitions.Dimension
16886
16893
  local DisplayFlag = ____isaac_2Dtypescript_2Ddefinitions.DisplayFlag
16894
+ local ItemConfigCardType = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigCardType
16887
16895
  local ItemPoolType = ____isaac_2Dtypescript_2Ddefinitions.ItemPoolType
16888
16896
  local TrinketSlot = ____isaac_2Dtypescript_2Ddefinitions.TrinketSlot
16889
16897
  local ____enums = require("src.functions.enums")
@@ -16907,6 +16915,7 @@ ____exports.EGGY_STATE_FRAME_OF_FINAL_SPIDER = 45
16907
16915
  ____exports.EMPTY_PNG_PATH = "gfx/none.png"
16908
16916
  ____exports.FIRST_GLITCHED_COLLECTIBLE_TYPE = asCollectibleType(nil, (1 << 32) - 1)
16909
16917
  ____exports.GAME_FRAMES_PER_SECOND = 30
16918
+ ____exports.ITEM_CONFIG_CARD_TYPES_FOR_CARDS = __TS__New(Set, {ItemConfigCardType.TAROT, ItemConfigCardType.SUIT, ItemConfigCardType.SPECIAL, ItemConfigCardType.TAROT_REVERSE})
16910
16919
  ____exports.RENDER_FRAMES_PER_SECOND = 60
16911
16920
  ____exports.GRID_INDEX_CENTER_OF_1X1_ROOM = 67
16912
16921
  ____exports.LEVEL_GRID_COLUMN_HEIGHT = 13
@@ -24958,7 +24967,7 @@ function ____exports.findFreePosition(self, startingPosition, avoidActiveEntitie
24958
24967
  while initialStep < MAX_FIND_FREE_POSITION_ATTEMPTS do
24959
24968
  do
24960
24969
  local position = room:FindFreePickupSpawnPosition(startingPosition, initialStep, avoidActiveEntities)
24961
- local closePlayer = getPlayerCloserThan(nil, position, DISTANCE_OF_GRID_TILE * 1.5)
24970
+ local closePlayer = getPlayerCloserThan(nil, position, DISTANCE_OF_GRID_TILE)
24962
24971
  if closePlayer ~= nil then
24963
24972
  goto __continue7
24964
24973
  end
@@ -31869,6 +31878,309 @@ function ItemPickupDetection.prototype.queueNotEmpty(self, player, pickingUpItem
31869
31878
  self.preItemPickup:fire(player, pickingUpItem)
31870
31879
  end
31871
31880
  end
31881
+ return ____exports
31882
+ end,
31883
+ ["src.objects.cardDescriptions"] = function(...)
31884
+ local ____exports = {}
31885
+ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
31886
+ local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
31887
+ ____exports.DEFAULT_CARD_DESCRIPTION = "Unknown"
31888
+ ____exports.CARD_DESCRIPTIONS = {
31889
+ [CardType.NULL] = ____exports.DEFAULT_CARD_DESCRIPTION,
31890
+ [CardType.FOOL] = "Where journey begins",
31891
+ [CardType.MAGICIAN] = "May you never miss your goal",
31892
+ [CardType.HIGH_PRIESTESS] = "Mother is watching you",
31893
+ [CardType.EMPRESS] = "May your rage bring power",
31894
+ [CardType.EMPEROR] = "Challenge me!",
31895
+ [CardType.HIEROPHANT] = "Two prayers for the lost",
31896
+ [CardType.LOVERS] = "May you prosper and be in good health",
31897
+ [CardType.CHARIOT] = "May nothing stand before you",
31898
+ [CardType.JUSTICE] = "May your future become balanced",
31899
+ [CardType.HERMIT] = "May you see what life has to offer",
31900
+ [CardType.WHEEL_OF_FORTUNE] = "Spin the wheel of destiny",
31901
+ [CardType.STRENGTH] = "May your power bring rage",
31902
+ [CardType.HANGED_MAN] = "May you find enlightenment ",
31903
+ [CardType.DEATH] = "Lay waste to all that oppose you ",
31904
+ [CardType.TEMPERANCE] = "May you be pure in heart",
31905
+ [CardType.DEVIL] = "Revel in the power of darkness",
31906
+ [CardType.TOWER] = "Destruction brings creation",
31907
+ [CardType.STARS] = "May you find what you desire ",
31908
+ [CardType.MOON] = "May you find all you have lost",
31909
+ [CardType.SUN] = "May the light heal and enlighten you",
31910
+ [CardType.JUDGEMENT] = "Judge lest ye be judged",
31911
+ [CardType.WORLD] = "Open your eyes and see",
31912
+ [CardType.CLUBS_2] = "Item multiplier",
31913
+ [CardType.DIAMONDS_2] = "Item multiplier",
31914
+ [CardType.SPADES_2] = "Item multiplier",
31915
+ [CardType.HEARTS_2] = "Item multiplier",
31916
+ [CardType.ACE_OF_CLUBS] = "Convert all",
31917
+ [CardType.ACE_OF_DIAMONDS] = "Convert all",
31918
+ [CardType.ACE_OF_SPADES] = "Convert all",
31919
+ [CardType.ACE_OF_HEARTS] = "Convert all",
31920
+ [CardType.JOKER] = "???",
31921
+ [CardType.RUNE_HAGALAZ] = "Destruction",
31922
+ [CardType.RUNE_JERA] = "Abundance",
31923
+ [CardType.RUNE_EHWAZ] = "Passage",
31924
+ [CardType.RUNE_DAGAZ] = "Purity",
31925
+ [CardType.RUNE_ANSUZ] = "Vision",
31926
+ [CardType.RUNE_PERTHRO] = "Change",
31927
+ [CardType.RUNE_BERKANO] = "Companionship",
31928
+ [CardType.RUNE_ALGIZ] = "Resistance",
31929
+ [CardType.RUNE_BLANK] = "???",
31930
+ [CardType.RUNE_BLACK] = "Void",
31931
+ [CardType.CHAOS] = "???",
31932
+ [CardType.CREDIT] = "Charge it!",
31933
+ [CardType.RULES] = "???",
31934
+ [CardType.AGAINST_HUMANITY] = "Something stinks...",
31935
+ [CardType.SUICIDE_KING] = "A true ending?",
31936
+ [CardType.GET_OUT_OF_JAIL_FREE] = "Open Sesame",
31937
+ [CardType.QUESTION_MARK] = "Double active",
31938
+ [CardType.DICE_SHARD] = "D6 + D20",
31939
+ [CardType.EMERGENCY_CONTACT] = "Help from above",
31940
+ [CardType.HOLY] = "You feel protected",
31941
+ [CardType.HUGE_GROWTH] = "Become immense!",
31942
+ [CardType.ANCIENT_RECALL] = "Draw 3 cards",
31943
+ [CardType.ERA_WALK] = "Savor the moment",
31944
+ [CardType.RUNE_SHARD] = "It still glows faintly",
31945
+ [CardType.REVERSE_FOOL] = "Let go and move on",
31946
+ [CardType.REVERSE_MAGICIAN] = "May no harm come to you",
31947
+ [CardType.REVERSE_HIGH_PRIESTESS] = "Run",
31948
+ [CardType.REVERSE_EMPRESS] = "May your love bring protection",
31949
+ [CardType.REVERSE_EMPEROR] = "May you find a worthy opponent",
31950
+ [CardType.REVERSE_HIEROPHANT] = "Two prayers for the forgotten",
31951
+ [CardType.REVERSE_LOVERS] = "May your heart shatter into pieces",
31952
+ [CardType.REVERSE_CHARIOT] = "May nothing walk past you",
31953
+ [CardType.REVERSE_JUSTICE] = "May your sins come back to torment you",
31954
+ [CardType.REVERSE_HERMIT] = "May you see the value of all things in life",
31955
+ [CardType.REVERSE_WHEEL_OF_FORTUNE] = "Throw the dice of fate",
31956
+ [CardType.REVERSE_STRENGTH] = "May you break their resolve",
31957
+ [CardType.REVERSE_HANGED_MAN] = "May your greed know no bounds",
31958
+ [CardType.REVERSE_DEATH] = "May life spring forth from the fallen",
31959
+ [CardType.REVERSE_TEMPERANCE] = "May your hunger be satiated",
31960
+ [CardType.REVERSE_DEVIL] = "Bask in the light of your mercy",
31961
+ [CardType.REVERSE_TOWER] = "Creation brings destruction",
31962
+ [CardType.REVERSE_STARS] = "May your loss bring fortune",
31963
+ [CardType.REVERSE_MOON] = "May you remember lost memories",
31964
+ [CardType.REVERSE_SUN] = "May the darkness swallow all around you",
31965
+ [CardType.REVERSE_JUDGEMENT] = "May you redeem those found wanting",
31966
+ [CardType.REVERSE_WORLD] = "Step into the abyss",
31967
+ [CardType.CRACKED_KEY] = "???",
31968
+ [CardType.QUEEN_OF_HEARTS] = "<3",
31969
+ [CardType.WILD] = "Again",
31970
+ [CardType.SOUL_ISAAC] = "Reroll... or not",
31971
+ [CardType.SOUL_MAGDALENE] = "Give me your love!",
31972
+ [CardType.SOUL_CAIN] = "Opens the unopenable",
31973
+ [CardType.SOUL_JUDAS] = "Right behind you",
31974
+ [CardType.SOUL_BLUE_BABY] = "Chemical warfare",
31975
+ [CardType.SOUL_EVE] = "Your very own murder",
31976
+ [CardType.SOUL_SAMSON] = "Slay a thousand",
31977
+ [CardType.SOUL_AZAZEL] = "Demon rage!",
31978
+ [CardType.SOUL_LAZARUS] = "Life after death",
31979
+ [CardType.SOUL_EDEN] = "Embrace chaos",
31980
+ [CardType.SOUL_LOST] = "Leave your body behind",
31981
+ [CardType.SOUL_LILITH] = "Motherhood",
31982
+ [CardType.SOUL_KEEPER] = "$$$",
31983
+ [CardType.SOUL_APOLLYON] = "Bringer of calamity",
31984
+ [CardType.SOUL_FORGOTTEN] = "Skeletal protector",
31985
+ [CardType.SOUL_BETHANY] = "Friends from beyond",
31986
+ [CardType.SOUL_JACOB] = "Bound by blood"
31987
+ }
31988
+ return ____exports
31989
+ end,
31990
+ ["src.objects.cardNames"] = function(...)
31991
+ local ____exports = {}
31992
+ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
31993
+ local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
31994
+ ____exports.DEFAULT_CARD_NAME = "Unknown"
31995
+ ____exports.CARD_NAMES = {
31996
+ [CardType.NULL] = ____exports.DEFAULT_CARD_NAME,
31997
+ [CardType.FOOL] = "0 - The Fool",
31998
+ [CardType.MAGICIAN] = "I - The Magician",
31999
+ [CardType.HIGH_PRIESTESS] = "II - The High Priestess",
32000
+ [CardType.EMPRESS] = "III - The Empress",
32001
+ [CardType.EMPEROR] = "IV - The Emperor",
32002
+ [CardType.HIEROPHANT] = "V - The Hierophant",
32003
+ [CardType.LOVERS] = "VI - The Lovers",
32004
+ [CardType.CHARIOT] = "VII - The Chariot",
32005
+ [CardType.JUSTICE] = "VIII - Justice",
32006
+ [CardType.HERMIT] = "IX - The Hermit",
32007
+ [CardType.WHEEL_OF_FORTUNE] = "X - Wheel of Fortune",
32008
+ [CardType.STRENGTH] = "XI - Strength",
32009
+ [CardType.HANGED_MAN] = "XII - The Hanged Man",
32010
+ [CardType.DEATH] = "XIII - Death",
32011
+ [CardType.TEMPERANCE] = "XIV - Temperance",
32012
+ [CardType.DEVIL] = "XV - The Devil",
32013
+ [CardType.TOWER] = "XVI - The Tower",
32014
+ [CardType.STARS] = "XVII - The Stars",
32015
+ [CardType.MOON] = "XVIII - The Moon",
32016
+ [CardType.SUN] = "XIX - The Sun",
32017
+ [CardType.JUDGEMENT] = "XX - Judgement",
32018
+ [CardType.WORLD] = "XXI - The World",
32019
+ [CardType.CLUBS_2] = "2 of Clubs",
32020
+ [CardType.DIAMONDS_2] = "2 of Diamonds",
32021
+ [CardType.SPADES_2] = "2 of Spades",
32022
+ [CardType.HEARTS_2] = "2 of Hearts",
32023
+ [CardType.ACE_OF_CLUBS] = "Ace of Clubs",
32024
+ [CardType.ACE_OF_DIAMONDS] = "Ace of Diamonds",
32025
+ [CardType.ACE_OF_SPADES] = "Ace of Spades",
32026
+ [CardType.ACE_OF_HEARTS] = "Ace of Hearts",
32027
+ [CardType.JOKER] = "Joker",
32028
+ [CardType.RUNE_HAGALAZ] = "Hagalaz",
32029
+ [CardType.RUNE_JERA] = "Jera",
32030
+ [CardType.RUNE_EHWAZ] = "Ehwaz",
32031
+ [CardType.RUNE_DAGAZ] = "Dagaz",
32032
+ [CardType.RUNE_ANSUZ] = "Ansuz",
32033
+ [CardType.RUNE_PERTHRO] = "Perthro",
32034
+ [CardType.RUNE_BERKANO] = "Berkano",
32035
+ [CardType.RUNE_ALGIZ] = "Algiz",
32036
+ [CardType.RUNE_BLANK] = "Blank Rune",
32037
+ [CardType.RUNE_BLACK] = "Black Rune",
32038
+ [CardType.CHAOS] = "Chaos Card",
32039
+ [CardType.CREDIT] = "Credit Card",
32040
+ [CardType.RULES] = "Rules Card",
32041
+ [CardType.AGAINST_HUMANITY] = "A Card Against Humanity",
32042
+ [CardType.SUICIDE_KING] = "Suicide King",
32043
+ [CardType.GET_OUT_OF_JAIL_FREE] = "Get Out Of Jail Free Card",
32044
+ [CardType.QUESTION_MARK] = "? Card",
32045
+ [CardType.DICE_SHARD] = "Dice Shard",
32046
+ [CardType.EMERGENCY_CONTACT] = "Emergency Contact",
32047
+ [CardType.HOLY] = "Holy Card",
32048
+ [CardType.HUGE_GROWTH] = "Huge Growth",
32049
+ [CardType.ANCIENT_RECALL] = "Ancient Recall",
32050
+ [CardType.ERA_WALK] = "Era Walk",
32051
+ [CardType.RUNE_SHARD] = "Rune Shard",
32052
+ [CardType.REVERSE_FOOL] = "0 - The Fool?",
32053
+ [CardType.REVERSE_MAGICIAN] = "I - The Magician?",
32054
+ [CardType.REVERSE_HIGH_PRIESTESS] = "II - The High Priestess?",
32055
+ [CardType.REVERSE_EMPRESS] = "III - The Empress?",
32056
+ [CardType.REVERSE_EMPEROR] = "IV - The Emperor?",
32057
+ [CardType.REVERSE_HIEROPHANT] = "V - The Hierophant?",
32058
+ [CardType.REVERSE_LOVERS] = "VI - The Lovers?",
32059
+ [CardType.REVERSE_CHARIOT] = "VII - The Chariot?",
32060
+ [CardType.REVERSE_JUSTICE] = "VIII - Justice?",
32061
+ [CardType.REVERSE_HERMIT] = "IX - The Hermit?",
32062
+ [CardType.REVERSE_WHEEL_OF_FORTUNE] = "X - Wheel of Fortune?",
32063
+ [CardType.REVERSE_STRENGTH] = "XI - Strength?",
32064
+ [CardType.REVERSE_HANGED_MAN] = "XII - The Hanged Man?",
32065
+ [CardType.REVERSE_DEATH] = "XIII - Death?",
32066
+ [CardType.REVERSE_TEMPERANCE] = "XIV - Temperance?",
32067
+ [CardType.REVERSE_DEVIL] = "XV - The Devil?",
32068
+ [CardType.REVERSE_TOWER] = "XVI - The Tower?",
32069
+ [CardType.REVERSE_STARS] = "XVII - The Stars?",
32070
+ [CardType.REVERSE_MOON] = "XVIII - The Moon?",
32071
+ [CardType.REVERSE_SUN] = "XIX - The Sun?",
32072
+ [CardType.REVERSE_JUDGEMENT] = "XX - Judgement?",
32073
+ [CardType.REVERSE_WORLD] = "XXI - The World?",
32074
+ [CardType.CRACKED_KEY] = "Cracked Key",
32075
+ [CardType.QUEEN_OF_HEARTS] = "Queen of Hearts",
32076
+ [CardType.WILD] = "Wild Card",
32077
+ [CardType.SOUL_ISAAC] = "Soul of Isaac",
32078
+ [CardType.SOUL_MAGDALENE] = "Soul of Magdalene",
32079
+ [CardType.SOUL_CAIN] = "Soul of Cain",
32080
+ [CardType.SOUL_JUDAS] = "Soul of Judas",
32081
+ [CardType.SOUL_BLUE_BABY] = "Soul of ???",
32082
+ [CardType.SOUL_EVE] = "Soul of Eve",
32083
+ [CardType.SOUL_SAMSON] = "Soul of Samson",
32084
+ [CardType.SOUL_AZAZEL] = "Soul of Azazel",
32085
+ [CardType.SOUL_LAZARUS] = "Soul of Lazarus",
32086
+ [CardType.SOUL_EDEN] = "Soul of Eden",
32087
+ [CardType.SOUL_LOST] = "Soul of the Lost",
32088
+ [CardType.SOUL_LILITH] = "Soul of Lilith",
32089
+ [CardType.SOUL_KEEPER] = "Soul of the Keeper",
32090
+ [CardType.SOUL_APOLLYON] = "Soul of Apollyon",
32091
+ [CardType.SOUL_FORGOTTEN] = "Soul of the Forgotten",
32092
+ [CardType.SOUL_BETHANY] = "Soul of Bethany",
32093
+ [CardType.SOUL_JACOB] = "Soul of Jacob and Esau"
32094
+ }
32095
+ return ____exports
32096
+ end,
32097
+ ["src.functions.cards"] = function(...)
32098
+ local ____lualib = require("lualib_bundle")
32099
+ local Set = ____lualib.Set
32100
+ local ____exports = {}
32101
+ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
32102
+ local ItemConfigCardType = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigCardType
32103
+ local ____cachedClasses = require("src.core.cachedClasses")
32104
+ local itemConfig = ____cachedClasses.itemConfig
32105
+ local ____constants = require("src.core.constants")
32106
+ local ITEM_CONFIG_CARD_TYPES_FOR_CARDS = ____constants.ITEM_CONFIG_CARD_TYPES_FOR_CARDS
32107
+ local ____constantsFirstLast = require("src.core.constantsFirstLast")
32108
+ local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
32109
+ local LAST_VANILLA_CARD_TYPE = ____constantsFirstLast.LAST_VANILLA_CARD_TYPE
32110
+ local ____cardDescriptions = require("src.objects.cardDescriptions")
32111
+ local CARD_DESCRIPTIONS = ____cardDescriptions.CARD_DESCRIPTIONS
32112
+ local DEFAULT_CARD_DESCRIPTION = ____cardDescriptions.DEFAULT_CARD_DESCRIPTION
32113
+ local ____cardNames = require("src.objects.cardNames")
32114
+ local CARD_NAMES = ____cardNames.CARD_NAMES
32115
+ local DEFAULT_CARD_NAME = ____cardNames.DEFAULT_CARD_NAME
32116
+ local ____utils = require("src.functions.utils")
32117
+ local iRange = ____utils.iRange
32118
+ function ____exports.isVanillaCardType(self, cardType)
32119
+ return cardType <= LAST_VANILLA_CARD_TYPE
32120
+ end
32121
+ function ____exports.getCardDescription(self, cardType)
32122
+ local cardDescription = CARD_DESCRIPTIONS[cardType]
32123
+ if cardDescription ~= nil then
32124
+ return cardDescription
32125
+ end
32126
+ local itemConfigCard = itemConfig:GetCard(cardType)
32127
+ if itemConfigCard ~= nil then
32128
+ return itemConfigCard.Description
32129
+ end
32130
+ return DEFAULT_CARD_DESCRIPTION
32131
+ end
32132
+ function ____exports.getCardName(self, cardType)
32133
+ local cardName = CARD_NAMES[cardType]
32134
+ if cardName ~= nil then
32135
+ return cardName
32136
+ end
32137
+ local itemConfigCard = itemConfig:GetCard(cardType)
32138
+ if itemConfigCard ~= nil then
32139
+ return itemConfigCard.Name
32140
+ end
32141
+ return DEFAULT_CARD_NAME
32142
+ end
32143
+ function ____exports.getItemConfigCardType(self, cardType)
32144
+ local itemConfigCard = itemConfig:GetCard(cardType)
32145
+ if itemConfigCard == nil then
32146
+ return nil
32147
+ end
32148
+ return itemConfigCard.CardType
32149
+ end
32150
+ function ____exports.getVanillaCardTypes(self)
32151
+ return iRange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
32152
+ end
32153
+ function ____exports.isCard(self, cardType)
32154
+ local itemConfigCardType = ____exports.getItemConfigCardType(nil, cardType)
32155
+ if itemConfigCardType == nil then
32156
+ return false
32157
+ end
32158
+ return ITEM_CONFIG_CARD_TYPES_FOR_CARDS:has(itemConfigCardType)
32159
+ end
32160
+ function ____exports.isCardType(self, cardType, itemConfigCardType)
32161
+ return itemConfigCardType == ____exports.getItemConfigCardType(nil, cardType)
32162
+ end
32163
+ function ____exports.isModdedCardType(self, cardType)
32164
+ return not ____exports.isVanillaCardType(nil, cardType)
32165
+ end
32166
+ function ____exports.isPocketItemObject(self, cardType)
32167
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL_OBJECT)
32168
+ end
32169
+ function ____exports.isReverseTarotCard(self, cardType)
32170
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT_REVERSE)
32171
+ end
32172
+ function ____exports.isRune(self, cardType)
32173
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.RUNE)
32174
+ end
32175
+ function ____exports.isSpecialCard(self, cardType)
32176
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL)
32177
+ end
32178
+ function ____exports.isSuitCard(self, cardType)
32179
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.SUIT)
32180
+ end
32181
+ function ____exports.isTarotCard(self, cardType)
32182
+ return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT)
32183
+ end
31872
32184
  return ____exports
31873
32185
  end,
31874
32186
  ["src.functions.collectibleTag"] = function(...)
@@ -32134,17 +32446,19 @@ return ____exports
32134
32446
  end,
32135
32447
  ["src.classes.features.other.ModdedElementSets"] = function(...)
32136
32448
  local ____lualib = require("lualib_bundle")
32449
+ local Set = ____lualib.Set
32137
32450
  local Map = ____lualib.Map
32138
32451
  local __TS__New = ____lualib.__TS__New
32139
32452
  local __TS__Class = ____lualib.__TS__Class
32140
32453
  local __TS__ClassExtends = ____lualib.__TS__ClassExtends
32141
- local Set = ____lualib.Set
32142
32454
  local __TS__Decorate = ____lualib.__TS__Decorate
32143
32455
  local __TS__Iterator = ____lualib.__TS__Iterator
32144
32456
  local ____exports = {}
32145
32457
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
32146
32458
  local CacheFlag = ____isaac_2Dtypescript_2Ddefinitions.CacheFlag
32459
+ local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
32147
32460
  local CollectibleType = ____isaac_2Dtypescript_2Ddefinitions.CollectibleType
32461
+ local ItemConfigCardType = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigCardType
32148
32462
  local ItemConfigTag = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigTag
32149
32463
  local PlayerForm = ____isaac_2Dtypescript_2Ddefinitions.PlayerForm
32150
32464
  local TrinketType = ____isaac_2Dtypescript_2Ddefinitions.TrinketType
@@ -32152,10 +32466,14 @@ local ____cachedClasses = require("src.core.cachedClasses")
32152
32466
  local itemConfig = ____cachedClasses.itemConfig
32153
32467
  local ____constants = require("src.core.constants")
32154
32468
  local FIRST_GLITCHED_COLLECTIBLE_TYPE = ____constants.FIRST_GLITCHED_COLLECTIBLE_TYPE
32469
+ local ITEM_CONFIG_CARD_TYPES_FOR_CARDS = ____constants.ITEM_CONFIG_CARD_TYPES_FOR_CARDS
32155
32470
  local ____decorators = require("src.decorators")
32156
32471
  local Exported = ____decorators.Exported
32157
32472
  local ____ISCFeature = require("src.enums.ISCFeature")
32158
32473
  local ISCFeature = ____ISCFeature.ISCFeature
32474
+ local ____cards = require("src.functions.cards")
32475
+ local getItemConfigCardType = ____cards.getItemConfigCardType
32476
+ local getVanillaCardTypes = ____cards.getVanillaCardTypes
32159
32477
  local ____collectibles = require("src.functions.collectibles")
32160
32478
  local collectibleHasCacheFlag = ____collectibles.collectibleHasCacheFlag
32161
32479
  local getVanillaCollectibleTypeRange = ____collectibles.getVanillaCollectibleTypeRange
@@ -32215,6 +32533,12 @@ function ModdedElementSets.prototype.____constructor(self, moddedElementDetectio
32215
32533
  self.vanillaTrinketTypesSet = __TS__New(Set)
32216
32534
  self.moddedTrinketTypesArray = {}
32217
32535
  self.moddedTrinketTypesSet = __TS__New(Set)
32536
+ self.allCardTypesArray = {}
32537
+ self.allCardTypesSet = __TS__New(Set)
32538
+ self.vanillaCardTypesArray = {}
32539
+ self.vanillaCardTypesSet = __TS__New(Set)
32540
+ self.moddedCardTypesArray = {}
32541
+ self.moddedCardTypesSet = __TS__New(Set)
32218
32542
  self.tagToCollectibleTypesMap = __TS__New(Map)
32219
32543
  self.cacheFlagToCollectibleTypesMap = __TS__New(Map)
32220
32544
  self.cacheFlagToTrinketTypesMap = __TS__New(Map)
@@ -32223,6 +32547,8 @@ function ModdedElementSets.prototype.____constructor(self, moddedElementDetectio
32223
32547
  self.flyingTrinketTypesSet = __TS__New(Set)
32224
32548
  self.edenActiveCollectibleTypesSet = __TS__New(Set)
32225
32549
  self.edenPassiveCollectibleTypesSet = __TS__New(Set)
32550
+ self.itemConfigCardTypeToCardTypeMap = __TS__New(Map)
32551
+ self.cardSet = __TS__New(Set)
32226
32552
  self.featuresUsed = {ISCFeature.MODDED_ELEMENT_DETECTION}
32227
32553
  self.moddedElementDetection = moddedElementDetection
32228
32554
  end
@@ -32300,6 +32626,43 @@ function ModdedElementSets.prototype.lazyInitModdedTrinketTypes(self)
32300
32626
  end
32301
32627
  end
32302
32628
  end
32629
+ function ModdedElementSets.prototype.lazyInitVanillaCardTypes(self)
32630
+ if #self.vanillaCardTypesArray > 0 then
32631
+ return
32632
+ end
32633
+ local vanillaCardTypes = getVanillaCardTypes(nil)
32634
+ for ____, cardType in ipairs(vanillaCardTypes) do
32635
+ local itemConfigCard = itemConfig:GetCard(cardType)
32636
+ if itemConfigCard ~= nil then
32637
+ local ____self_vanillaCardTypesArray_8 = self.vanillaCardTypesArray
32638
+ ____self_vanillaCardTypesArray_8[#____self_vanillaCardTypesArray_8 + 1] = cardType
32639
+ self.vanillaCardTypesSet:add(cardType)
32640
+ end
32641
+ end
32642
+ end
32643
+ function ModdedElementSets.prototype.lazyInitModdedCardTypes(self)
32644
+ if #self.moddedCardTypesArray > 0 then
32645
+ return
32646
+ end
32647
+ self:lazyInitVanillaCardTypes()
32648
+ for ____, cardType in ipairs(self.vanillaCardTypesArray) do
32649
+ local ____self_allCardTypesArray_9 = self.allCardTypesArray
32650
+ ____self_allCardTypesArray_9[#____self_allCardTypesArray_9 + 1] = cardType
32651
+ self.allCardTypesSet:add(cardType)
32652
+ end
32653
+ local moddedCardTypes = self.moddedElementDetection:getModdedCardTypes()
32654
+ for ____, cardType in ipairs(moddedCardTypes) do
32655
+ local itemConfigCard = itemConfig:GetCard(cardType)
32656
+ if itemConfigCard ~= nil then
32657
+ local ____self_moddedCardTypesArray_10 = self.moddedCardTypesArray
32658
+ ____self_moddedCardTypesArray_10[#____self_moddedCardTypesArray_10 + 1] = cardType
32659
+ self.moddedCardTypesSet:add(cardType)
32660
+ local ____self_allCardTypesArray_11 = self.allCardTypesArray
32661
+ ____self_allCardTypesArray_11[#____self_allCardTypesArray_11 + 1] = cardType
32662
+ self.allCardTypesSet:add(cardType)
32663
+ end
32664
+ end
32665
+ end
32303
32666
  function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
32304
32667
  if self.tagToCollectibleTypesMap.size > 0 then
32305
32668
  return
@@ -32314,7 +32677,7 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
32314
32677
  for ____, itemConfigTag in ipairs(getEnumValues(nil, ItemConfigTag)) do
32315
32678
  do
32316
32679
  if not collectibleHasTag(nil, collectibleType, itemConfigTag) then
32317
- goto __continue32
32680
+ goto __continue44
32318
32681
  end
32319
32682
  local collectibleTypesSet = self.tagToCollectibleTypesMap:get(itemConfigTag)
32320
32683
  if collectibleTypesSet == nil then
@@ -32323,7 +32686,7 @@ function ModdedElementSets.prototype.lazyInitTagToCollectibleTypesMap(self)
32323
32686
  end
32324
32687
  collectibleTypesSet:add(collectibleType)
32325
32688
  end
32326
- ::__continue32::
32689
+ ::__continue44::
32327
32690
  end
32328
32691
  end
32329
32692
  end
@@ -32392,7 +32755,7 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
32392
32755
  for ____, collectibleType in ipairs(self:getCollectibleArray()) do
32393
32756
  do
32394
32757
  if isHiddenCollectible(nil, collectibleType) or collectibleHasTag(nil, collectibleType, ItemConfigTag.NO_EDEN) then
32395
- goto __continue59
32758
+ goto __continue71
32396
32759
  end
32397
32760
  if isActiveCollectible(nil, collectibleType) then
32398
32761
  self.edenActiveCollectibleTypesSet:add(collectibleType)
@@ -32401,9 +32764,58 @@ function ModdedElementSets.prototype.lazyInitEdenCollectibleTypesSet(self)
32401
32764
  self.edenPassiveCollectibleTypesSet:add(collectibleType)
32402
32765
  end
32403
32766
  end
32404
- ::__continue59::
32767
+ ::__continue71::
32768
+ end
32769
+ end
32770
+ function ModdedElementSets.prototype.lazyInitCardTypes(self)
32771
+ if self.itemConfigCardTypeToCardTypeMap.size > 0 then
32772
+ return
32773
+ end
32774
+ for ____, itemConfigCardType in ipairs(getEnumValues(nil, ItemConfigCardType)) do
32775
+ self.itemConfigCardTypeToCardTypeMap:set(
32776
+ itemConfigCardType,
32777
+ __TS__New(Set)
32778
+ )
32779
+ end
32780
+ for ____, cardType in ipairs(self:getCardArray()) do
32781
+ local itemConfigCardType = getItemConfigCardType(nil, cardType)
32782
+ if itemConfigCardType ~= nil then
32783
+ local cardTypeSet = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
32784
+ if cardTypeSet == nil then
32785
+ error("Failed to get the card set for item config card type: " .. tostring(itemConfigCardType))
32786
+ end
32787
+ cardTypeSet:add(cardType)
32788
+ if ITEM_CONFIG_CARD_TYPES_FOR_CARDS:has(itemConfigCardType) then
32789
+ self.cardSet:add(cardType)
32790
+ end
32791
+ end
32405
32792
  end
32406
32793
  end
32794
+ function ModdedElementSets.prototype.getCardArray(self)
32795
+ self:lazyInitModdedCardTypes()
32796
+ return self.allCardTypesArray
32797
+ end
32798
+ function ModdedElementSets.prototype.getCardSet(self)
32799
+ self:lazyInitModdedCardTypes()
32800
+ return self.allCardTypesSet
32801
+ end
32802
+ function ModdedElementSets.prototype.getCardTypesOfType(self, ...)
32803
+ local itemConfigCardTypes = {...}
32804
+ if self.itemConfigCardTypeToCardTypeMap.size == 0 then
32805
+ self:lazyInitCardTypes()
32806
+ end
32807
+ local matchingCardTypes = __TS__New(Set)
32808
+ for ____, itemConfigCardType in ipairs(itemConfigCardTypes) do
32809
+ local cardTypeSet = self.itemConfigCardTypeToCardTypeMap:get(itemConfigCardType)
32810
+ if cardTypeSet == nil then
32811
+ error("Failed to get the card type set for item config type: " .. tostring(itemConfigCardType))
32812
+ end
32813
+ for ____, cardType in __TS__Iterator(cardTypeSet:values()) do
32814
+ matchingCardTypes:add(cardType)
32815
+ end
32816
+ end
32817
+ return matchingCardTypes
32818
+ end
32407
32819
  function ModdedElementSets.prototype.getCollectibleArray(self)
32408
32820
  self:lazyInitModdedCollectibleTypes()
32409
32821
  return self.allCollectibleTypesArray
@@ -32451,6 +32863,14 @@ function ModdedElementSets.prototype.getFlyingTrinkets(self)
32451
32863
  self:lazyInitFlyingTrinketTypesSet()
32452
32864
  return self.flyingTrinketTypesSet
32453
32865
  end
32866
+ function ModdedElementSets.prototype.getModdedCardArray(self)
32867
+ self:lazyInitModdedCardTypes()
32868
+ return self.moddedCardTypesArray
32869
+ end
32870
+ function ModdedElementSets.prototype.getModdedCardSet(self)
32871
+ self:lazyInitModdedCardTypes()
32872
+ return self.moddedCardTypesSet
32873
+ end
32454
32874
  function ModdedElementSets.prototype.getModdedCollectibleArray(self)
32455
32875
  self:lazyInitModdedCollectibleTypes()
32456
32876
  return self.moddedCollectibleTypesArray
@@ -32550,6 +32970,36 @@ function ModdedElementSets.prototype.getPlayerTrinketsWithCacheFlag(self, player
32550
32970
  end
32551
32971
  return playerTrinkets
32552
32972
  end
32973
+ function ModdedElementSets.prototype.getRandomCard(self, seedOrRNG, exceptions)
32974
+ if seedOrRNG == nil then
32975
+ seedOrRNG = getRandomSeed(nil)
32976
+ end
32977
+ if exceptions == nil then
32978
+ exceptions = {}
32979
+ end
32980
+ return getRandomSetElement(nil, self.cardSet, seedOrRNG, exceptions)
32981
+ end
32982
+ function ModdedElementSets.prototype.getRandomCardTypeOfType(self, itemConfigCardType, seedOrRNG, exceptions)
32983
+ if seedOrRNG == nil then
32984
+ seedOrRNG = getRandomSeed(nil)
32985
+ end
32986
+ if exceptions == nil then
32987
+ exceptions = {}
32988
+ end
32989
+ local cardTypeSet = self:getCardTypesOfType(itemConfigCardType)
32990
+ return getRandomSetElement(nil, cardTypeSet, seedOrRNG, exceptions)
32991
+ end
32992
+ function ModdedElementSets.prototype.getRandomRune(self, seedOrRNG, exceptions)
32993
+ if seedOrRNG == nil then
32994
+ seedOrRNG = getRandomSeed(nil)
32995
+ end
32996
+ if exceptions == nil then
32997
+ exceptions = {}
32998
+ end
32999
+ local runesSet = self:getCardTypesOfType(ItemConfigCardType.RUNE)
33000
+ runesSet:delete(CardType.RUNE_SHARD)
33001
+ return getRandomSetElement(nil, runesSet, seedOrRNG, exceptions)
33002
+ end
32553
33003
  function ModdedElementSets.prototype.getRandomEdenActiveCollectible(self, seedOrRNG, exceptions)
32554
33004
  if seedOrRNG == nil then
32555
33005
  seedOrRNG = getRandomSeed(nil)
@@ -32586,6 +33036,14 @@ function ModdedElementSets.prototype.getTrinketsWithCacheFlag(self, cacheFlag)
32586
33036
  end
32587
33037
  return trinketsSet
32588
33038
  end
33039
+ function ModdedElementSets.prototype.getVanillaCardArray(self)
33040
+ self:lazyInitVanillaCardTypes()
33041
+ return self.vanillaCardTypesArray
33042
+ end
33043
+ function ModdedElementSets.prototype.getVanillaCardSet(self)
33044
+ self:lazyInitVanillaCardTypes()
33045
+ return self.vanillaCardTypesSet
33046
+ end
32589
33047
  function ModdedElementSets.prototype.getVanillaCollectibleArray(self)
32590
33048
  self:lazyInitVanillaCollectibleTypes()
32591
33049
  return self.vanillaCollectibleTypesArray
@@ -32602,6 +33060,9 @@ function ModdedElementSets.prototype.getVanillaTrinketSet(self)
32602
33060
  self:lazyInitVanillaTrinketTypes()
32603
33061
  return self.vanillaTrinketTypesSet
32604
33062
  end
33063
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getCardArray", true)
33064
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getCardSet", true)
33065
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getCardTypesOfType", true)
32605
33066
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getCollectibleArray", true)
32606
33067
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getCollectibleSet", true)
32607
33068
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getCollectiblesForTransformation", true)
@@ -32611,6 +33072,8 @@ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getEdenActiveCollectibl
32611
33072
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getEdenPassiveCollectibles", true)
32612
33073
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getFlyingCollectibles", true)
32613
33074
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getFlyingTrinkets", true)
33075
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getModdedCardArray", true)
33076
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getModdedCardSet", true)
32614
33077
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getModdedCollectibleArray", true)
32615
33078
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getModdedCollectibleSet", true)
32616
33079
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getModdedTrinketArray", true)
@@ -32620,11 +33083,16 @@ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getPlayerCollectiblesWi
32620
33083
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getPlayerCollectiblesWithTag", true)
32621
33084
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getPlayerCollectiblesForTransformation", true)
32622
33085
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getPlayerTrinketsWithCacheFlag", true)
33086
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getRandomCard", true)
33087
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getRandomCardTypeOfType", true)
33088
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getRandomRune", true)
32623
33089
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getRandomEdenActiveCollectible", true)
32624
33090
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getRandomEdenPassiveCollectible", true)
32625
33091
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getTrinketArray", true)
32626
33092
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getTrinketSet", true)
32627
33093
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getTrinketsWithCacheFlag", true)
33094
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getVanillaCardArray", true)
33095
+ __TS__Decorate({Exported}, ModdedElementSets.prototype, "getVanillaCardSet", true)
32628
33096
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getVanillaCollectibleArray", true)
32629
33097
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getVanillaCollectibleSet", true)
32630
33098
  __TS__Decorate({Exported}, ModdedElementSets.prototype, "getVanillaTrinketArray", true)
@@ -38470,8 +38938,8 @@ local __TS__New = ____lualib.__TS__New
38470
38938
  local __TS__SparseArrayNew = ____lualib.__TS__SparseArrayNew
38471
38939
  local __TS__SparseArrayPush = ____lualib.__TS__SparseArrayPush
38472
38940
  local __TS__SparseArraySpread = ____lualib.__TS__SparseArraySpread
38473
- local Set = ____lualib.Set
38474
38941
  local __TS__Decorate = ____lualib.__TS__Decorate
38942
+ local Set = ____lualib.Set
38475
38943
  local ____exports = {}
38476
38944
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
38477
38945
  local ButtonAction = ____isaac_2Dtypescript_2Ddefinitions.ButtonAction
@@ -38559,6 +39027,9 @@ function Pause.prototype.stopTearsAndProjectilesFromMoving(self)
38559
39027
  ::__continue9::
38560
39028
  end
38561
39029
  end
39030
+ function Pause.prototype.isPaused(self)
39031
+ return self.v.run.isPseudoPaused
39032
+ end
38562
39033
  function Pause.prototype.pause(self)
38563
39034
  if self.v.run.isPseudoPaused then
38564
39035
  logError(nil, "Failed to pseudo-pause the game, since it was already pseudo-paused.")
@@ -38616,6 +39087,7 @@ function Pause.prototype.unpause(self)
38616
39087
  removeAllTears(nil)
38617
39088
  removeAllProjectiles(nil)
38618
39089
  end
39090
+ __TS__Decorate({Exported}, Pause.prototype, "isPaused", true)
38619
39091
  __TS__Decorate({Exported}, Pause.prototype, "pause", true)
38620
39092
  __TS__Decorate({Exported}, Pause.prototype, "unpause", true)
38621
39093
  return ____exports
@@ -41312,496 +41784,6 @@ function DeployJSONRoom.prototype.deployJSONRoom(self, jsonRoom, seedOrRNG, verb
41312
41784
  self.preventGridEntityRespawn:preventGridEntityRespawn()
41313
41785
  end
41314
41786
  __TS__Decorate({Exported}, DeployJSONRoom.prototype, "deployJSONRoom", true)
41315
- return ____exports
41316
- end,
41317
- ["src.objects.cardDescriptions"] = function(...)
41318
- local ____exports = {}
41319
- local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
41320
- local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
41321
- ____exports.DEFAULT_CARD_DESCRIPTION = "Unknown"
41322
- ____exports.CARD_DESCRIPTIONS = {
41323
- [CardType.NULL] = ____exports.DEFAULT_CARD_DESCRIPTION,
41324
- [CardType.FOOL] = "Where journey begins",
41325
- [CardType.MAGICIAN] = "May you never miss your goal",
41326
- [CardType.HIGH_PRIESTESS] = "Mother is watching you",
41327
- [CardType.EMPRESS] = "May your rage bring power",
41328
- [CardType.EMPEROR] = "Challenge me!",
41329
- [CardType.HIEROPHANT] = "Two prayers for the lost",
41330
- [CardType.LOVERS] = "May you prosper and be in good health",
41331
- [CardType.CHARIOT] = "May nothing stand before you",
41332
- [CardType.JUSTICE] = "May your future become balanced",
41333
- [CardType.HERMIT] = "May you see what life has to offer",
41334
- [CardType.WHEEL_OF_FORTUNE] = "Spin the wheel of destiny",
41335
- [CardType.STRENGTH] = "May your power bring rage",
41336
- [CardType.HANGED_MAN] = "May you find enlightenment ",
41337
- [CardType.DEATH] = "Lay waste to all that oppose you ",
41338
- [CardType.TEMPERANCE] = "May you be pure in heart",
41339
- [CardType.DEVIL] = "Revel in the power of darkness",
41340
- [CardType.TOWER] = "Destruction brings creation",
41341
- [CardType.STARS] = "May you find what you desire ",
41342
- [CardType.MOON] = "May you find all you have lost",
41343
- [CardType.SUN] = "May the light heal and enlighten you",
41344
- [CardType.JUDGEMENT] = "Judge lest ye be judged",
41345
- [CardType.WORLD] = "Open your eyes and see",
41346
- [CardType.CLUBS_2] = "Item multiplier",
41347
- [CardType.DIAMONDS_2] = "Item multiplier",
41348
- [CardType.SPADES_2] = "Item multiplier",
41349
- [CardType.HEARTS_2] = "Item multiplier",
41350
- [CardType.ACE_OF_CLUBS] = "Convert all",
41351
- [CardType.ACE_OF_DIAMONDS] = "Convert all",
41352
- [CardType.ACE_OF_SPADES] = "Convert all",
41353
- [CardType.ACE_OF_HEARTS] = "Convert all",
41354
- [CardType.JOKER] = "???",
41355
- [CardType.RUNE_HAGALAZ] = "Destruction",
41356
- [CardType.RUNE_JERA] = "Abundance",
41357
- [CardType.RUNE_EHWAZ] = "Passage",
41358
- [CardType.RUNE_DAGAZ] = "Purity",
41359
- [CardType.RUNE_ANSUZ] = "Vision",
41360
- [CardType.RUNE_PERTHRO] = "Change",
41361
- [CardType.RUNE_BERKANO] = "Companionship",
41362
- [CardType.RUNE_ALGIZ] = "Resistance",
41363
- [CardType.RUNE_BLANK] = "???",
41364
- [CardType.RUNE_BLACK] = "Void",
41365
- [CardType.CHAOS] = "???",
41366
- [CardType.CREDIT] = "Charge it!",
41367
- [CardType.RULES] = "???",
41368
- [CardType.AGAINST_HUMANITY] = "Something stinks...",
41369
- [CardType.SUICIDE_KING] = "A true ending?",
41370
- [CardType.GET_OUT_OF_JAIL_FREE] = "Open Sesame",
41371
- [CardType.QUESTION_MARK] = "Double active",
41372
- [CardType.DICE_SHARD] = "D6 + D20",
41373
- [CardType.EMERGENCY_CONTACT] = "Help from above",
41374
- [CardType.HOLY] = "You feel protected",
41375
- [CardType.HUGE_GROWTH] = "Become immense!",
41376
- [CardType.ANCIENT_RECALL] = "Draw 3 cards",
41377
- [CardType.ERA_WALK] = "Savor the moment",
41378
- [CardType.RUNE_SHARD] = "It still glows faintly",
41379
- [CardType.REVERSE_FOOL] = "Let go and move on",
41380
- [CardType.REVERSE_MAGICIAN] = "May no harm come to you",
41381
- [CardType.REVERSE_HIGH_PRIESTESS] = "Run",
41382
- [CardType.REVERSE_EMPRESS] = "May your love bring protection",
41383
- [CardType.REVERSE_EMPEROR] = "May you find a worthy opponent",
41384
- [CardType.REVERSE_HIEROPHANT] = "Two prayers for the forgotten",
41385
- [CardType.REVERSE_LOVERS] = "May your heart shatter into pieces",
41386
- [CardType.REVERSE_CHARIOT] = "May nothing walk past you",
41387
- [CardType.REVERSE_JUSTICE] = "May your sins come back to torment you",
41388
- [CardType.REVERSE_HERMIT] = "May you see the value of all things in life",
41389
- [CardType.REVERSE_WHEEL_OF_FORTUNE] = "Throw the dice of fate",
41390
- [CardType.REVERSE_STRENGTH] = "May you break their resolve",
41391
- [CardType.REVERSE_HANGED_MAN] = "May your greed know no bounds",
41392
- [CardType.REVERSE_DEATH] = "May life spring forth from the fallen",
41393
- [CardType.REVERSE_TEMPERANCE] = "May your hunger be satiated",
41394
- [CardType.REVERSE_DEVIL] = "Bask in the light of your mercy",
41395
- [CardType.REVERSE_TOWER] = "Creation brings destruction",
41396
- [CardType.REVERSE_STARS] = "May your loss bring fortune",
41397
- [CardType.REVERSE_MOON] = "May you remember lost memories",
41398
- [CardType.REVERSE_SUN] = "May the darkness swallow all around you",
41399
- [CardType.REVERSE_JUDGEMENT] = "May you redeem those found wanting",
41400
- [CardType.REVERSE_WORLD] = "Step into the abyss",
41401
- [CardType.CRACKED_KEY] = "???",
41402
- [CardType.QUEEN_OF_HEARTS] = "<3",
41403
- [CardType.WILD] = "Again",
41404
- [CardType.SOUL_ISAAC] = "Reroll... or not",
41405
- [CardType.SOUL_MAGDALENE] = "Give me your love!",
41406
- [CardType.SOUL_CAIN] = "Opens the unopenable",
41407
- [CardType.SOUL_JUDAS] = "Right behind you",
41408
- [CardType.SOUL_BLUE_BABY] = "Chemical warfare",
41409
- [CardType.SOUL_EVE] = "Your very own murder",
41410
- [CardType.SOUL_SAMSON] = "Slay a thousand",
41411
- [CardType.SOUL_AZAZEL] = "Demon rage!",
41412
- [CardType.SOUL_LAZARUS] = "Life after death",
41413
- [CardType.SOUL_EDEN] = "Embrace chaos",
41414
- [CardType.SOUL_LOST] = "Leave your body behind",
41415
- [CardType.SOUL_LILITH] = "Motherhood",
41416
- [CardType.SOUL_KEEPER] = "$$$",
41417
- [CardType.SOUL_APOLLYON] = "Bringer of calamity",
41418
- [CardType.SOUL_FORGOTTEN] = "Skeletal protector",
41419
- [CardType.SOUL_BETHANY] = "Friends from beyond",
41420
- [CardType.SOUL_JACOB] = "Bound by blood"
41421
- }
41422
- return ____exports
41423
- end,
41424
- ["src.objects.cardNames"] = function(...)
41425
- local ____exports = {}
41426
- local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
41427
- local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
41428
- ____exports.DEFAULT_CARD_NAME = "Unknown"
41429
- ____exports.CARD_NAMES = {
41430
- [CardType.NULL] = ____exports.DEFAULT_CARD_NAME,
41431
- [CardType.FOOL] = "0 - The Fool",
41432
- [CardType.MAGICIAN] = "I - The Magician",
41433
- [CardType.HIGH_PRIESTESS] = "II - The High Priestess",
41434
- [CardType.EMPRESS] = "III - The Empress",
41435
- [CardType.EMPEROR] = "IV - The Emperor",
41436
- [CardType.HIEROPHANT] = "V - The Hierophant",
41437
- [CardType.LOVERS] = "VI - The Lovers",
41438
- [CardType.CHARIOT] = "VII - The Chariot",
41439
- [CardType.JUSTICE] = "VIII - Justice",
41440
- [CardType.HERMIT] = "IX - The Hermit",
41441
- [CardType.WHEEL_OF_FORTUNE] = "X - Wheel of Fortune",
41442
- [CardType.STRENGTH] = "XI - Strength",
41443
- [CardType.HANGED_MAN] = "XII - The Hanged Man",
41444
- [CardType.DEATH] = "XIII - Death",
41445
- [CardType.TEMPERANCE] = "XIV - Temperance",
41446
- [CardType.DEVIL] = "XV - The Devil",
41447
- [CardType.TOWER] = "XVI - The Tower",
41448
- [CardType.STARS] = "XVII - The Stars",
41449
- [CardType.MOON] = "XVIII - The Moon",
41450
- [CardType.SUN] = "XIX - The Sun",
41451
- [CardType.JUDGEMENT] = "XX - Judgement",
41452
- [CardType.WORLD] = "XXI - The World",
41453
- [CardType.CLUBS_2] = "2 of Clubs",
41454
- [CardType.DIAMONDS_2] = "2 of Diamonds",
41455
- [CardType.SPADES_2] = "2 of Spades",
41456
- [CardType.HEARTS_2] = "2 of Hearts",
41457
- [CardType.ACE_OF_CLUBS] = "Ace of Clubs",
41458
- [CardType.ACE_OF_DIAMONDS] = "Ace of Diamonds",
41459
- [CardType.ACE_OF_SPADES] = "Ace of Spades",
41460
- [CardType.ACE_OF_HEARTS] = "Ace of Hearts",
41461
- [CardType.JOKER] = "Joker",
41462
- [CardType.RUNE_HAGALAZ] = "Hagalaz",
41463
- [CardType.RUNE_JERA] = "Jera",
41464
- [CardType.RUNE_EHWAZ] = "Ehwaz",
41465
- [CardType.RUNE_DAGAZ] = "Dagaz",
41466
- [CardType.RUNE_ANSUZ] = "Ansuz",
41467
- [CardType.RUNE_PERTHRO] = "Perthro",
41468
- [CardType.RUNE_BERKANO] = "Berkano",
41469
- [CardType.RUNE_ALGIZ] = "Algiz",
41470
- [CardType.RUNE_BLANK] = "Blank Rune",
41471
- [CardType.RUNE_BLACK] = "Black Rune",
41472
- [CardType.CHAOS] = "Chaos Card",
41473
- [CardType.CREDIT] = "Credit Card",
41474
- [CardType.RULES] = "Rules Card",
41475
- [CardType.AGAINST_HUMANITY] = "A Card Against Humanity",
41476
- [CardType.SUICIDE_KING] = "Suicide King",
41477
- [CardType.GET_OUT_OF_JAIL_FREE] = "Get Out Of Jail Free Card",
41478
- [CardType.QUESTION_MARK] = "? Card",
41479
- [CardType.DICE_SHARD] = "Dice Shard",
41480
- [CardType.EMERGENCY_CONTACT] = "Emergency Contact",
41481
- [CardType.HOLY] = "Holy Card",
41482
- [CardType.HUGE_GROWTH] = "Huge Growth",
41483
- [CardType.ANCIENT_RECALL] = "Ancient Recall",
41484
- [CardType.ERA_WALK] = "Era Walk",
41485
- [CardType.RUNE_SHARD] = "Rune Shard",
41486
- [CardType.REVERSE_FOOL] = "0 - The Fool?",
41487
- [CardType.REVERSE_MAGICIAN] = "I - The Magician?",
41488
- [CardType.REVERSE_HIGH_PRIESTESS] = "II - The High Priestess?",
41489
- [CardType.REVERSE_EMPRESS] = "III - The Empress?",
41490
- [CardType.REVERSE_EMPEROR] = "IV - The Emperor?",
41491
- [CardType.REVERSE_HIEROPHANT] = "V - The Hierophant?",
41492
- [CardType.REVERSE_LOVERS] = "VI - The Lovers?",
41493
- [CardType.REVERSE_CHARIOT] = "VII - The Chariot?",
41494
- [CardType.REVERSE_JUSTICE] = "VIII - Justice?",
41495
- [CardType.REVERSE_HERMIT] = "IX - The Hermit?",
41496
- [CardType.REVERSE_WHEEL_OF_FORTUNE] = "X - Wheel of Fortune?",
41497
- [CardType.REVERSE_STRENGTH] = "XI - Strength?",
41498
- [CardType.REVERSE_HANGED_MAN] = "XII - The Hanged Man?",
41499
- [CardType.REVERSE_DEATH] = "XIII - Death?",
41500
- [CardType.REVERSE_TEMPERANCE] = "XIV - Temperance?",
41501
- [CardType.REVERSE_DEVIL] = "XV - The Devil?",
41502
- [CardType.REVERSE_TOWER] = "XVI - The Tower?",
41503
- [CardType.REVERSE_STARS] = "XVII - The Stars?",
41504
- [CardType.REVERSE_MOON] = "XVIII - The Moon?",
41505
- [CardType.REVERSE_SUN] = "XIX - The Sun?",
41506
- [CardType.REVERSE_JUDGEMENT] = "XX - Judgement?",
41507
- [CardType.REVERSE_WORLD] = "XXI - The World?",
41508
- [CardType.CRACKED_KEY] = "Cracked Key",
41509
- [CardType.QUEEN_OF_HEARTS] = "Queen of Hearts",
41510
- [CardType.WILD] = "Wild Card",
41511
- [CardType.SOUL_ISAAC] = "Soul of Isaac",
41512
- [CardType.SOUL_MAGDALENE] = "Soul of Magdalene",
41513
- [CardType.SOUL_CAIN] = "Soul of Cain",
41514
- [CardType.SOUL_JUDAS] = "Soul of Judas",
41515
- [CardType.SOUL_BLUE_BABY] = "Soul of ???",
41516
- [CardType.SOUL_EVE] = "Soul of Eve",
41517
- [CardType.SOUL_SAMSON] = "Soul of Samson",
41518
- [CardType.SOUL_AZAZEL] = "Soul of Azazel",
41519
- [CardType.SOUL_LAZARUS] = "Soul of Lazarus",
41520
- [CardType.SOUL_EDEN] = "Soul of Eden",
41521
- [CardType.SOUL_LOST] = "Soul of the Lost",
41522
- [CardType.SOUL_LILITH] = "Soul of Lilith",
41523
- [CardType.SOUL_KEEPER] = "Soul of the Keeper",
41524
- [CardType.SOUL_APOLLYON] = "Soul of Apollyon",
41525
- [CardType.SOUL_FORGOTTEN] = "Soul of the Forgotten",
41526
- [CardType.SOUL_BETHANY] = "Soul of Bethany",
41527
- [CardType.SOUL_JACOB] = "Soul of Jacob and Esau"
41528
- }
41529
- return ____exports
41530
- end,
41531
- ["src.objects.cardTypeToItemConfigCardType"] = function(...)
41532
- local ____exports = {}
41533
- local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
41534
- local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
41535
- local ItemConfigCardType = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigCardType
41536
- ____exports.DEFAULT_CARD_TYPE = ItemConfigCardType.MODDED
41537
- ____exports.CARD_TYPE_TO_ITEM_CONFIG_CARD_TYPE = {
41538
- [CardType.NULL] = ItemConfigCardType.NULL,
41539
- [CardType.FOOL] = ItemConfigCardType.TAROT,
41540
- [CardType.MAGICIAN] = ItemConfigCardType.TAROT,
41541
- [CardType.HIGH_PRIESTESS] = ItemConfigCardType.TAROT,
41542
- [CardType.EMPRESS] = ItemConfigCardType.TAROT,
41543
- [CardType.EMPEROR] = ItemConfigCardType.TAROT,
41544
- [CardType.HIEROPHANT] = ItemConfigCardType.TAROT,
41545
- [CardType.LOVERS] = ItemConfigCardType.TAROT,
41546
- [CardType.CHARIOT] = ItemConfigCardType.TAROT,
41547
- [CardType.JUSTICE] = ItemConfigCardType.TAROT,
41548
- [CardType.HERMIT] = ItemConfigCardType.TAROT,
41549
- [CardType.WHEEL_OF_FORTUNE] = ItemConfigCardType.TAROT,
41550
- [CardType.STRENGTH] = ItemConfigCardType.TAROT,
41551
- [CardType.HANGED_MAN] = ItemConfigCardType.TAROT,
41552
- [CardType.DEATH] = ItemConfigCardType.TAROT,
41553
- [CardType.TEMPERANCE] = ItemConfigCardType.TAROT,
41554
- [CardType.DEVIL] = ItemConfigCardType.TAROT,
41555
- [CardType.TOWER] = ItemConfigCardType.TAROT,
41556
- [CardType.STARS] = ItemConfigCardType.TAROT,
41557
- [CardType.MOON] = ItemConfigCardType.TAROT,
41558
- [CardType.SUN] = ItemConfigCardType.TAROT,
41559
- [CardType.JUDGEMENT] = ItemConfigCardType.TAROT,
41560
- [CardType.WORLD] = ItemConfigCardType.TAROT,
41561
- [CardType.CLUBS_2] = ItemConfigCardType.SUIT,
41562
- [CardType.DIAMONDS_2] = ItemConfigCardType.SUIT,
41563
- [CardType.SPADES_2] = ItemConfigCardType.SUIT,
41564
- [CardType.HEARTS_2] = ItemConfigCardType.SUIT,
41565
- [CardType.ACE_OF_CLUBS] = ItemConfigCardType.SUIT,
41566
- [CardType.ACE_OF_DIAMONDS] = ItemConfigCardType.SUIT,
41567
- [CardType.ACE_OF_SPADES] = ItemConfigCardType.SUIT,
41568
- [CardType.ACE_OF_HEARTS] = ItemConfigCardType.SUIT,
41569
- [CardType.JOKER] = ItemConfigCardType.SUIT,
41570
- [CardType.RUNE_HAGALAZ] = ItemConfigCardType.RUNE,
41571
- [CardType.RUNE_JERA] = ItemConfigCardType.RUNE,
41572
- [CardType.RUNE_EHWAZ] = ItemConfigCardType.RUNE,
41573
- [CardType.RUNE_DAGAZ] = ItemConfigCardType.RUNE,
41574
- [CardType.RUNE_ANSUZ] = ItemConfigCardType.RUNE,
41575
- [CardType.RUNE_PERTHRO] = ItemConfigCardType.RUNE,
41576
- [CardType.RUNE_BERKANO] = ItemConfigCardType.RUNE,
41577
- [CardType.RUNE_ALGIZ] = ItemConfigCardType.RUNE,
41578
- [CardType.RUNE_BLANK] = ItemConfigCardType.RUNE,
41579
- [CardType.RUNE_BLACK] = ItemConfigCardType.RUNE,
41580
- [CardType.CHAOS] = ItemConfigCardType.SPECIAL,
41581
- [CardType.CREDIT] = ItemConfigCardType.SPECIAL,
41582
- [CardType.RULES] = ItemConfigCardType.SPECIAL,
41583
- [CardType.AGAINST_HUMANITY] = ItemConfigCardType.SPECIAL,
41584
- [CardType.SUICIDE_KING] = ItemConfigCardType.SPECIAL,
41585
- [CardType.GET_OUT_OF_JAIL_FREE] = ItemConfigCardType.SPECIAL,
41586
- [CardType.QUESTION_MARK] = ItemConfigCardType.SPECIAL,
41587
- [CardType.DICE_SHARD] = ItemConfigCardType.SPECIAL_OBJECT,
41588
- [CardType.EMERGENCY_CONTACT] = ItemConfigCardType.SPECIAL_OBJECT,
41589
- [CardType.HOLY] = ItemConfigCardType.SPECIAL,
41590
- [CardType.HUGE_GROWTH] = ItemConfigCardType.SPECIAL,
41591
- [CardType.ANCIENT_RECALL] = ItemConfigCardType.SPECIAL,
41592
- [CardType.ERA_WALK] = ItemConfigCardType.SPECIAL,
41593
- [CardType.RUNE_SHARD] = ItemConfigCardType.RUNE,
41594
- [CardType.REVERSE_FOOL] = ItemConfigCardType.TAROT_REVERSE,
41595
- [CardType.REVERSE_MAGICIAN] = ItemConfigCardType.TAROT_REVERSE,
41596
- [CardType.REVERSE_HIGH_PRIESTESS] = ItemConfigCardType.TAROT_REVERSE,
41597
- [CardType.REVERSE_EMPRESS] = ItemConfigCardType.TAROT_REVERSE,
41598
- [CardType.REVERSE_EMPEROR] = ItemConfigCardType.TAROT_REVERSE,
41599
- [CardType.REVERSE_HIEROPHANT] = ItemConfigCardType.TAROT_REVERSE,
41600
- [CardType.REVERSE_LOVERS] = ItemConfigCardType.TAROT_REVERSE,
41601
- [CardType.REVERSE_CHARIOT] = ItemConfigCardType.TAROT_REVERSE,
41602
- [CardType.REVERSE_JUSTICE] = ItemConfigCardType.TAROT_REVERSE,
41603
- [CardType.REVERSE_HERMIT] = ItemConfigCardType.TAROT_REVERSE,
41604
- [CardType.REVERSE_WHEEL_OF_FORTUNE] = ItemConfigCardType.TAROT_REVERSE,
41605
- [CardType.REVERSE_STRENGTH] = ItemConfigCardType.TAROT_REVERSE,
41606
- [CardType.REVERSE_HANGED_MAN] = ItemConfigCardType.TAROT_REVERSE,
41607
- [CardType.REVERSE_DEATH] = ItemConfigCardType.TAROT_REVERSE,
41608
- [CardType.REVERSE_TEMPERANCE] = ItemConfigCardType.TAROT_REVERSE,
41609
- [CardType.REVERSE_DEVIL] = ItemConfigCardType.TAROT_REVERSE,
41610
- [CardType.REVERSE_TOWER] = ItemConfigCardType.TAROT_REVERSE,
41611
- [CardType.REVERSE_STARS] = ItemConfigCardType.TAROT_REVERSE,
41612
- [CardType.REVERSE_MOON] = ItemConfigCardType.TAROT_REVERSE,
41613
- [CardType.REVERSE_SUN] = ItemConfigCardType.TAROT_REVERSE,
41614
- [CardType.REVERSE_JUDGEMENT] = ItemConfigCardType.TAROT_REVERSE,
41615
- [CardType.REVERSE_WORLD] = ItemConfigCardType.TAROT_REVERSE,
41616
- [CardType.CRACKED_KEY] = ItemConfigCardType.SPECIAL_OBJECT,
41617
- [CardType.QUEEN_OF_HEARTS] = ItemConfigCardType.SUIT,
41618
- [CardType.WILD] = ItemConfigCardType.SPECIAL,
41619
- [CardType.SOUL_ISAAC] = ItemConfigCardType.RUNE,
41620
- [CardType.SOUL_MAGDALENE] = ItemConfigCardType.RUNE,
41621
- [CardType.SOUL_CAIN] = ItemConfigCardType.RUNE,
41622
- [CardType.SOUL_JUDAS] = ItemConfigCardType.RUNE,
41623
- [CardType.SOUL_BLUE_BABY] = ItemConfigCardType.RUNE,
41624
- [CardType.SOUL_EVE] = ItemConfigCardType.RUNE,
41625
- [CardType.SOUL_SAMSON] = ItemConfigCardType.RUNE,
41626
- [CardType.SOUL_AZAZEL] = ItemConfigCardType.RUNE,
41627
- [CardType.SOUL_LAZARUS] = ItemConfigCardType.RUNE,
41628
- [CardType.SOUL_EDEN] = ItemConfigCardType.RUNE,
41629
- [CardType.SOUL_LOST] = ItemConfigCardType.RUNE,
41630
- [CardType.SOUL_LILITH] = ItemConfigCardType.RUNE,
41631
- [CardType.SOUL_KEEPER] = ItemConfigCardType.RUNE,
41632
- [CardType.SOUL_APOLLYON] = ItemConfigCardType.RUNE,
41633
- [CardType.SOUL_FORGOTTEN] = ItemConfigCardType.RUNE,
41634
- [CardType.SOUL_BETHANY] = ItemConfigCardType.RUNE,
41635
- [CardType.SOUL_JACOB] = ItemConfigCardType.RUNE
41636
- }
41637
- return ____exports
41638
- end,
41639
- ["src.functions.cards"] = function(...)
41640
- local ____lualib = require("lualib_bundle")
41641
- local Map = ____lualib.Map
41642
- local __TS__New = ____lualib.__TS__New
41643
- local Set = ____lualib.Set
41644
- local __TS__Iterator = ____lualib.__TS__Iterator
41645
- local ____exports = {}
41646
- local lazyInitCardMapsSets, ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP, CARD_SET
41647
- local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
41648
- local CardType = ____isaac_2Dtypescript_2Ddefinitions.CardType
41649
- local ItemConfigCardType = ____isaac_2Dtypescript_2Ddefinitions.ItemConfigCardType
41650
- local ____cachedClasses = require("src.core.cachedClasses")
41651
- local itemConfig = ____cachedClasses.itemConfig
41652
- local ____constantsFirstLast = require("src.core.constantsFirstLast")
41653
- local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
41654
- local LAST_VANILLA_CARD_TYPE = ____constantsFirstLast.LAST_VANILLA_CARD_TYPE
41655
- local ____cardDescriptions = require("src.objects.cardDescriptions")
41656
- local CARD_DESCRIPTIONS = ____cardDescriptions.CARD_DESCRIPTIONS
41657
- local DEFAULT_CARD_DESCRIPTION = ____cardDescriptions.DEFAULT_CARD_DESCRIPTION
41658
- local ____cardNames = require("src.objects.cardNames")
41659
- local CARD_NAMES = ____cardNames.CARD_NAMES
41660
- local DEFAULT_CARD_NAME = ____cardNames.DEFAULT_CARD_NAME
41661
- local ____cardTypeToItemConfigCardType = require("src.objects.cardTypeToItemConfigCardType")
41662
- local CARD_TYPE_TO_ITEM_CONFIG_CARD_TYPE = ____cardTypeToItemConfigCardType.CARD_TYPE_TO_ITEM_CONFIG_CARD_TYPE
41663
- local DEFAULT_CARD_TYPE = ____cardTypeToItemConfigCardType.DEFAULT_CARD_TYPE
41664
- local ____enums = require("src.functions.enums")
41665
- local getEnumValues = ____enums.getEnumValues
41666
- local ____rng = require("src.functions.rng")
41667
- local getRandomSeed = ____rng.getRandomSeed
41668
- local ____set = require("src.functions.set")
41669
- local addSetsToSet = ____set.addSetsToSet
41670
- local getRandomSetElement = ____set.getRandomSetElement
41671
- local ____utils = require("src.functions.utils")
41672
- local iRange = ____utils.iRange
41673
- function lazyInitCardMapsSets(self)
41674
- for ____, cardType in ipairs(getEnumValues(nil, ItemConfigCardType)) do
41675
- ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP:set(
41676
- cardType,
41677
- __TS__New(Set)
41678
- )
41679
- end
41680
- for ____, card in ipairs(____exports.getVanillaCardTypes(nil)) do
41681
- local itemConfigCardType = ____exports.getItemConfigCardType(nil, card)
41682
- local cardTypeSet = ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP:get(itemConfigCardType)
41683
- if cardTypeSet == nil then
41684
- error("Failed to get the card set for item config card type: " .. tostring(itemConfigCardType))
41685
- end
41686
- cardTypeSet:add(card)
41687
- end
41688
- local cards = ____exports.getCardTypesOfType(
41689
- nil,
41690
- ItemConfigCardType.TAROT,
41691
- ItemConfigCardType.SUIT,
41692
- ItemConfigCardType.SPECIAL,
41693
- ItemConfigCardType.TAROT_REVERSE
41694
- )
41695
- addSetsToSet(nil, CARD_SET, cards)
41696
- end
41697
- function ____exports.getCardTypesOfType(self, ...)
41698
- local itemConfigCardTypes = {...}
41699
- if ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP.size == 0 then
41700
- lazyInitCardMapsSets(nil)
41701
- end
41702
- local matchingCardTypes = __TS__New(Set)
41703
- for ____, itemConfigCardType in ipairs(itemConfigCardTypes) do
41704
- local cardTypeSet = ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP:get(itemConfigCardType)
41705
- if cardTypeSet == nil then
41706
- error("Failed to get the card type set for item config type: " .. tostring(itemConfigCardType))
41707
- end
41708
- for ____, cardType in __TS__Iterator(cardTypeSet:values()) do
41709
- matchingCardTypes:add(cardType)
41710
- end
41711
- end
41712
- return matchingCardTypes
41713
- end
41714
- function ____exports.getItemConfigCardType(self, cardType)
41715
- local itemConfigCardType = CARD_TYPE_TO_ITEM_CONFIG_CARD_TYPE[cardType]
41716
- return itemConfigCardType == nil and DEFAULT_CARD_TYPE or itemConfigCardType
41717
- end
41718
- function ____exports.getVanillaCardTypes(self)
41719
- return iRange(nil, FIRST_CARD_TYPE, LAST_VANILLA_CARD_TYPE)
41720
- end
41721
- function ____exports.isVanillaCardType(self, cardType)
41722
- return cardType <= LAST_VANILLA_CARD_TYPE
41723
- end
41724
- ITEM_CONFIG_CARD_TYPE_TO_CARD_TYPE_MAP = __TS__New(Map)
41725
- CARD_SET = __TS__New(Set)
41726
- function ____exports.getCardDescription(self, cardType)
41727
- local cardDescription = CARD_DESCRIPTIONS[cardType]
41728
- if cardDescription ~= nil then
41729
- return cardDescription
41730
- end
41731
- local itemConfigCard = itemConfig:GetCard(cardType)
41732
- if itemConfigCard ~= nil then
41733
- return itemConfigCard.Description
41734
- end
41735
- return DEFAULT_CARD_DESCRIPTION
41736
- end
41737
- function ____exports.getCardName(self, cardType)
41738
- local cardName = CARD_NAMES[cardType]
41739
- if cardName ~= nil then
41740
- return cardName
41741
- end
41742
- local itemConfigCard = itemConfig:GetCard(cardType)
41743
- if itemConfigCard ~= nil then
41744
- return itemConfigCard.Name
41745
- end
41746
- return DEFAULT_CARD_NAME
41747
- end
41748
- function ____exports.getRandomCard(self, seedOrRNG, exceptions)
41749
- if seedOrRNG == nil then
41750
- seedOrRNG = getRandomSeed(nil)
41751
- end
41752
- if exceptions == nil then
41753
- exceptions = {}
41754
- end
41755
- return getRandomSetElement(nil, CARD_SET, seedOrRNG, exceptions)
41756
- end
41757
- function ____exports.getRandomCardTypeOfType(self, itemConfigCardType, seedOrRNG, exceptions)
41758
- if seedOrRNG == nil then
41759
- seedOrRNG = getRandomSeed(nil)
41760
- end
41761
- if exceptions == nil then
41762
- exceptions = {}
41763
- end
41764
- local cardTypeSet = ____exports.getCardTypesOfType(nil, itemConfigCardType)
41765
- return getRandomSetElement(nil, cardTypeSet, seedOrRNG, exceptions)
41766
- end
41767
- function ____exports.getRandomRune(self, seedOrRNG, exceptions)
41768
- if seedOrRNG == nil then
41769
- seedOrRNG = getRandomSeed(nil)
41770
- end
41771
- if exceptions == nil then
41772
- exceptions = {}
41773
- end
41774
- local runesSet = ____exports.getCardTypesOfType(nil, ItemConfigCardType.RUNE)
41775
- runesSet:delete(CardType.RUNE_SHARD)
41776
- return getRandomSetElement(nil, runesSet, seedOrRNG, exceptions)
41777
- end
41778
- function ____exports.isCard(self, cardType)
41779
- return CARD_SET:has(cardType)
41780
- end
41781
- function ____exports.isCardType(self, cardType, itemConfigCardType)
41782
- return itemConfigCardType == ____exports.getItemConfigCardType(nil, cardType)
41783
- end
41784
- function ____exports.isModdedCardType(self, cardType)
41785
- return not ____exports.isVanillaCardType(nil, cardType)
41786
- end
41787
- function ____exports.isPocketItemObject(self, cardType)
41788
- return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL_OBJECT)
41789
- end
41790
- function ____exports.isReverseTarotCard(self, cardType)
41791
- return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT_REVERSE)
41792
- end
41793
- function ____exports.isRune(self, cardType)
41794
- return ____exports.isCardType(nil, cardType, ItemConfigCardType.RUNE)
41795
- end
41796
- function ____exports.isSpecialCard(self, cardType)
41797
- return ____exports.isCardType(nil, cardType, ItemConfigCardType.SPECIAL)
41798
- end
41799
- function ____exports.isSuitCard(self, cardType)
41800
- return ____exports.isCardType(nil, cardType, ItemConfigCardType.SUIT)
41801
- end
41802
- function ____exports.isTarotCard(self, cardType)
41803
- return ____exports.isCardType(nil, cardType, ItemConfigCardType.TAROT)
41804
- end
41805
41787
  return ____exports
41806
41788
  end,
41807
41789
  ["src.enums.SerializationType"] = function(...)
@@ -48724,6 +48706,8 @@ local ____exports = {}
48724
48706
  local getExportedMethodsFromFeature
48725
48707
  local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
48726
48708
  local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
48709
+ local ____CallbackPriority = require("lua_modules.isaac-typescript-definitions.dist.src.enums.CallbackPriority")
48710
+ local CallbackPriority = ____CallbackPriority.CallbackPriority
48727
48711
  local ____callbacks = require("src.callbacks")
48728
48712
  local getCallbacks = ____callbacks.getCallbacks
48729
48713
  local ____decorators = require("src.decorators")
@@ -48774,12 +48758,16 @@ function ModUpgradedBase.prototype.____constructor(self, mod, ____debug, timeThr
48774
48758
  self.features = getFeatures(nil, self, self.callbacks)
48775
48759
  end
48776
48760
  function ModUpgradedBase.prototype.AddCallback(self, modCallback, ...)
48761
+ self:AddPriorityCallback(modCallback, CallbackPriority.DEFAULT, ...)
48762
+ end
48763
+ function ModUpgradedBase.prototype.AddPriorityCallback(self, modCallback, priority, ...)
48777
48764
  local args = {...}
48778
48765
  if self.debug then
48779
48766
  local callback = args[1]
48780
48767
  local optionalArg = args[2]
48781
48768
  local parentFunctionDescription = getParentFunctionDescription(nil)
48782
- local callbackName = "ModCallback." .. ModCallback[modCallback]
48769
+ local customCallback = type(modCallback) == "string"
48770
+ local callbackName = customCallback and tostring(modCallback) .. " (custom callback)" or "ModCallback." .. ModCallback[modCallback]
48783
48771
  local signature = parentFunctionDescription == nil and callbackName or (parentFunctionDescription .. " - ") .. callbackName
48784
48772
  local function callbackWithLogger(____, ...)
48785
48773
  local startTime = getTime(nil)
@@ -48795,13 +48783,15 @@ function ModUpgradedBase.prototype.AddCallback(self, modCallback, ...)
48795
48783
  return returnValue
48796
48784
  end
48797
48785
  local newArgs = {callbackWithLogger, optionalArg}
48798
- self.mod:AddCallback(
48786
+ self.mod:AddPriorityCallback(
48799
48787
  modCallback,
48800
- __TS__Spread(newArgs)
48788
+ priority,
48789
+ table.unpack(newArgs)
48801
48790
  )
48802
48791
  else
48803
- self.mod:AddCallback(
48792
+ self.mod:AddPriorityCallback(
48804
48793
  modCallback,
48794
+ priority,
48805
48795
  __TS__Spread(args)
48806
48796
  )
48807
48797
  end
@@ -48837,7 +48827,7 @@ function ModUpgradedBase.prototype.logUsedFeatures(self)
48837
48827
  local callbackClass = ____value[2]
48838
48828
  do
48839
48829
  if callbackClass.numConsumers == 0 then
48840
- goto __continue17
48830
+ goto __continue18
48841
48831
  end
48842
48832
  local modCallbackCustom = tonumber(modCallbackCustomString)
48843
48833
  if modCallbackCustom == nil then
@@ -48848,14 +48838,14 @@ function ModUpgradedBase.prototype.logUsedFeatures(self)
48848
48838
  ((("- ModCallbackCustom." .. tostring(ModCallbackCustom[modCallbackCustom])) .. " (") .. tostring(modCallbackCustom)) .. ")"
48849
48839
  )
48850
48840
  end
48851
- ::__continue17::
48841
+ ::__continue18::
48852
48842
  end
48853
48843
  for ____, ____value in ipairs(__TS__ObjectEntries(self.features)) do
48854
48844
  local iscFeatureString = ____value[1]
48855
48845
  local featureClass = ____value[2]
48856
48846
  do
48857
48847
  if featureClass.numConsumers == 0 then
48858
- goto __continue21
48848
+ goto __continue22
48859
48849
  end
48860
48850
  local iscFeature = tonumber(iscFeatureString)
48861
48851
  if iscFeature == nil then
@@ -48866,7 +48856,7 @@ function ModUpgradedBase.prototype.logUsedFeatures(self)
48866
48856
  ((("- ISCFeature." .. tostring(ISCFeature[iscFeature])) .. " (") .. tostring(iscFeature)) .. ")"
48867
48857
  )
48868
48858
  end
48869
- ::__continue21::
48859
+ ::__continue22::
48870
48860
  end
48871
48861
  end
48872
48862
  function ModUpgradedBase.prototype.initFeature(self, feature)
@@ -48968,6 +48958,19 @@ function ModUpgradedBase.prototype.initCustomCallbackEarly(self, modCallbackCust
48968
48958
  local callbackClass = self.callbacks[modCallbackCustom]
48969
48959
  self:initFeature(callbackClass)
48970
48960
  end
48961
+ return ____exports
48962
+ end,
48963
+ ["lua_modules.isaac-typescript-definitions.dist.src.enums.CallbackPriority"] = function(...)
48964
+ local ____exports = {}
48965
+ ____exports.CallbackPriority = {}
48966
+ ____exports.CallbackPriority.IMPORTANT = -200
48967
+ ____exports.CallbackPriority[____exports.CallbackPriority.IMPORTANT] = "IMPORTANT"
48968
+ ____exports.CallbackPriority.EARLY = -100
48969
+ ____exports.CallbackPriority[____exports.CallbackPriority.EARLY] = "EARLY"
48970
+ ____exports.CallbackPriority.DEFAULT = 0
48971
+ ____exports.CallbackPriority[____exports.CallbackPriority.DEFAULT] = "DEFAULT"
48972
+ ____exports.CallbackPriority.LATE = 100
48973
+ ____exports.CallbackPriority[____exports.CallbackPriority.LATE] = "LATE"
48971
48974
  return ____exports
48972
48975
  end,
48973
48976
  ["src.classes.ModFeature"] = function(...)
@@ -49256,6 +49259,7 @@ return ____exports
49256
49259
  end,
49257
49260
  ["src.core.upgradeMod"] = function(...)
49258
49261
  local ____lualib = require("lualib_bundle")
49262
+ local __TS__Iterator = ____lualib.__TS__Iterator
49259
49263
  local __TS__New = ____lualib.__TS__New
49260
49264
  local ____exports = {}
49261
49265
  local initOptionalFeatures, initCallbacksEarly
@@ -49291,6 +49295,12 @@ function ____exports.upgradeMod(self, modVanilla, features, customCallbacksUsed,
49291
49295
  if ____debug == nil then
49292
49296
  ____debug = false
49293
49297
  end
49298
+ for ____, feature in __TS__Iterator(features) do
49299
+ local featureType = type(feature)
49300
+ if featureType ~= "number" then
49301
+ error(("Failed to upgrade the mod due to one of the specified features being of type \"" .. featureType) .. "\". (All of the features should be numbers represented by the \"ISCFeature\" enum.)")
49302
+ end
49303
+ end
49294
49304
  patchErrorFunction(nil)
49295
49305
  local mod = __TS__New(ModUpgradedBase, modVanilla, ____debug, timeThreshold)
49296
49306
  applyShaderCrashFix(nil, mod)
@@ -49744,7 +49754,6 @@ local DEFAULT_GLOBALS = __TS__New(Set, {
49744
49754
  "SackSubType",
49745
49755
  "SeedEffect",
49746
49756
  "Seeds",
49747
- "ShockwaveParams",
49748
49757
  "SkinColor",
49749
49758
  "SortingLayer",
49750
49759
  "SoundEffect",