isaacscript-common 1.0.598 → 1.0.602

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 (66) hide show
  1. package/dist/callbacks/postFlip.lua +1 -2
  2. package/dist/callbacks/postPurchase.lua +7 -6
  3. package/dist/callbacks/preBerserkDeath.lua +3 -1
  4. package/dist/callbacks/preNewLevel.lua +7 -5
  5. package/dist/callbacks/subscriptions/{PreNewLevel.d.ts → preNewLevel.d.ts} +0 -0
  6. package/dist/callbacks/subscriptions/{PreNewLevel.lua → preNewLevel.lua} +0 -0
  7. package/dist/constants.d.ts +1 -0
  8. package/dist/constants.lua +1 -0
  9. package/dist/features/getCollectibleItemPoolType.d.ts +2 -2
  10. package/dist/features/saveDataManager/exports.lua +5 -0
  11. package/dist/features/sirenHelpers.lua +3 -1
  12. package/dist/functions/array.d.ts +5 -2
  13. package/dist/functions/array.lua +26 -31
  14. package/dist/functions/collectibles.d.ts +5 -0
  15. package/dist/functions/collectibles.lua +11 -11
  16. package/dist/functions/entity.d.ts +10 -10
  17. package/dist/functions/entity.lua +29 -31
  18. package/dist/functions/gridEntity.lua +7 -6
  19. package/dist/functions/input.d.ts +2 -2
  20. package/dist/functions/jsonRoom.lua +36 -27
  21. package/dist/functions/log.d.ts +4 -4
  22. package/dist/functions/log.lua +15 -18
  23. package/dist/functions/npc.lua +17 -23
  24. package/dist/functions/player.d.ts +8 -1
  25. package/dist/functions/player.lua +49 -42
  26. package/dist/functions/pocketItems.lua +4 -6
  27. package/dist/functions/rooms.lua +26 -33
  28. package/dist/functions/transformations.lua +3 -1
  29. package/dist/functions/trinkets.lua +4 -12
  30. package/dist/types/CallbackParametersCustom.d.ts +1 -1
  31. package/dist/types/ModUpgraded.lua +3 -5
  32. package/package.json +2 -2
  33. package/dist/callbacks/postSlot.d.ts +0 -2
  34. package/dist/callbacks/postSlot.lua +0 -48
  35. package/dist/callbacks/postSlotRender.d.ts +0 -2
  36. package/dist/callbacks/postSlotRender.lua +0 -20
  37. package/dist/callbacks/subscriptions/postPlayerUpdateReordered - Copy.d.ts +0 -5
  38. package/dist/callbacks/subscriptions/postPlayerUpdateReordered - Copy.lua +0 -26
  39. package/dist/cardNameMap.d.ts +0 -2
  40. package/dist/cardNameMap.lua +0 -5
  41. package/dist/collectibleNameMap.d.ts +0 -2
  42. package/dist/collectibleNameMap.lua +0 -5
  43. package/dist/collectibleSet.d.ts +0 -1
  44. package/dist/collectibleSet.lua +0 -22
  45. package/dist/functions/card.d.ts +0 -25
  46. package/dist/functions/card.lua +0 -41
  47. package/dist/functions/items.d.ts +0 -9
  48. package/dist/functions/items.lua +0 -9
  49. package/dist/functions/localization.d.ts +0 -2
  50. package/dist/functions/localization.lua +0 -8
  51. package/dist/functions/sound.d.ts +0 -7
  52. package/dist/functions/sound.lua +0 -7
  53. package/dist/gridEntityMap.d.ts +0 -2
  54. package/dist/gridEntityMap.lua +0 -5
  55. package/dist/maps/roomTypeToItemPoolMap.d.ts +0 -2
  56. package/dist/maps/roomTypeToItemPoolMap.lua +0 -19
  57. package/dist/maps/transformationMap.d.ts +0 -5
  58. package/dist/maps/transformationMap.lua +0 -56
  59. package/dist/patchPrintFunction.d.ts +0 -1
  60. package/dist/patchPrintFunction.lua +0 -45
  61. package/dist/pillEffectNameMap.d.ts +0 -2
  62. package/dist/pillEffectNameMap.lua +0 -5
  63. package/dist/transformationMap.d.ts +0 -5
  64. package/dist/transformationMap.lua +0 -56
  65. package/dist/trinketNameMap.d.ts +0 -2
  66. package/dist/trinketNameMap.lua +0 -5
@@ -43,7 +43,7 @@ import { PostTrinketBreakCallbackType } from "../callbacks/subscriptions/postTri
43
43
  import { PreBerserkDeathCallbackType } from "../callbacks/subscriptions/preBerserkDeath";
44
44
  import { PreCustomReviveCallbackType } from "../callbacks/subscriptions/preCustomRevive";
45
45
  import { PreItemPickupCallbackType } from "../callbacks/subscriptions/preItemPickup";
46
- import { PreNewLevelCallbackType } from "../callbacks/subscriptions/PreNewLevel";
46
+ import { PreNewLevelCallbackType } from "../callbacks/subscriptions/preNewLevel";
47
47
  import { ModCallbacksCustom } from "./ModCallbacksCustom";
48
48
  export interface CallbackParametersCustom {
49
49
  [ModCallbacksCustom.MC_POST_GAME_STARTED_REORDERED]: [
@@ -90,8 +90,8 @@ local ____preCustomRevive = require("callbacks.subscriptions.preCustomRevive")
90
90
  local preCustomReviveRegister = ____preCustomRevive.preCustomReviveRegister
91
91
  local ____preItemPickup = require("callbacks.subscriptions.preItemPickup")
92
92
  local preItemPickupRegister = ____preItemPickup.preItemPickupRegister
93
- local ____PreNewLevel = require("callbacks.subscriptions.PreNewLevel")
94
- local preNewLevelRegister = ____PreNewLevel.preNewLevelRegister
93
+ local ____preNewLevel = require("callbacks.subscriptions.preNewLevel")
94
+ local preNewLevelRegister = ____preNewLevel.preNewLevelRegister
95
95
  local ____log = require("functions.log")
96
96
  local getDebugPrependString = ____log.getDebugPrependString
97
97
  local ____util = require("functions.util")
@@ -384,9 +384,7 @@ function getCallbackRegisterFunction(self, callbackID)
384
384
  do
385
385
  do
386
386
  ensureAllCases(nil, callbackID)
387
- error(("The custom callback ID of \"" .. tostring(callbackID)) .. "\" is not valid.")
388
- return function()
389
- end
387
+ return error(("The custom callback ID of \"" .. tostring(callbackID)) .. "\" is not valid.")
390
388
  end
391
389
  end
392
390
  until true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.598",
3
+ "version": "1.0.602",
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.331",
28
+ "isaac-typescript-definitions": "^1.0.332",
29
29
  "isaacscript-lint": "^1.0.79",
30
30
  "isaacscript-tsconfig": "^1.1.8",
31
31
  "typedoc": "^0.22.11",
@@ -1,2 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare function postSlotCallbacksInit(mod: Mod): void;
@@ -1,48 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- local hasSubscriptions, postUpdate, postNewRoom, checkNewEntity, v
5
- local ____exports = require("features.saveDataManager.exports")
6
- local saveDataManager = ____exports.saveDataManager
7
- local postSlotInit = require("callbacks.subscriptions.postSlotInit")
8
- local postSlotUpdate = require("callbacks.subscriptions.postSlotUpdate")
9
- function hasSubscriptions(self)
10
- return postSlotInit:hasSubscriptions() or postSlotUpdate:hasSubscriptions()
11
- end
12
- function postUpdate(self)
13
- if not hasSubscriptions(nil) then
14
- return
15
- end
16
- local slots = Isaac.FindByType(EntityType.ENTITY_SLOT)
17
- for ____, slot in ipairs(slots) do
18
- checkNewEntity(nil, slot)
19
- postSlotUpdate:fire(slot)
20
- end
21
- end
22
- function postNewRoom(self)
23
- if not hasSubscriptions(nil) then
24
- return
25
- end
26
- local slots = Isaac.FindByType(EntityType.ENTITY_SLOT)
27
- for ____, slot in ipairs(slots) do
28
- checkNewEntity(nil, slot)
29
- end
30
- end
31
- function checkNewEntity(self, slot)
32
- local ptrHash = GetPtrHash(slot)
33
- if not v.room.initializedSlots:has(ptrHash) then
34
- v.room.initializedSlots:add(ptrHash)
35
- postSlotInit:fire(slot)
36
- end
37
- end
38
- v = {
39
- room = {
40
- initializedSlots = __TS__New(Set)
41
- }
42
- }
43
- function ____exports.postSlotCallbacksInit(self, mod)
44
- saveDataManager(nil, "postSlot", v, hasSubscriptions)
45
- mod:AddCallback(ModCallbacks.MC_POST_UPDATE, postUpdate)
46
- mod:AddCallback(ModCallbacks.MC_POST_NEW_ROOM, postNewRoom)
47
- end
48
- return ____exports
@@ -1,2 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare function postSlotRenderCallbackInit(mod: Mod): void;
@@ -1,20 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- local ____exports = {}
3
- local hasSubscriptions, postRender
4
- local postSlotRender = require("callbacks.subscriptions.postSlotRender")
5
- function hasSubscriptions(self)
6
- return postSlotRender:hasSubscriptions()
7
- end
8
- function postRender(self)
9
- if not hasSubscriptions(nil) then
10
- return
11
- end
12
- local slots = Isaac.FindByType(EntityType.ENTITY_SLOT)
13
- for ____, slot in ipairs(slots) do
14
- postSlotRender:fire(slot)
15
- end
16
- end
17
- function ____exports.postSlotRenderCallbackInit(self, mod)
18
- mod:AddCallback(ModCallbacks.MC_POST_RENDER, postRender)
19
- end
20
- return ____exports
@@ -1,5 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare type PostPlayerUpdateReorderedCallbackType = (player: EntityPlayer) => void;
3
- export declare function hasSubscriptions(): boolean;
4
- export declare function register(callback: PostPlayerUpdateReorderedCallbackType, playerVariant?: PlayerVariant): void;
5
- export declare function fire(player: EntityPlayer): void;
@@ -1,26 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- local subscriptions = {}
5
- function ____exports.hasSubscriptions(self)
6
- return #subscriptions > 0
7
- end
8
- function ____exports.register(self, callback, playerVariant)
9
- __TS__ArrayPush(subscriptions, {callback, playerVariant})
10
- end
11
- function ____exports.fire(self, player)
12
- for ____, ____value in ipairs(subscriptions) do
13
- local callback
14
- callback = ____value[1]
15
- local playerVariant
16
- playerVariant = ____value[2]
17
- do
18
- if (playerVariant ~= nil) and (playerVariant ~= player.Variant) then
19
- goto __continue5
20
- end
21
- callback(nil, player)
22
- end
23
- ::__continue5::
24
- end
25
- end
26
- return ____exports
@@ -1,2 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare const CARD_NAME_MAP: Map<Card, string>;
@@ -1,5 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- ____exports.CARD_NAME_MAP = __TS__New(Map, {{Card.CARD_FOOL, "0 - The Fool"}, {Card.CARD_MAGICIAN, "I - The Magician"}, {Card.CARD_HIGH_PRIESTESS, "II - The High Priestess"}, {Card.CARD_EMPRESS, "III - The Empress"}, {Card.CARD_EMPEROR, "IV - The Emperor"}, {Card.CARD_HIEROPHANT, "V - The Hierophant"}, {Card.CARD_LOVERS, "VI - The Lovers"}, {Card.CARD_CHARIOT, "VII - The Chariot"}, {Card.CARD_JUSTICE, "VIII - Justice"}, {Card.CARD_HERMIT, "IX - The Hermit"}, {Card.CARD_WHEEL_OF_FORTUNE, "X - Wheel of Fortune"}, {Card.CARD_STRENGTH, "XI - Strength"}, {Card.CARD_HANGED_MAN, "XII - The Hanged Man"}, {Card.CARD_DEATH, "XIII - Death"}, {Card.CARD_TEMPERANCE, "XIV - Temperance"}, {Card.CARD_DEVIL, "XV - The Devil"}, {Card.CARD_TOWER, "XVI - The Tower"}, {Card.CARD_STARS, "XVII - The Stars"}, {Card.CARD_MOON, "XVIII - The Moon"}, {Card.CARD_SUN, "XIX - The Sun"}, {Card.CARD_JUDGEMENT, "XX - Judgement"}, {Card.CARD_WORLD, "XXI - The World"}, {Card.CARD_CLUBS_2, "2 of Clubs"}, {Card.CARD_DIAMONDS_2, "2 of Diamonds"}, {Card.CARD_SPADES_2, "2 of Spades"}, {Card.CARD_HEARTS_2, "2 of Hearts"}, {Card.CARD_ACE_OF_CLUBS, "Ace of Clubs"}, {Card.CARD_ACE_OF_DIAMONDS, "Ace of Diamonds"}, {Card.CARD_ACE_OF_SPADES, "Ace of Spades"}, {Card.CARD_ACE_OF_HEARTS, "Ace of Hearts"}, {Card.CARD_JOKER, "Joker"}, {Card.RUNE_HAGALAZ, "Hagalaz"}, {Card.RUNE_JERA, "Jera"}, {Card.RUNE_EHWAZ, "Ehwaz"}, {Card.RUNE_DAGAZ, "Dagaz"}, {Card.RUNE_ANSUZ, "Ansuz"}, {Card.RUNE_PERTHRO, "Perthro"}, {Card.RUNE_BERKANO, "Berkano"}, {Card.RUNE_ALGIZ, "Algiz"}, {Card.RUNE_BLANK, "Blank Rune"}, {Card.RUNE_BLACK, "Black Rune"}, {Card.CARD_CHAOS, "Chaos Card"}, {Card.CARD_CREDIT, "Credit Card"}, {Card.CARD_RULES, "Rules Card"}, {Card.CARD_HUMANITY, "A Card Against Humanity"}, {Card.CARD_SUICIDE_KING, "Suicide King"}, {Card.CARD_GET_OUT_OF_JAIL, "Get Out Of Jail Free Card"}, {Card.CARD_QUESTIONMARK, "? Card"}, {Card.CARD_DICE_SHARD, "Dice Shard"}, {Card.CARD_EMERGENCY_CONTACT, "Emergency Contact"}, {Card.CARD_HOLY, "Holy Card"}, {Card.CARD_HUGE_GROWTH, "Huge Growth"}, {Card.CARD_ANCIENT_RECALL, "Ancient Recall"}, {Card.CARD_ERA_WALK, "Era Walk"}, {Card.RUNE_SHARD, "Rune Shard"}, {Card.CARD_REVERSE_FOOL, "0 - The Fool?"}, {Card.CARD_REVERSE_MAGICIAN, "I - The Magician?"}, {Card.CARD_REVERSE_HIGH_PRIESTESS, "II - The High Priestess?"}, {Card.CARD_REVERSE_EMPRESS, "III - The Empress?"}, {Card.CARD_REVERSE_EMPEROR, "IV - The Emperor?"}, {Card.CARD_REVERSE_HIEROPHANT, "V - The Hierophant?"}, {Card.CARD_REVERSE_LOVERS, "VI - The Lovers?"}, {Card.CARD_REVERSE_CHARIOT, "VII - The Chariot?"}, {Card.CARD_REVERSE_JUSTICE, "VIII - Justice?"}, {Card.CARD_REVERSE_HERMIT, "IX - The Hermit?"}, {Card.CARD_REVERSE_WHEEL_OF_FORTUNE, "X - Wheel of Fortune?"}, {Card.CARD_REVERSE_STRENGTH, "XI - Strength?"}, {Card.CARD_REVERSE_HANGED_MAN, "XII - The Hanged Man?"}, {Card.CARD_REVERSE_DEATH, "XIII - Death?"}, {Card.CARD_REVERSE_TEMPERANCE, "XIV - Temperance?"}, {Card.CARD_REVERSE_DEVIL, "XV - The Devil?"}, {Card.CARD_REVERSE_TOWER, "XVI - The Tower?"}, {Card.CARD_REVERSE_STARS, "XVII - The Stars?"}, {Card.CARD_REVERSE_MOON, "XVIII - The Moon?"}, {Card.CARD_REVERSE_SUN, "XIX - The Sun?"}, {Card.CARD_REVERSE_JUDGEMENT, "XX - Judgement?"}, {Card.CARD_REVERSE_WORLD, "XXI - The World?"}, {Card.CARD_CRACKED_KEY, "Cracked Key"}, {Card.CARD_QUEEN_OF_HEARTS, "Queen of Hearts"}, {Card.CARD_WILD, "Wild Card"}, {Card.CARD_SOUL_ISAAC, "Soul of Isaac"}, {Card.CARD_SOUL_MAGDALENE, "Soul of Magdalene"}, {Card.CARD_SOUL_CAIN, "Soul of Cain"}, {Card.CARD_SOUL_JUDAS, "Soul of Judas"}, {Card.CARD_SOUL_BLUEBABY, "Soul of ???"}, {Card.CARD_SOUL_EVE, "Soul of Eve"}, {Card.CARD_SOUL_SAMSON, "Soul of Samson"}, {Card.CARD_SOUL_AZAZEL, "Soul of Azazel"}, {Card.CARD_SOUL_LAZARUS, "Soul of Lazarus"}, {Card.CARD_SOUL_EDEN, "Soul of Eden"}, {Card.CARD_SOUL_LOST, "Soul of the Lost"}, {Card.CARD_SOUL_LILITH, "Soul of Lilith"}, {Card.CARD_SOUL_KEEPER, "Soul of the Keeper"}, {Card.CARD_SOUL_APOLLYON, "Soul of Apollyon"}, {Card.CARD_SOUL_FORGOTTEN, "Soul of the Forgotten"}, {Card.CARD_SOUL_BETHANY, "Soul of Bethany"}, {Card.CARD_SOUL_JACOB, "Soul of Jacob and Esau"}})
5
- return ____exports
@@ -1,2 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare const COLLECTIBLE_NAME_MAP: Map<CollectibleType, string>;
@@ -1,5 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- ____exports.COLLECTIBLE_NAME_MAP = __TS__New(Map, {{1, "The Sad Onion"}, {2, "The Inner Eye"}, {3, "Spoon Bender"}, {4, "Cricket's Head"}, {5, "My Reflection"}, {6, "Number One"}, {7, "Blood of the Martyr"}, {8, "Brother Bobby"}, {9, "Skatole"}, {10, "Halo of Flies"}, {11, "1up!"}, {12, "Magic Mushroom"}, {13, "The Virus"}, {14, "Roid Rage"}, {15, "<3"}, {16, "Raw Liver"}, {17, "Skeleton Key"}, {18, "A Dollar"}, {19, "Boom!"}, {20, "Transcendence"}, {21, "The Compass"}, {22, "Lunch"}, {23, "Dinner"}, {24, "Dessert"}, {25, "Breakfast"}, {26, "Rotten Meat"}, {27, "Wooden Spoon"}, {28, "The Belt"}, {29, "Mom's Underwear"}, {30, "Mom's Heels"}, {31, "Mom's Lipstick"}, {32, "Wire Coat Hanger"}, {33, "The Bible"}, {34, "The Book of Belial"}, {35, "The Necronomicon"}, {36, "The Poop"}, {37, "Mr. Boom"}, {38, "Tammy's Head"}, {39, "Mom's Bra"}, {40, "Kamikaze!"}, {41, "Mom's Pad"}, {42, "Bob's Rotten Head"}, {44, "Teleport!"}, {45, "Yum Heart"}, {46, "Lucky Foot"}, {47, "Doctor's Remote"}, {48, "Cupid's Arrow"}, {49, "Shoop da Whoop!"}, {50, "Steven"}, {51, "Pentagram"}, {52, "Dr. Fetus"}, {53, "Magneto"}, {54, "Treasure Map"}, {55, "Mom's Eye"}, {56, "Lemon Mishap"}, {57, "Distant Admiration"}, {58, "Book of Shadows"}, {60, "The Ladder"}, {62, "Charm of the Vampire"}, {63, "The Battery"}, {64, "Steam Sale"}, {65, "Anarchist Cookbook"}, {66, "The Hourglass"}, {67, "Sister Maggy"}, {68, "Technology"}, {69, "Chocolate Milk"}, {70, "Growth Hormones"}, {71, "Mini Mush"}, {72, "Rosary"}, {73, "Cube of Meat"}, {74, "A Quarter"}, {75, "PHD"}, {76, "X-Ray Vision"}, {77, "My Little Unicorn"}, {78, "Book of Revelations"}, {79, "The Mark"}, {80, "The Pact"}, {81, "Dead Cat"}, {82, "Lord of the Pit"}, {83, "The Nail"}, {84, "We Need To Go Deeper!"}, {85, "Deck of Cards"}, {86, "Monstro's Tooth"}, {87, "Loki's Horns"}, {88, "Little Chubby"}, {89, "Spider Bite"}, {90, "The Small Rock"}, {91, "Spelunker Hat"}, {92, "Super Bandage"}, {93, "The Gamekid"}, {94, "Sack of Pennies"}, {95, "Robo-Baby"}, {96, "Little C.H.A.D."}, {97, "The Book of Sin"}, {98, "The Relic"}, {99, "Little Gish"}, {100, "Little Steven"}, {101, "The Halo"}, {102, "Mom's Bottle of Pills"}, {103, "The Common Cold"}, {104, "The Parasite"}, {105, "The D6"}, {106, "Mr. Mega"}, {107, "The Pinking Shears"}, {108, "The Wafer"}, {109, "Money = Power"}, {110, "Mom's Contacts"}, {111, "The Bean"}, {112, "Guardian Angel"}, {113, "Demon Baby"}, {114, "Mom's Knife"}, {115, "Ouija Board"}, {116, "9 Volt"}, {117, "Dead Bird"}, {118, "Brimstone"}, {119, "Blood Bag"}, {120, "Odd Mushroom"}, {121, "Odd Mushroom"}, {122, "Whore of Babylon"}, {123, "Monster Manual"}, {124, "Dead Sea Scrolls"}, {125, "Bobby-Bomb"}, {126, "Razor Blade"}, {127, "Forget Me Now"}, {128, "Forever Alone"}, {129, "Bucket of Lard"}, {130, "A Pony"}, {131, "Bomb Bag"}, {132, "A Lump of Coal"}, {133, "Guppy's Paw"}, {134, "Guppy's Tail"}, {135, "IV Bag"}, {136, "Best Friend"}, {137, "Remote Detonator"}, {138, "Stigmata"}, {139, "Mom's Purse"}, {140, "Bob's Curse"}, {141, "Pageant Boy"}, {142, "Scapular"}, {143, "Speed Ball"}, {144, "Bum Friend"}, {145, "Guppy's Head"}, {146, "Prayer Card"}, {147, "Notched Axe"}, {148, "Infestation"}, {149, "Ipecac"}, {150, "Tough Love"}, {151, "The Mulligan"}, {152, "Technology 2"}, {153, "Mutant Spider"}, {154, "Chemical Peel"}, {155, "The Peeper"}, {156, "Habit"}, {157, "Bloody Lust"}, {158, "Crystal Ball"}, {159, "Spirit of the Night"}, {160, "Crack the Sky"}, {161, "Ankh"}, {162, "Celtic Cross"}, {163, "Ghost Baby"}, {164, "The Candle"}, {165, "Cat-o-nine-tails"}, {166, "D20"}, {167, "Harlequin Baby"}, {168, "Epic Fetus"}, {169, "Polyphemus"}, {170, "Daddy Longlegs"}, {171, "Spider Butt"}, {172, "Sacrificial Dagger"}, {173, "Mitre"}, {174, "Rainbow Baby"}, {175, "Dad's Key"}, {176, "Stem Cells"}, {177, "Portable Slot"}, {178, "Holy Water"}, {179, "Fate"}, {180, "The Black Bean"}, {181, "White Pony"}, {182, "Sacred Heart"}, {183, "Tooth Picks"}, {184, "Holy Grail"}, {185, "Dead Dove"}, {186, "Blood Rights"}, {187, "Guppy's Hairball"}, {188, "Abel"}, {189, "SMB Super Fan"}, {190, "Pyro"}, {191, "3 Dollar Bill"}, {192, "Telepathy For Dummies"}, {193, "MEAT!"}, {194, "Magic 8 Ball"}, {195, "Mom's Coin Purse"}, {196, "Squeezy"}, {197, "Jesus Juice"}, {198, "Box"}, {199, "Mom's Key"}, {200, "Mom's Eyeshadow"}, {201, "Iron Bar"}, {202, "Midas' Touch"}, {203, "Humbleing Bundle"}, {204, "Fanny Pack"}, {205, "Sharp Plug"}, {206, "Guillotine"}, {207, "Ball of Bandages"}, {208, "Champion Belt"}, {209, "Butt Bombs"}, {210, "Gnawed Leaf"}, {211, "Spiderbaby"}, {212, "Guppy's Collar"}, {213, "Lost Contact"}, {214, "Anemic"}, {215, "Goat Head"}, {216, "Ceremonial Robes"}, {217, "Mom's Wig"}, {218, "Placenta"}, {219, "Old Bandage"}, {220, "Sad Bombs"}, {221, "Rubber Cement"}, {222, "Anti-Gravity"}, {223, "Pyromaniac"}, {224, "Cricket's Body"}, {225, "Gimpy"}, {226, "Black Lotus"}, {227, "Piggy Bank"}, {228, "Mom's Perfume"}, {229, "Monstro's Lung"}, {230, "Abaddon"}, {231, "Ball of Tar"}, {232, "Stop Watch"}, {233, "Tiny Planet"}, {234, "Infestation 2"}, {236, "E. Coli"}, {237, "Death's Touch"}, {238, "Key Piece 1"}, {239, "Key Piece 2"}, {240, "Experimental Treatment"}, {241, "Contract from Below"}, {242, "Infamy"}, {243, "Trinity Shield"}, {244, "Tech.5"}, {245, "20/20"}, {246, "Blue Map"}, {247, "BFFS!"}, {248, "Hive Mind"}, {249, "There's Options"}, {250, "BOGO Bombs"}, {251, "Starter Deck"}, {252, "Little Baggy"}, {253, "Magic Scab"}, {254, "Blood Clot"}, {255, "Screw"}, {256, "Hot Bombs"}, {257, "Fire Mind"}, {258, "Missing No."}, {259, "Dark Matter"}, {260, "Black Candle"}, {261, "Proptosis"}, {262, "Missing Page 2"}, {263, "Clear Rune"}, {264, "Smart Fly"}, {265, "Dry Baby"}, {266, "Juicy Sack"}, {267, "Robo-Baby 2.0"}, {268, "Rotten Baby"}, {269, "Headless Baby"}, {270, "Leech"}, {271, "Mystery Sack"}, {272, "BBF"}, {273, "Bob's Brain"}, {274, "Best Bud"}, {275, "Lil Brimstone"}, {276, "Isaac's Heart"}, {277, "Lil Haunt"}, {278, "Dark Bum"}, {279, "Big Fan"}, {280, "Sissy Longlegs"}, {281, "Punching Bag"}, {282, "How to Jump"}, {283, "D100"}, {284, "D4"}, {285, "D10"}, {286, "Blank Card"}, {287, "Book of Secrets"}, {288, "Box of Spiders"}, {289, "Red Candle"}, {290, "The Jar"}, {291, "Flush!"}, {292, "Satanic Bible"}, {293, "Head of Krampus"}, {294, "Butter Bean"}, {295, "Magic Fingers"}, {296, "Converter"}, {297, "Pandora's Box"}, {298, "Unicorn Stump"}, {299, "Taurus"}, {300, "Aries"}, {301, "Cancer"}, {302, "Leo"}, {303, "Virgo"}, {304, "Libra"}, {305, "Scorpio"}, {306, "Sagittarius"}, {307, "Capricorn"}, {308, "Aquarius"}, {309, "Pisces"}, {310, "Eve's Mascara"}, {311, "Judas' Shadow"}, {312, "Maggy's Bow"}, {313, "Holy Mantle"}, {314, "Thunder Thighs"}, {315, "Strange Attractor"}, {316, "Cursed Eye"}, {317, "Mysterious Liquid"}, {318, "Gemini"}, {319, "Cain's Other Eye"}, {320, "???'s Only Friend"}, {321, "Samson's Chains"}, {322, "Mongo Baby"}, {323, "Isaac's Tears"}, {324, "Undefined"}, {325, "Scissors"}, {326, "Breath of Life"}, {327, "The Polaroid"}, {328, "The Negative"}, {329, "The Ludovico Technique"}, {330, "Soy Milk"}, {331, "Godhead"}, {332, "Lazarus' Rags"}, {333, "The Mind"}, {334, "The Body"}, {335, "The Soul"}, {336, "Dead Onion"}, {337, "Broken Watch"}, {338, "The Boomerang"}, {339, "Safety Pin"}, {340, "Caffeine Pill"}, {341, "Torn Photo"}, {342, "Blue Cap"}, {343, "Latch Key"}, {344, "Match Book"}, {345, "Synthoil"}, {346, "A Snack"}, {347, "Diplopia"}, {348, "Placebo"}, {349, "Wooden Nickel"}, {350, "Toxic Shock"}, {351, "Mega Bean"}, {352, "Glass Cannon"}, {353, "Bomber Boy"}, {354, "Crack Jacks"}, {355, "Mom's Pearls"}, {356, "Car Battery"}, {357, "Box of Friends"}, {358, "The Wiz"}, {359, "8 Inch Nails"}, {360, "Incubus"}, {361, "Fate's Reward"}, {362, "Lil Chest"}, {363, "Sworn Protector"}, {364, "Friend Zone"}, {365, "Lost Fly"}, {366, "Scatter Bombs"}, {367, "Sticky Bombs"}, {368, "Epiphora"}, {369, "Continuum"}, {370, "Mr. Dolly"}, {371, "Curse of the Tower"}, {372, "Charged Baby"}, {373, "Dead Eye"}, {374, "Holy Light"}, {375, "Host Hat"}, {376, "Restock"}, {377, "Bursting Sack"}, {378, "Number Two"}, {379, "Pupula Duplex"}, {380, "Pay To Play"}, {381, "Eden's Blessing"}, {382, "Friendly Ball"}, {383, "Tear Detonator"}, {384, "Lil Gurdy"}, {385, "Bumbo"}, {386, "D12"}, {387, "Censer"}, {388, "Key Bum"}, {389, "Rune Bag"}, {390, "Seraphim"}, {391, "Betrayal"}, {392, "Zodiac"}, {393, "Serpent's Kiss"}, {394, "Marked"}, {395, "Tech X"}, {396, "Ventricle Razor"}, {397, "Tractor Beam"}, {398, "God's Flesh"}, {399, "Maw of the Void"}, {400, "Spear of Destiny"}, {401, "Explosivo"}, {402, "Chaos"}, {403, "Spider Mod"}, {404, "Farting Baby"}, {405, "GB Bug"}, {406, "D8"}, {407, "Purity"}, {408, "Athame"}, {409, "Empty Vessel"}, {410, "Evil Eye"}, {411, "Lusty Blood"}, {412, "Cambion Conception"}, {413, "Immaculate Conception"}, {414, "More Options"}, {415, "Crown of Light"}, {416, "Deep Pockets"}, {417, "Succubus"}, {418, "Fruit Cake"}, {419, "Teleport 2.0"}, {420, "Black Powder"}, {421, "Kidney Bean"}, {422, "Glowing Hour Glass"}, {423, "Circle of Protection"}, {424, "Sack Head"}, {425, "Night Light"}, {426, "Obsessed Fan"}, {427, "Mine Crafter"}, {428, "PJs"}, {429, "Head of the Keeper"}, {430, "Papa Fly"}, {431, "Multidimensional Baby"}, {432, "Glitter Bombs"}, {433, "My Shadow"}, {434, "Jar of Flies"}, {435, "Lil Loki"}, {436, "Milk!"}, {437, "D7"}, {438, "Binky"}, {439, "Mom's Box"}, {440, "Kidney Stone"}, {441, "Mega Blast"}, {442, "Dark Prince's Crown"}, {443, "Apple!"}, {444, "Lead Pencil"}, {445, "Dog Tooth"}, {446, "Dead Tooth"}, {447, "Linger Bean"}, {448, "Shard of Glass"}, {449, "Metal Plate"}, {450, "Eye of Greed"}, {451, "Tarot Cloth"}, {452, "Varicose Veins"}, {453, "Compound Fracture"}, {454, "Polydactyly"}, {455, "Dad's Lost Coin"}, {456, "Midnight Snack"}, {457, "Cone Head"}, {458, "Belly Button"}, {459, "Sinus Infection"}, {460, "Glaucoma"}, {461, "Parasitoid"}, {462, "Eye of Belial"}, {463, "Sulfuric Acid"}, {464, "Glyph of Balance"}, {465, "Analog Stick"}, {466, "Contagion"}, {467, "Finger!"}, {468, "Shade"}, {469, "Depression"}, {470, "Hushy"}, {471, "Lil Monstro"}, {472, "King Baby"}, {473, "Big Chubby"}, {474, "Broken Glass Cannon"}, {475, "Plan C"}, {476, "D1"}, {477, "Void"}, {478, "Pause"}, {479, "Smelter"}, {480, "Compost"}, {481, "Dataminer"}, {482, "Clicker"}, {483, "Mama Mega!"}, {484, "Wait What?"}, {485, "Crooked Penny"}, {486, "Dull Razor"}, {487, "Potato Peeler"}, {488, "Metronome"}, {489, "D infinity"}, {490, "Eden's Soul"}, {491, "Acid Baby"}, {492, "YO LISTEN!"}, {493, "Adrenaline"}, {494, "Jacob's Ladder"}, {495, "Ghost Pepper"}, {496, "Euthanasia"}, {497, "Camo Undies"}, {498, "Duality"}, {499, "Eucharist"}, {500, "Sack of Sacks"}, {501, "Greed's Gullet"}, {502, "Large Zit"}, {503, "Little Horn"}, {504, "Brown Nugget"}, {505, "Poke Go"}, {506, "Backstabber"}, {507, "Sharp Straw"}, {508, "Mom's Razor"}, {509, "Bloodshot Eye"}, {510, "Delirious"}, {511, "Angry Fly"}, {512, "Black Hole"}, {513, "Bozo"}, {514, "Broken Modem"}, {515, "Mystery Gift"}, {516, "Sprinkler"}, {517, "Fast Bombs"}, {518, "Buddy in a Box"}, {519, "Lil Delirium"}, {520, "Jumper Cables"}, {521, "Coupon"}, {522, "Telekinesis"}, {523, "Moving Box"}, {524, "Technology Zero"}, {525, "Leprosy"}, {526, "7 Seals"}, {527, "Mr. ME!"}, {528, "Angelic Prism"}, {529, "Pop!"}, {530, "Death's List"}, {531, "Haemolacria"}, {532, "Lachryphagy"}, {533, "Trisagion"}, {534, "Schoolbag"}, {535, "Blanket"}, {536, "Sacrificial Altar"}, {537, "Lil Spewer"}, {538, "Marbles"}, {539, "Mystery Egg"}, {540, "Flat Stone"}, {541, "Marrow"}, {542, "Slipped Rib"}, {543, "Hallowed Ground"}, {544, "Pointy Rib"}, {545, "Book of the Dead"}, {546, "Dad's Ring"}, {547, "Divorce Papers"}, {548, "Jaw Bone"}, {549, "Brittle Bones"}, {550, "Broken Shovel"}, {551, "Broken Shovel"}, {552, "Mom's Shovel"}, {553, "Mucormycosis"}, {554, "2Spooky"}, {555, "Golden Razor"}, {556, "Sulfur"}, {557, "Fortune Cookie"}, {558, "Eye Sore"}, {559, "120 Volt"}, {560, "It Hurts"}, {561, "Almond Milk"}, {562, "Rock Bottom"}, {563, "Nancy Bombs"}, {564, "A Bar of Soap"}, {565, "Blood Puppy"}, {566, "Dream Catcher"}, {567, "Paschal Candle"}, {568, "Divine Intervention"}, {569, "Blood Oath"}, {570, "Playdough Cookie"}, {571, "Orphan Socks"}, {572, "Eye of the Occult"}, {573, "Immaculate Heart"}, {574, "Monstrance"}, {575, "The Intruder"}, {576, "Dirty Mind"}, {577, "Damocles"}, {578, "Free Lemonade"}, {579, "Spirit Sword"}, {580, "Red Key"}, {581, "Psy Fly"}, {582, "Wavy Cap"}, {583, "Rocket in a Jar"}, {584, "Book of Virtues"}, {585, "Alabaster Box"}, {586, "The Stairway"}, {588, "Sol"}, {589, "Luna"}, {590, "Mercurius"}, {591, "Venus"}, {592, "Terra"}, {593, "Mars"}, {594, "Jupiter"}, {595, "Saturnus"}, {596, "Uranus"}, {597, "Neptunus"}, {598, "Pluto"}, {599, "Voodoo Head"}, {600, "Eye Drops"}, {601, "Act of Contrition"}, {602, "Member Card"}, {603, "Battery Pack"}, {604, "Mom's Bracelet"}, {605, "The Scooper"}, {606, "Ocular Rift"}, {607, "Boiled Baby"}, {608, "Freezer Baby"}, {609, "Eternal D6"}, {610, "Bird Cage"}, {611, "Larynx"}, {612, "Lost Soul"}, {614, "Blood Bombs"}, {615, "Lil Dumpy"}, {616, "Bird's Eye"}, {617, "Lodestone"}, {618, "Rotten Tomato"}, {619, "Birthright"}, {621, "Red Stew"}, {622, "Genesis"}, {623, "Sharp Key"}, {624, "Booster Pack"}, {625, "Mega Mush"}, {626, "Knife Piece 1"}, {627, "Knife Piece 2"}, {628, "Death Certificate"}, {629, "Bot Fly"}, {631, "Meat Cleaver"}, {632, "Evil Charm"}, {633, "Dogma"}, {634, "Purgatory"}, {635, "Stitches"}, {636, "R Key"}, {637, "Knockout Drops"}, {638, "Eraser"}, {639, "Yuck Heart"}, {640, "Urn of Souls"}, {641, "Akeldama"}, {642, "Magic Skin"}, {643, "Revelation"}, {644, "Consolation Prize"}, {645, "Tinytoma"}, {646, "Brimstone Bombs"}, {647, "4.5 Volt"}, {649, "Fruity Plum"}, {650, "Plum Flute"}, {651, "Star of Bethlehem"}, {652, "Cube Baby"}, {653, "Vade Retro"}, {654, "False PHD"}, {655, "Spin to Win"}, {656, "Damocles"}, {657, "Vasculitis"}, {658, "Giant Cell"}, {659, "Tropicamide"}, {660, "Card Reading"}, {661, "Quints"}, {663, "Tooth and Nail"}, {664, "Binge Eater"}, {665, "Guppy's Eye"}, {667, "Strawman"}, {668, "Dad's Note"}, {669, "Sausage"}, {670, "Options?"}, {671, "Candy Heart"}, {672, "A Pound of Flesh"}, {673, "Redemption"}, {674, "Spirit Shackles"}, {675, "Cracked Orb"}, {676, "Empty Heart"}, {677, "Astral Projection"}, {678, "C Section"}, {679, "Lil Abaddon"}, {680, "Montezuma's Revenge"}, {681, "Lil Portal"}, {682, "Worm Friend"}, {683, "Bone Spurs"}, {684, "Hungry Soul"}, {685, "Jar of Wisps"}, {686, "Soul Locket"}, {687, "Friend Finder"}, {688, "Inner Child"}, {689, "Glitched Crown"}, {690, "Belly Jelly"}, {691, "Sacred Orb"}, {692, "Sanguine Bond"}, {693, "The Swarm"}, {694, "Heartbreak"}, {695, "Bloody Gust"}, {696, "Salvation"}, {697, "Vanishing Twin"}, {698, "Twisted Pair"}, {699, "Azazel's Rage"}, {700, "Echo Chamber"}, {701, "Isaac's Tomb"}, {702, "Vengeful Spirit"}, {703, "Esau Jr."}, {704, "Berserk!"}, {705, "Dark Arts"}, {706, "Abyss"}, {707, "Supper"}, {708, "Stapler"}, {709, "Suplex!"}, {710, "Bag of Crafting"}, {711, "Flip"}, {712, "Lemegeton"}, {713, "Sumptorium"}, {714, "Recall"}, {715, "Hold"}, {716, "Keeper's Sack"}, {717, "Keeper's Kin"}, {719, "Keeper's Box"}, {720, "Everything Jar"}, {721, "TMTRAINER"}, {722, "Anima Sola"}, {723, "Spindown Dice"}, {724, "Hypercoagulation"}, {725, "IBS"}, {726, "Hemoptysis"}, {727, "Ghost Bombs"}, {728, "Gello"}, {729, "Decap Attack"}, {730, "Glass Eye"}, {731, "Stye"}, {732, "Mom's Ring"}})
5
- return ____exports
@@ -1 +0,0 @@
1
- export declare const COLLECTIBLE_SET: Set<number>;
@@ -1,22 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- local ____collectibles = require("functions.collectibles")
5
- local getMaxCollectibleID = ____collectibles.getMaxCollectibleID
6
- local initSet
7
- function initSet(self)
8
- local itemConfig = Isaac.GetItemConfig()
9
- do
10
- local collectibleType = 1
11
- while collectibleType <= getMaxCollectibleID(nil) do
12
- local itemConfigItem = itemConfig:GetCollectible(collectibleType)
13
- if itemConfigItem ~= nil then
14
- ____exports.COLLECTIBLE_SET:add(collectibleType)
15
- end
16
- collectibleType = collectibleType + 1
17
- end
18
- end
19
- end
20
- ____exports.COLLECTIBLE_SET = __TS__New(Set)
21
- initSet(nil)
22
- return ____exports
@@ -1,25 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- /**
3
- * Has an equal chance of returning any card (e.g. Fool, Reverse Fool, Wild Card, etc.). This will
4
- * not return any runes or objects.
5
- */
6
- export declare function getRandomCard(seed?: number): Card;
7
- /**
8
- * Has an equal chance of returning any rune (e.g. Rune of Hagalaz, Blank Rune, Black Rune, Soul of
9
- * Isaac, etc.). This will never return a Rune Shard.
10
- */
11
- export declare function getRandomRune(seed?: number): Card;
12
- /**
13
- * Returns true for entries in the Card enum that are not a rune or an object (e.g. Fool, Reverse
14
- * Fool, Wild Card, etc.).
15
- */
16
- export declare function isCard(card: Card): boolean;
17
- /**
18
- * Returns true for entries in the Card enum that are not a card and not a rune (like Dice Shard).
19
- */
20
- export declare function isNotCardOrRune(card: Card): boolean;
21
- /**
22
- * Returns true for entries in the Card enum that are a rune. (e.g. Rune of Hagalaz, Blank Rune,
23
- * Black Rune, Rune Shard, Soul of Isaac, etc.)
24
- */
25
- export declare function isRune(card: Card): boolean;
@@ -1,41 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- local ____exports = {}
3
- local ____random = require("functions.random")
4
- local getRandomInt = ____random.getRandomInt
5
- local nextSeed = ____random.nextSeed
6
- function ____exports.isCard(self, card)
7
- return ____exports.isNotCardOrRune(nil, card) and (not ____exports.isRune(nil, card))
8
- end
9
- function ____exports.isNotCardOrRune(self, card)
10
- return ((card == Card.CARD_DICE_SHARD) or (card == Card.CARD_EMERGENCY_CONTACT)) or (card == Card.CARD_CRACKED_KEY)
11
- end
12
- function ____exports.isRune(self, card)
13
- return (((card >= Card.RUNE_HAGALAZ) and (card <= Card.RUNE_BLACK)) or (card == Card.RUNE_SHARD)) or ((card >= Card.CARD_SOUL_ISAAC) and (card <= Card.CARD_SOUL_JACOB))
14
- end
15
- function ____exports.getRandomCard(self, seed)
16
- if seed == nil then
17
- seed = Random()
18
- end
19
- local card
20
- repeat
21
- do
22
- seed = nextSeed(nil, seed)
23
- card = getRandomInt(nil, 1, Card.NUM_CARDS - 1)
24
- end
25
- until ____exports.isCard(nil, card)
26
- return card
27
- end
28
- function ____exports.getRandomRune(self, seed)
29
- if seed == nil then
30
- seed = Random()
31
- end
32
- local card
33
- repeat
34
- do
35
- seed = nextSeed(nil, seed)
36
- card = getRandomInt(nil, 1, Card.NUM_CARDS - 1)
37
- end
38
- until not ((not ____exports.isRune(nil, card)) or (card == Card.RUNE_SHARD))
39
- return card
40
- end
41
- return ____exports
@@ -1,9 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- /**
3
- * Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
4
- * should remove an item.
5
- *
6
- * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
7
- * Python program located at: https://github.com/Rchardon/RebirthItemTracker
8
- */
9
- export declare function removeItemFromItemTracker(collectibleType: CollectibleType | int): void;
@@ -1,9 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- local ____exports = {}
3
- function ____exports.removeItemFromItemTracker(self, collectibleType)
4
- local itemName = getItemName(nil, collectibleType)
5
- Isaac.DebugString(
6
- ((("Removing voided collectible " .. tostring(collectibleType)) .. " (") .. tostring(itemName)) .. ") from player 0 (Player)"
7
- )
8
- end
9
- return ____exports
@@ -1,2 +0,0 @@
1
- /** Returns a 3-tuple of Language enum value, language name and resource folder suffix. */
2
- export declare function getLanguageName(): string;
@@ -1,8 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- local ____exports = {}
3
- local LANGUAGE_NAMES = {en = "English", jp = "Japanese", kr = "Korean", zh = "Chinese (Simple)", ru = "Russian", de = "German", es = "Spanish"}
4
- function ____exports.getLanguageName(self)
5
- local languageAbbreviation = Options.Language
6
- return LANGUAGE_NAMES[languageAbbreviation]
7
- end
8
- return ____exports
@@ -1,7 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- /**
3
- * Helper function to play a sound using the correct volume (with respect to the user's volume
4
- * setting). Use this function over calling `SFXManager().Play()` directly because calling it
5
- * directly will not respect the current volume setting.
6
- */
7
- export declare function playSound(soundEffect: SoundEffect | int): void;
@@ -1,7 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- local ____exports = {}
3
- function ____exports.playSound(self, soundEffect)
4
- local sfx = SFXManager()
5
- sfx:Play(soundEffect, Options.SFXVolume)
6
- end
7
- return ____exports
@@ -1,2 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare const GRID_ENTITY_MAP: Map<number, [GridEntityType, number]>;
@@ -1,5 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- ____exports.GRID_ENTITY_MAP = __TS__New(Map, {{1000, {GridEntityType.GRID_ROCK, 0}}, {1001, {GridEntityType.GRID_ROCK_BOMB, 0}}, {1002, {GridEntityType.GRID_ROCK_ALT, 0}}, {1008, {GridEntityType.GRID_ROCK_ALT2, 0}}, {1010, {GridEntityType.GRID_ROCK_SPIKED, 0}}, {1011, {GridEntityType.GRID_ROCK_GOLD, 0}}, {1300, {GridEntityType.GRID_TNT, 0}}, {1490, {GridEntityType.GRID_POOP, 1}}, {1494, {GridEntityType.GRID_POOP, 4}}, {1495, {GridEntityType.GRID_POOP, 2}}, {1496, {GridEntityType.GRID_POOP, 3}}, {1497, {GridEntityType.GRID_POOP, 5}}, {1498, {GridEntityType.GRID_POOP, 6}}, {1499, {GridEntityType.GRID_POOP, 7}}, {1500, {GridEntityType.GRID_POOP, 0}}, {1501, {GridEntityType.GRID_POOP, 11}}, {1900, {GridEntityType.GRID_ROCKB, 0}}, {1901, {GridEntityType.GRID_PILLAR, 0}}, {1930, {GridEntityType.GRID_SPIKES, 0}}, {1931, {GridEntityType.GRID_SPIKES_ONOFF, 0}}, {1940, {GridEntityType.GRID_SPIDERWEB, 0}}, {1999, {GridEntityType.GRID_WALL, 0}}, {3000, {GridEntityType.GRID_PIT, 0}}, {3009, {GridEntityType.GRID_PIT, 0}}, {4000, {GridEntityType.GRID_LOCK, 0}}, {4500, {GridEntityType.GRID_PRESSURE_PLATE, 0}}, {5000, {GridEntityType.GRID_STATUE, 0}}, {5001, {GridEntityType.GRID_STATUE, 1}}, {6100, {GridEntityType.GRID_TELEPORTER, 0}}, {9000, {GridEntityType.GRID_TRAPDOOR, 0}}, {9100, {GridEntityType.GRID_STAIRS, 0}}, {10000, {GridEntityType.GRID_GRAVITY, 0}}})
5
- return ____exports
@@ -1,2 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare const ROOM_TYPE_TO_ITEM_POOL_TYPE_MAP: Map<RoomType, ItemPoolType>;
@@ -1,19 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- ____exports.ROOM_TYPE_TO_ITEM_POOL_TYPE_MAP = __TS__New(Map, {
5
- {RoomType.ROOM_SHOP, ItemPoolType.POOL_SHOP},
6
- {RoomType.ROOM_TREASURE, ItemPoolType.POOL_TREASURE},
7
- {RoomType.ROOM_BOSS, ItemPoolType.POOL_BOSS},
8
- {RoomType.ROOM_SECRET, ItemPoolType.POOL_SECRET},
9
- {RoomType.ROOM_CURSE, ItemPoolType.POOL_CURSE},
10
- {RoomType.ROOM_CHALLENGE, ItemPoolType.POOL_BOSS},
11
- {RoomType.ROOM_LIBRARY, ItemPoolType.POOL_LIBRARY},
12
- {RoomType.ROOM_DEVIL, ItemPoolType.POOL_DEVIL},
13
- {RoomType.ROOM_ANGEL, ItemPoolType.POOL_ANGEL},
14
- {RoomType.ROOM_CHEST, ItemPoolType.POOL_GOLDEN_CHEST},
15
- {RoomType.ROOM_BLACK_MARKET, ItemPoolType.POOL_SHOP},
16
- {RoomType.ROOM_PLANETARIUM, ItemPoolType.POOL_PLANETARIUM},
17
- {RoomType.ROOM_ULTRASECRET, ItemPoolType.POOL_ULTRA_SECRET}
18
- })
19
- return ____exports
@@ -1,5 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare const TRANSFORMATION_TO_TAG_MAP: Map<PlayerForm, ItemConfigTag>;
3
- export declare const TRANSFORMATIONS_NOT_BASED_ON_ITEMS: Set<PlayerForm>;
4
- export declare const TRANSFORMATION_TO_ITEMS_MAP: Map<PlayerForm, Set<number>>;
5
- export declare const ITEM_TO_TRANSFORMATION_MAP: Map<number, Set<PlayerForm>>;
@@ -1,56 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- local initMaps
5
- local ____collectibles = require("functions.collectibles")
6
- local collectibleHasTag = ____collectibles.collectibleHasTag
7
- local getMaxCollectibleID = ____collectibles.getMaxCollectibleID
8
- function initMaps(self)
9
- for ____, playerForm in __TS__Iterator(
10
- ____exports.TRANSFORMATION_TO_TAG_MAP:keys()
11
- ) do
12
- ____exports.TRANSFORMATION_TO_ITEMS_MAP:set(
13
- playerForm,
14
- __TS__New(Set)
15
- )
16
- end
17
- do
18
- local collectibleType = 1
19
- while collectibleType <= getMaxCollectibleID(nil) do
20
- for ____, ____value in __TS__Iterator(
21
- ____exports.TRANSFORMATION_TO_TAG_MAP:entries()
22
- ) do
23
- local playerForm
24
- playerForm = ____value[1]
25
- local tag
26
- tag = ____value[2]
27
- do
28
- if not collectibleHasTag(nil, collectibleType, tag) then
29
- goto __continue5
30
- end
31
- local items = ____exports.TRANSFORMATION_TO_ITEMS_MAP:get(playerForm)
32
- if items == nil then
33
- error(
34
- "Failed to get the items for transformation: " .. tostring(playerForm)
35
- )
36
- end
37
- items:add(collectibleType)
38
- local transformations = ____exports.ITEM_TO_TRANSFORMATION_MAP:get(collectibleType)
39
- if transformations == nil then
40
- transformations = __TS__New(Set)
41
- ____exports.ITEM_TO_TRANSFORMATION_MAP:set(collectibleType, transformations)
42
- end
43
- transformations:add(playerForm)
44
- end
45
- ::__continue5::
46
- end
47
- collectibleType = collectibleType + 1
48
- end
49
- end
50
- end
51
- ____exports.TRANSFORMATION_TO_TAG_MAP = __TS__New(Map, {{PlayerForm.PLAYERFORM_GUPPY, 32}, {PlayerForm.PLAYERFORM_LORD_OF_THE_FLIES, 64}, {PlayerForm.PLAYERFORM_MUSHROOM, 256}, {PlayerForm.PLAYERFORM_ANGEL, 1024}, {PlayerForm.PLAYERFORM_BOB, 128}, {PlayerForm.PLAYERFORM_DRUGS, 2}, {PlayerForm.PLAYERFORM_MOM, 4}, {PlayerForm.PLAYERFORM_BABY, 512}, {PlayerForm.PLAYERFORM_EVIL_ANGEL, 2048}, {PlayerForm.PLAYERFORM_POOP, 4096}, {PlayerForm.PLAYERFORM_BOOK_WORM, 8192}, {PlayerForm.PLAYERFORM_SPIDERBABY, 16384}})
52
- ____exports.TRANSFORMATIONS_NOT_BASED_ON_ITEMS = __TS__New(Set, {PlayerForm.PLAYERFORM_ADULTHOOD, PlayerForm.PLAYERFORM_STOMPY, PlayerForm.PLAYERFORM_FLIGHT})
53
- ____exports.TRANSFORMATION_TO_ITEMS_MAP = __TS__New(Map)
54
- ____exports.ITEM_TO_TRANSFORMATION_MAP = __TS__New(Map)
55
- initMaps(nil)
56
- return ____exports
@@ -1 +0,0 @@
1
- export {};
@@ -1,45 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- local ____exports = {}
3
- local printForLuaDebug, getPrintMsg, getValueToPrint
4
- local ____util = require("functions.util")
5
- local isLuaDebugEnabled = ____util.isLuaDebugEnabled
6
- local ____vector = require("functions.vector")
7
- local isVector = ____vector.isVector
8
- function printForLuaDebug(...)
9
- local args = {...}
10
- local msg = getPrintMsg(nil, args)
11
- Isaac.DebugString(msg)
12
- local msgWithNewline = msg .. "\n"
13
- Isaac.ConsoleOutput(msgWithNewline)
14
- end
15
- function getPrintMsg(self, args)
16
- if #args == 0 then
17
- return tostring(nil)
18
- end
19
- local msg = ""
20
- for ____, arg in ipairs(args) do
21
- if msg ~= "" then
22
- msg = msg .. " "
23
- end
24
- msg = msg .. getValueToPrint(nil, arg)
25
- end
26
- return msg
27
- end
28
- function getValueToPrint(self, arg)
29
- if isVector(nil, arg) then
30
- local vector = arg
31
- return ((("Vector(" .. tostring(vector.X)) .. ", ") .. tostring(vector.Y)) .. ")"
32
- end
33
- return tostring(arg)
34
- end
35
- function ____exports.patchPrintFunction(self)
36
- if not isLuaDebugEnabled(nil) then
37
- return
38
- end
39
- if __PATCHED_PRINT ~= nil then
40
- return
41
- end
42
- __PATCHED_PRINT = true
43
- print = printForLuaDebug
44
- end
45
- return ____exports
@@ -1,2 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare const PILL_EFFECT_NAME_MAP: Map<PillEffect, string>;
@@ -1,5 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- ____exports.PILL_EFFECT_NAME_MAP = __TS__New(Map, {{PillEffect.PILLEFFECT_BAD_GAS, "Bad Gas"}, {PillEffect.PILLEFFECT_BAD_TRIP, "Bad Trip"}, {PillEffect.PILLEFFECT_BALLS_OF_STEEL, "Balls of Steel"}, {PillEffect.PILLEFFECT_BOMBS_ARE_KEYS, "Bombs Are Key"}, {PillEffect.PILLEFFECT_EXPLOSIVE_DIARRHEA, "Explosive Diarrhea"}, {PillEffect.PILLEFFECT_FULL_HEALTH, "Full Health"}, {PillEffect.PILLEFFECT_HEALTH_DOWN, "Health Down"}, {PillEffect.PILLEFFECT_HEALTH_UP, "Health Up"}, {PillEffect.PILLEFFECT_I_FOUND_PILLS, "I Found Pills"}, {PillEffect.PILLEFFECT_PUBERTY, "Puberty"}, {PillEffect.PILLEFFECT_PRETTY_FLY, "Pretty Fly"}, {PillEffect.PILLEFFECT_RANGE_DOWN, "Range Down"}, {PillEffect.PILLEFFECT_RANGE_UP, "Range Up"}, {PillEffect.PILLEFFECT_SPEED_DOWN, "Speed Down"}, {PillEffect.PILLEFFECT_SPEED_UP, "Speed Up"}, {PillEffect.PILLEFFECT_TEARS_DOWN, "Tears Down"}, {PillEffect.PILLEFFECT_TEARS_UP, "Tears Up"}, {PillEffect.PILLEFFECT_LUCK_DOWN, "Luck Down"}, {PillEffect.PILLEFFECT_LUCK_UP, "Luck Up"}, {PillEffect.PILLEFFECT_TELEPILLS, "Telepills"}, {PillEffect.PILLEFFECT_48HOUR_ENERGY, "48 Hour Energy"}, {PillEffect.PILLEFFECT_HEMATEMESIS, "Hematemesis"}, {PillEffect.PILLEFFECT_PARALYSIS, "Paralysis"}, {PillEffect.PILLEFFECT_SEE_FOREVER, "I can see forever!"}, {PillEffect.PILLEFFECT_PHEROMONES, "Pheromones"}, {PillEffect.PILLEFFECT_AMNESIA, "Amnesia"}, {PillEffect.PILLEFFECT_LEMON_PARTY, "Lemon Party"}, {PillEffect.PILLEFFECT_WIZARD, "R U a Wizard?"}, {PillEffect.PILLEFFECT_PERCS, "Percs!"}, {PillEffect.PILLEFFECT_ADDICTED, "Addicted!"}, {PillEffect.PILLEFFECT_RELAX, "Re-Lax"}, {PillEffect.PILLEFFECT_QUESTIONMARK, "???"}, {PillEffect.PILLEFFECT_LARGER, "One makes you larger"}, {PillEffect.PILLEFFECT_SMALLER, "One makes you small"}, {PillEffect.PILLEFFECT_INFESTED_EXCLAMATION, "Infested!"}, {PillEffect.PILLEFFECT_INFESTED_QUESTION, "Infested?"}, {PillEffect.PILLEFFECT_POWER, "Power Pill!"}, {PillEffect.PILLEFFECT_RETRO_VISION, "Retro Vision"}, {PillEffect.PILLEFFECT_FRIENDS_TILL_THE_END, "Friends Till The End!"}, {PillEffect.PILLEFFECT_X_LAX, "X-Lax"}, {PillEffect.PILLEFFECT_SOMETHINGS_WRONG, "Something's wrong..."}, {PillEffect.PILLEFFECT_IM_DROWSY, "I'm Drowsy..."}, {PillEffect.PILLEFFECT_IM_EXCITED, "I'm Excited!!!"}, {PillEffect.PILLEFFECT_GULP, "Gulp!"}, {PillEffect.PILLEFFECT_HORF, "Horf!"}, {PillEffect.PILLEFFECT_SUNSHINE, "Feels like I'm walking on sunshine!"}, {PillEffect.PILLEFFECT_VURP, "Vurp!"}, {PillEffect.PILLEFFECT_SHOT_SPEED_DOWN, "Shot Speed Down"}, {PillEffect.PILLEFFECT_SHOT_SPEED_UP, "Shot Speed Up"}, {PillEffect.PILLEFFECT_EXPERIMENTAL, "Experimental Pill"}})
5
- return ____exports
@@ -1,5 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare const TRANSFORMATION_TO_TAG_MAP: Map<PlayerForm, ItemConfigTag>;
3
- export declare const TRANSFORMATIONS_NOT_BASED_ON_ITEMS: Set<PlayerForm>;
4
- export declare const TRANSFORMATION_TO_ITEMS_MAP: Map<PlayerForm, Set<number>>;
5
- export declare const ITEM_TO_TRANSFORMATION_MAP: Map<number, Set<PlayerForm>>;
@@ -1,56 +0,0 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
- require("lualib_bundle");
3
- local ____exports = {}
4
- local initMaps
5
- local ____collectibles = require("functions.collectibles")
6
- local collectibleHasTag = ____collectibles.collectibleHasTag
7
- local getMaxCollectibleID = ____collectibles.getMaxCollectibleID
8
- function initMaps(self)
9
- for ____, playerForm in __TS__Iterator(
10
- ____exports.TRANSFORMATION_TO_TAG_MAP:keys()
11
- ) do
12
- ____exports.TRANSFORMATION_TO_ITEMS_MAP:set(
13
- playerForm,
14
- __TS__New(Set)
15
- )
16
- end
17
- do
18
- local collectibleType = 1
19
- while collectibleType <= getMaxCollectibleID(nil) do
20
- for ____, ____value in __TS__Iterator(
21
- ____exports.TRANSFORMATION_TO_TAG_MAP:entries()
22
- ) do
23
- local playerForm
24
- playerForm = ____value[1]
25
- local tag
26
- tag = ____value[2]
27
- do
28
- if not collectibleHasTag(nil, collectibleType, tag) then
29
- goto __continue5
30
- end
31
- local items = ____exports.TRANSFORMATION_TO_ITEMS_MAP:get(playerForm)
32
- if items == nil then
33
- error(
34
- "Failed to get the items for transformation: " .. tostring(playerForm)
35
- )
36
- end
37
- items:add(collectibleType)
38
- local transformations = ____exports.ITEM_TO_TRANSFORMATION_MAP:get(collectibleType)
39
- if transformations == nil then
40
- transformations = __TS__New(Set)
41
- ____exports.ITEM_TO_TRANSFORMATION_MAP:set(collectibleType, transformations)
42
- end
43
- transformations:add(playerForm)
44
- end
45
- ::__continue5::
46
- end
47
- collectibleType = collectibleType + 1
48
- end
49
- end
50
- end
51
- ____exports.TRANSFORMATION_TO_TAG_MAP = __TS__New(Map, {{PlayerForm.PLAYERFORM_GUPPY, 32}, {PlayerForm.PLAYERFORM_LORD_OF_THE_FLIES, 64}, {PlayerForm.PLAYERFORM_MUSHROOM, 256}, {PlayerForm.PLAYERFORM_ANGEL, 1024}, {PlayerForm.PLAYERFORM_BOB, 128}, {PlayerForm.PLAYERFORM_DRUGS, 2}, {PlayerForm.PLAYERFORM_MOM, 4}, {PlayerForm.PLAYERFORM_BABY, 512}, {PlayerForm.PLAYERFORM_EVIL_ANGEL, 2048}, {PlayerForm.PLAYERFORM_POOP, 4096}, {PlayerForm.PLAYERFORM_BOOK_WORM, 8192}, {PlayerForm.PLAYERFORM_SPIDERBABY, 16384}})
52
- ____exports.TRANSFORMATIONS_NOT_BASED_ON_ITEMS = __TS__New(Set, {PlayerForm.PLAYERFORM_ADULTHOOD, PlayerForm.PLAYERFORM_STOMPY, PlayerForm.PLAYERFORM_FLIGHT})
53
- ____exports.TRANSFORMATION_TO_ITEMS_MAP = __TS__New(Map)
54
- ____exports.ITEM_TO_TRANSFORMATION_MAP = __TS__New(Map)
55
- initMaps(nil)
56
- return ____exports
@@ -1,2 +0,0 @@
1
- /// <reference types="isaac-typescript-definitions" />
2
- export declare const TRINKET_NAME_MAP: Map<TrinketType, string>;