isaacscript-common 1.2.136 → 1.2.139

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/postCustomDoorEnter.d.ts +8 -0
  2. package/dist/callbacks/postCustomDoorEnter.lua +35 -0
  3. package/dist/callbacks/postPlayerChangeHealth.lua +4 -64
  4. package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +2 -0
  5. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +25 -0
  6. package/dist/constants.d.ts +7 -0
  7. package/dist/constants.lua +1 -0
  8. package/dist/features/deployJSONRoom.lua +11 -22
  9. package/dist/features/disableInputs.lua +6 -20
  10. package/dist/features/disableSound.lua +4 -12
  11. package/dist/features/extraConsoleCommands/commands.d.ts +334 -0
  12. package/dist/features/extraConsoleCommands/commands.lua +930 -0
  13. package/dist/features/extraConsoleCommands/init.d.ts +25 -0
  14. package/dist/features/extraConsoleCommands/init.lua +194 -0
  15. package/dist/features/extraConsoleCommands/v.d.ts +13 -0
  16. package/dist/features/extraConsoleCommands/v.lua +11 -0
  17. package/dist/features/forgottenSwitch.lua +3 -8
  18. package/dist/features/getCollectibleItemPoolType.lua +4 -9
  19. package/dist/features/isPonyActive.lua +3 -8
  20. package/dist/features/preventCollectibleRotate.lua +3 -8
  21. package/dist/features/runInNFrames.lua +6 -20
  22. package/dist/features/saveDataManager/constants.d.ts +3 -0
  23. package/dist/features/saveDataManager/constants.lua +5 -0
  24. package/dist/features/saveDataManager/exports.lua +9 -18
  25. package/dist/features/saveDataManager/load.lua +4 -3
  26. package/dist/features/saveDataManager/main.lua +4 -10
  27. package/dist/features/saveDataManager/merge.lua +2 -2
  28. package/dist/features/saveDataManager/save.lua +3 -1
  29. package/dist/features/sirenHelpers.lua +4 -8
  30. package/dist/featuresInitialized.d.ts +1 -1
  31. package/dist/featuresInitialized.lua +5 -0
  32. package/dist/functions/deepCopy.lua +2 -2
  33. package/dist/functions/log.d.ts +5 -1
  34. package/dist/functions/log.lua +175 -2
  35. package/dist/functions/map.d.ts +16 -0
  36. package/dist/functions/map.lua +24 -0
  37. package/dist/functions/player.d.ts +2 -2
  38. package/dist/functions/playerHealth.d.ts +3 -0
  39. package/dist/functions/playerHealth.lua +142 -0
  40. package/dist/functions/rooms.lua +4 -5
  41. package/dist/functions/run.d.ts +12 -0
  42. package/dist/functions/run.lua +25 -0
  43. package/dist/functions/utils.d.ts +0 -6
  44. package/dist/functions/utils.lua +0 -8
  45. package/dist/functions/vector.lua +8 -8
  46. package/dist/index.d.ts +8 -0
  47. package/dist/index.lua +62 -0
  48. package/dist/maps/cardMap.d.ts +3 -0
  49. package/dist/maps/cardMap.lua +202 -0
  50. package/dist/maps/characterMap.d.ts +3 -0
  51. package/dist/maps/characterMap.lua +90 -0
  52. package/dist/maps/pillEffectMap.d.ts +3 -0
  53. package/dist/maps/pillEffectMap.lua +88 -0
  54. package/dist/maps/roomTypeMap.d.ts +3 -0
  55. package/dist/maps/roomTypeMap.lua +43 -0
  56. package/dist/maps/roomTypeNameMap.d.ts +2 -0
  57. package/dist/maps/roomTypeNameMap.lua +38 -0
  58. package/dist/types/CallbackParametersCustom.d.ts +4 -0
  59. package/dist/types/HealthType.d.ts +4 -2
  60. package/dist/types/HealthType.lua +3 -1
  61. package/dist/types/ModCallbacksCustom.d.ts +2 -1
  62. package/dist/types/ModCallbacksCustom.lua +2 -0
  63. package/dist/types/ModUpgraded.lua +8 -0
  64. package/dist/types/PlayerIndex.d.ts +2 -2
  65. package/dist/upgradeMod.lua +3 -0
  66. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  export * from "./cachedClasses";
2
+ export { spawnCustomDoor } from "./callbacks/postCustomDoorEnter";
2
3
  export { forceNewLevelCallback, forceNewRoomCallback, } from "./callbacks/reorderedCallbacks";
3
4
  export * from "./constants";
4
5
  export { deployJSONRoom, deployRandomJSONRoom, emptyRoom, } from "./features/deployJSONRoom";
5
6
  export { disableAllInputs, disableAllInputsExceptFor, disableMovementInputs, disableShootingInputs, enableAllInputs, enableAllInputsExceptFor, } from "./features/disableInputs";
6
7
  export { disableAllSound, enableAllSound } from "./features/disableSound";
8
+ export { addConsoleCommand, enableExtraConsoleCommands, removeConsoleCommand, } from "./features/extraConsoleCommands/init";
7
9
  export { forgottenSwitch } from "./features/forgottenSwitch";
8
10
  export { getCollectibleItemPoolType } from "./features/getCollectibleItemPoolType";
9
11
  export * from "./features/isPonyActive";
@@ -49,6 +51,7 @@ export * from "./functions/positionVelocity";
49
51
  export * from "./functions/random";
50
52
  export * from "./functions/revive";
51
53
  export * from "./functions/rooms";
54
+ export * from "./functions/run";
52
55
  export * from "./functions/seeds";
53
56
  export * from "./functions/set";
54
57
  export * from "./functions/sound";
@@ -67,16 +70,21 @@ export * from "./functions/ui";
67
70
  export * from "./functions/utils";
68
71
  export * from "./functions/vector";
69
72
  export * from "./maps/cardDescriptionMap";
73
+ export * from "./maps/cardMap";
70
74
  export * from "./maps/cardNameMap";
71
75
  export * from "./maps/challengeNameMap";
76
+ export * from "./maps/characterMap";
72
77
  export * from "./maps/collectibleDescriptionMap";
73
78
  export * from "./maps/collectibleNameMap";
74
79
  export * from "./maps/gridEntityTypeToBrokenStateMap";
75
80
  export * from "./maps/gridEntityXMLMap";
76
81
  export * from "./maps/pillEffectClassMap";
82
+ export * from "./maps/pillEffectMap";
77
83
  export * from "./maps/pillEffectNameMap";
78
84
  export * from "./maps/pillEffectTypeMap";
79
85
  export * from "./maps/roomShapeToTopLeftWallGridIndexMap";
86
+ export * from "./maps/roomTypeMap";
87
+ export * from "./maps/roomTypeNameMap";
80
88
  export * from "./maps/transformationNameMap";
81
89
  export * from "./maps/trinketDescriptionMap";
82
90
  export * from "./maps/trinketNameMap";
package/dist/index.lua CHANGED
@@ -8,6 +8,11 @@ do
8
8
  end
9
9
  end
10
10
  end
11
+ do
12
+ local ____postCustomDoorEnter = require("callbacks.postCustomDoorEnter")
13
+ local spawnCustomDoor = ____postCustomDoorEnter.spawnCustomDoor
14
+ ____exports.spawnCustomDoor = spawnCustomDoor
15
+ end
11
16
  do
12
17
  local ____reorderedCallbacks = require("callbacks.reorderedCallbacks")
13
18
  local forceNewLevelCallback = ____reorderedCallbacks.forceNewLevelCallback
@@ -54,6 +59,15 @@ do
54
59
  ____exports.disableAllSound = disableAllSound
55
60
  ____exports.enableAllSound = enableAllSound
56
61
  end
62
+ do
63
+ local ____init = require("features.extraConsoleCommands.init")
64
+ local addConsoleCommand = ____init.addConsoleCommand
65
+ local enableExtraConsoleCommands = ____init.enableExtraConsoleCommands
66
+ local removeConsoleCommand = ____init.removeConsoleCommand
67
+ ____exports.addConsoleCommand = addConsoleCommand
68
+ ____exports.enableExtraConsoleCommands = enableExtraConsoleCommands
69
+ ____exports.removeConsoleCommand = removeConsoleCommand
70
+ end
57
71
  do
58
72
  local ____forgottenSwitch = require("features.forgottenSwitch")
59
73
  local forgottenSwitch = ____forgottenSwitch.forgottenSwitch
@@ -401,6 +415,14 @@ do
401
415
  end
402
416
  end
403
417
  end
418
+ do
419
+ local ____export = require("functions.run")
420
+ for ____exportKey, ____exportValue in pairs(____export) do
421
+ if ____exportKey ~= "default" then
422
+ ____exports[____exportKey] = ____exportValue
423
+ end
424
+ end
425
+ end
404
426
  do
405
427
  local ____export = require("functions.seeds")
406
428
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -545,6 +567,14 @@ do
545
567
  end
546
568
  end
547
569
  end
570
+ do
571
+ local ____export = require("maps.cardMap")
572
+ for ____exportKey, ____exportValue in pairs(____export) do
573
+ if ____exportKey ~= "default" then
574
+ ____exports[____exportKey] = ____exportValue
575
+ end
576
+ end
577
+ end
548
578
  do
549
579
  local ____export = require("maps.cardNameMap")
550
580
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -561,6 +591,14 @@ do
561
591
  end
562
592
  end
563
593
  end
594
+ do
595
+ local ____export = require("maps.characterMap")
596
+ for ____exportKey, ____exportValue in pairs(____export) do
597
+ if ____exportKey ~= "default" then
598
+ ____exports[____exportKey] = ____exportValue
599
+ end
600
+ end
601
+ end
564
602
  do
565
603
  local ____export = require("maps.collectibleDescriptionMap")
566
604
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -601,6 +639,14 @@ do
601
639
  end
602
640
  end
603
641
  end
642
+ do
643
+ local ____export = require("maps.pillEffectMap")
644
+ for ____exportKey, ____exportValue in pairs(____export) do
645
+ if ____exportKey ~= "default" then
646
+ ____exports[____exportKey] = ____exportValue
647
+ end
648
+ end
649
+ end
604
650
  do
605
651
  local ____export = require("maps.pillEffectNameMap")
606
652
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -625,6 +671,22 @@ do
625
671
  end
626
672
  end
627
673
  end
674
+ do
675
+ local ____export = require("maps.roomTypeMap")
676
+ for ____exportKey, ____exportValue in pairs(____export) do
677
+ if ____exportKey ~= "default" then
678
+ ____exports[____exportKey] = ____exportValue
679
+ end
680
+ end
681
+ end
682
+ do
683
+ local ____export = require("maps.roomTypeNameMap")
684
+ for ____exportKey, ____exportValue in pairs(____export) do
685
+ if ____exportKey ~= "default" then
686
+ ____exports[____exportKey] = ____exportValue
687
+ end
688
+ end
689
+ end
628
690
  do
629
691
  local ____export = require("maps.transformationNameMap")
630
692
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -0,0 +1,3 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /** Maps card names to card sub-types. */
3
+ export declare const CARD_MAP: ReadonlyMap<string, Card>;
@@ -0,0 +1,202 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
5
+ local ____exports = {}
6
+ ____exports.CARD_MAP = __TS__New(Map, {
7
+ {"fool", 1},
8
+ {"magician", 2},
9
+ {"highpriestess", 3},
10
+ {"priestess", 3},
11
+ {"hp", 3},
12
+ {"empress", 4},
13
+ {"emperor", 5},
14
+ {"hierophant", 6},
15
+ {"lovers", 7},
16
+ {"chariot", 8},
17
+ {"justice", 9},
18
+ {"hermit", 10},
19
+ {"wheeloffortune", 11},
20
+ {"fortune", 11},
21
+ {"strength", 12},
22
+ {"hanged", 13},
23
+ {"hangedman", 13},
24
+ {"death", 14},
25
+ {"temperance", 15},
26
+ {"devil", 16},
27
+ {"tower", 17},
28
+ {"stars", 18},
29
+ {"moon", 19},
30
+ {"sun", 20},
31
+ {"judgement", 21},
32
+ {"world", 22},
33
+ {"2ofclubs", 23},
34
+ {"2clubs", 23},
35
+ {"2ofdiamonds", 24},
36
+ {"2diamonds", 24},
37
+ {"2ofspades", 25},
38
+ {"2spades", 25},
39
+ {"2ofhearts", 26},
40
+ {"2hearts", 26},
41
+ {"aceofclubs", 27},
42
+ {"aceclubs", 27},
43
+ {"aceofdiamonds", 28},
44
+ {"acediamonds", 28},
45
+ {"aceofspades", 29},
46
+ {"acespades", 29},
47
+ {"aceofhearts", 30},
48
+ {"acehearts", 30},
49
+ {"joker", 31},
50
+ {"hagalaz", 32},
51
+ {"destruction", 32},
52
+ {"jera", 33},
53
+ {"abundance", 33},
54
+ {"ehwaz", 34},
55
+ {"passage", 34},
56
+ {"dagaz", 35},
57
+ {"purity", 35},
58
+ {"ansuz", 36},
59
+ {"vision", 36},
60
+ {"perthro", 37},
61
+ {"change", 37},
62
+ {"berkano", 38},
63
+ {"companionship", 38},
64
+ {"algiz", 39},
65
+ {"resistance", 39},
66
+ {"shield", 39},
67
+ {"blank", 40},
68
+ {"black", 41},
69
+ {"chaos", 42},
70
+ {"credit", 43},
71
+ {"rules", 44},
72
+ {"againsthumanity", 45},
73
+ {"humanity", 45},
74
+ {"suicideking", 46},
75
+ {"suicide", 46},
76
+ {"getoutofjailfree", 47},
77
+ {"jail", 47},
78
+ {"?", 48},
79
+ {"diceshard", 49},
80
+ {"shard", 49},
81
+ {"emergencycontact", 50},
82
+ {"contact", 50},
83
+ {"holy", 51},
84
+ {"hugegrowth", 52},
85
+ {"growth", 52},
86
+ {"ancientrecall", 53},
87
+ {"recall", 53},
88
+ {"erawalk", 54},
89
+ {"walk", 54},
90
+ {"runeshard", 55},
91
+ {"shard", 55},
92
+ {"fool?", 56},
93
+ {"magician?", 57},
94
+ {"magi?", 57},
95
+ {"mag?", 57},
96
+ {"highpriestess?", 58},
97
+ {"high?", 58},
98
+ {"priestess?", 58},
99
+ {"priest?", 58},
100
+ {"hp?", 58},
101
+ {"empress?", 59},
102
+ {"emperor?", 60},
103
+ {"emp?", 60},
104
+ {"hierophant?", 61},
105
+ {"hiero?", 61},
106
+ {"lovers?", 62},
107
+ {"chariot?", 63},
108
+ {"justice?", 64},
109
+ {"hermit?", 65},
110
+ {"wheeloffortune?", 66},
111
+ {"wheel?", 66},
112
+ {"fortune?", 66},
113
+ {"strength?", 67},
114
+ {"str?", 67},
115
+ {"hangedman?", 68},
116
+ {"hanged?", 68},
117
+ {"death?", 69},
118
+ {"temperance?", 70},
119
+ {"devil?", 71},
120
+ {"tower?", 72},
121
+ {"stars?", 73},
122
+ {"moon?", 74},
123
+ {"sun?", 75},
124
+ {"judgement?", 76},
125
+ {"judge?", 76},
126
+ {"world?", 77},
127
+ {"crackedkey", 78},
128
+ {"key", 78},
129
+ {"queenofhearts", 79},
130
+ {"queenhearts", 79},
131
+ {"wildcard", 80},
132
+ {"soulofisaac", 81},
133
+ {"soulisaac", 81},
134
+ {"isaac", 81},
135
+ {"soulofmagdalene", 82},
136
+ {"soulmagdalene", 82},
137
+ {"magdalene", 82},
138
+ {"soulofcain", 83},
139
+ {"soulcain", 83},
140
+ {"cain", 83},
141
+ {"soulofjudas", 84},
142
+ {"souljudas", 84},
143
+ {"judas", 84},
144
+ {"soulof???", 85},
145
+ {"soul???", 85},
146
+ {"???", 85},
147
+ {"soulofbluebaby", 85},
148
+ {"soulbluebaby", 85},
149
+ {"bluebaby", 85},
150
+ {"soulofeve", 86},
151
+ {"souleve", 86},
152
+ {"eve", 86},
153
+ {"soulofsamson", 87},
154
+ {"soulsamson", 87},
155
+ {"samson", 87},
156
+ {"soulofazazel", 88},
157
+ {"soulazazel", 88},
158
+ {"azazel", 88},
159
+ {"souloflazarus", 89},
160
+ {"soullazarus", 89},
161
+ {"lazarus", 89},
162
+ {"soulofeden", 90},
163
+ {"souleden", 90},
164
+ {"eden", 90},
165
+ {"soulofthelost", 91},
166
+ {"soulthelost", 91},
167
+ {"thelost", 91},
168
+ {"souloflost", 91},
169
+ {"soullost", 91},
170
+ {"lost", 91},
171
+ {"souloflilith", 92},
172
+ {"soullilith", 92},
173
+ {"lilith", 92},
174
+ {"soulofthekeeper", 93},
175
+ {"soulthekeeper", 93},
176
+ {"thekeeper", 93},
177
+ {"soulofkeeper", 93},
178
+ {"soulkeeper", 93},
179
+ {"keeper", 93},
180
+ {"soulofapollyon", 94},
181
+ {"soulapollyon", 94},
182
+ {"apollyon", 94},
183
+ {"souloftheforgotten", 95},
184
+ {"soultheforgotten", 95},
185
+ {"theforgotten", 95},
186
+ {"soulofforgotten", 95},
187
+ {"soulforgotten", 95},
188
+ {"forgotten", 95},
189
+ {"soulofbethany", 96},
190
+ {"soulbethany", 96},
191
+ {"bethany", 96},
192
+ {"soulofjacobandesau", 97},
193
+ {"souljacobandesau", 97},
194
+ {"jacobandesau", 97},
195
+ {"soulofjacob&esau", 97},
196
+ {"souljacob&esau", 97},
197
+ {"jacob&esau", 97},
198
+ {"soulofjacob", 97},
199
+ {"souljacob", 97},
200
+ {"jacob", 97}
201
+ })
202
+ return ____exports
@@ -0,0 +1,3 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /** Maps character names to character sub-types. */
3
+ export declare const CHARACTER_MAP: Map<string, PlayerType>;
@@ -0,0 +1,90 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
5
+ local ____exports = {}
6
+ ____exports.CHARACTER_MAP = __TS__New(Map, {
7
+ {"isaac", 0},
8
+ {"magdalene", 1},
9
+ {"maggy", 1},
10
+ {"cain", 2},
11
+ {"judas", 3},
12
+ {"bluebaby", 4},
13
+ {"bb", 4},
14
+ {"eve", 5},
15
+ {"samson", 6},
16
+ {"azazel", 7},
17
+ {"lazarus", 8},
18
+ {"laz", 8},
19
+ {"eden", 9},
20
+ {"thelost", 10},
21
+ {"lost", 10},
22
+ {"lazarus2", 11},
23
+ {"laz2", 11},
24
+ {"darkjudas", 12},
25
+ {"djudas", 12},
26
+ {"blackjudas", 12},
27
+ {"bjudas", 12},
28
+ {"lilith", 13},
29
+ {"keeper", 14},
30
+ {"apollyon", 15},
31
+ {"theforgotten", 16},
32
+ {"forgotten", 16},
33
+ {"thesoul", 17},
34
+ {"soul", 17},
35
+ {"bethany", 18},
36
+ {"jacob", 19},
37
+ {"esau", 20},
38
+ {"taintedisaac", 21},
39
+ {"tisaac", 21},
40
+ {"taintedmagdalene", 22},
41
+ {"tmagdalene", 22},
42
+ {"taintedmaggy", 22},
43
+ {"tmaggy", 22},
44
+ {"taintedcain", 23},
45
+ {"tcain", 23},
46
+ {"taintedjudas", 24},
47
+ {"tjudas", 24},
48
+ {"taintedbluebaby", 25},
49
+ {"tbluebaby", 25},
50
+ {"tbb", 25},
51
+ {"taintedeve", 26},
52
+ {"teve", 26},
53
+ {"taintedsamson", 27},
54
+ {"tsamson", 27},
55
+ {"taintedazazel", 28},
56
+ {"tazazel", 28},
57
+ {"taintedlazarus", 29},
58
+ {"tlazarus", 29},
59
+ {"taintedlaz", 29},
60
+ {"tlaz", 29},
61
+ {"taintededen", 30},
62
+ {"teden", 30},
63
+ {"taintedlost", 31},
64
+ {"tlost", 31},
65
+ {"taintedlilith", 32},
66
+ {"tlilith", 32},
67
+ {"taintedkeeper", 33},
68
+ {"tkeeper", 33},
69
+ {"taintedapollyon", 34},
70
+ {"tapollyon", 34},
71
+ {"taintedforgotten", 34},
72
+ {"tforgotten", 35},
73
+ {"taintedbethany", 36},
74
+ {"tbethany", 36},
75
+ {"taintedjacob", 37},
76
+ {"tjacob", 37},
77
+ {"taintedlazarusdead", 38},
78
+ {"tlazarusdead", 38},
79
+ {"taintedlazdead", 38},
80
+ {"tlazdead", 38},
81
+ {"deadtaintedlazarus", 38},
82
+ {"deadtlazarus", 38},
83
+ {"deadtaintedlaz", 38},
84
+ {"deadtlaz", 38},
85
+ {"taintedjacobghost", 39},
86
+ {"tjacobghost", 39},
87
+ {"taintedsoul", 40},
88
+ {"tsoul", 40}
89
+ })
90
+ return ____exports
@@ -0,0 +1,3 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /** Maps pill effect names to the values of the `PillEffect` enum. */
3
+ export declare const PILL_EFFECT_MAP: ReadonlyMap<string, PillEffect>;
@@ -0,0 +1,88 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
5
+ local ____exports = {}
6
+ ____exports.PILL_EFFECT_MAP = __TS__New(Map, {
7
+ {"badgas", 0},
8
+ {"gas", 0},
9
+ {"badtrip", 1},
10
+ {"trip", 1},
11
+ {"ballsofsteel", 2},
12
+ {"ballssteel", 2},
13
+ {"steel", 2},
14
+ {"bombsarekey", 3},
15
+ {"bombskey", 3},
16
+ {"key", 3},
17
+ {"explosivediarrhea", 4},
18
+ {"diarrhea", 4},
19
+ {"fullhealth", 5},
20
+ {"healthdown", 6},
21
+ {"healthup", 7},
22
+ {"ifoundpills", 8},
23
+ {"foundpills", 8},
24
+ {"pills", 8},
25
+ {"puberty", 9},
26
+ {"prettyfly", 10},
27
+ {"fly", 10},
28
+ {"rangedown", 11},
29
+ {"rangeup", 12},
30
+ {"speeddown", 13},
31
+ {"speedup", 14},
32
+ {"tearsdown", 15},
33
+ {"tearsup", 16},
34
+ {"luckdown", 17},
35
+ {"luckup", 18},
36
+ {"telepills", 19},
37
+ {"48hourenergy", 20},
38
+ {"energy", 20},
39
+ {"48", 20},
40
+ {"hematemesis", 21},
41
+ {"paralysis", 22},
42
+ {"icanseeforever!", 23},
43
+ {"cansee", 23},
44
+ {"see", 23},
45
+ {"pheromones", 24},
46
+ {"amnesia", 25},
47
+ {"lemonparty", 26},
48
+ {"party", 26},
49
+ {"ruawizard", 27},
50
+ {"areyouawizard", 27},
51
+ {"wizard", 27},
52
+ {"percs!", 28},
53
+ {"addicted!", 29},
54
+ {"relax", 30},
55
+ {"???", 31},
56
+ {"onemakesyoularger", 32},
57
+ {"larger", 32},
58
+ {"onemakesyousmaller", 33},
59
+ {"smaller", 33},
60
+ {"infested!", 34},
61
+ {"infest!", 34},
62
+ {"inf!", 34},
63
+ {"infested?", 35},
64
+ {"infest?", 35},
65
+ {"inf?", 35},
66
+ {"powerpill", 36},
67
+ {"retrovision", 37},
68
+ {"vision", 37},
69
+ {"friendstilltheend", 38},
70
+ {"friendsutilltheend", 38},
71
+ {"xlax", 39},
72
+ {"somethingswrong", 40},
73
+ {"wrong", 40},
74
+ {"imdrowsy", 41},
75
+ {"drowsy", 41},
76
+ {"imexcited!!!", 42},
77
+ {"excited", 42},
78
+ {"gulp!", 43},
79
+ {"horf!", 44},
80
+ {"feelslikeimwalkingonsunshine!", 45},
81
+ {"walking", 45},
82
+ {"sunshine", 45},
83
+ {"vurp!", 46},
84
+ {"shotspeeddown", 47},
85
+ {"shotspeedup", 48},
86
+ {"experimental", 49}
87
+ })
88
+ return ____exports
@@ -0,0 +1,3 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ /** Maps room type names to room types. */
3
+ export declare const ROOM_TYPE_MAP: ReadonlyMap<string, RoomType>;
@@ -0,0 +1,43 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
5
+ local ____exports = {}
6
+ ____exports.ROOM_TYPE_MAP = __TS__New(Map, {
7
+ {"null", RoomType.ROOM_NULL},
8
+ {"default", RoomType.ROOM_DEFAULT},
9
+ {"shop", RoomType.ROOM_SHOP},
10
+ {"error", RoomType.ROOM_ERROR},
11
+ {"iamerror", RoomType.ROOM_ERROR},
12
+ {"treasure", RoomType.ROOM_TREASURE},
13
+ {"boss", RoomType.ROOM_BOSS},
14
+ {"miniboss", RoomType.ROOM_MINIBOSS},
15
+ {"secret", RoomType.ROOM_SECRET},
16
+ {"supersecret", RoomType.ROOM_SUPERSECRET},
17
+ {"arcade", RoomType.ROOM_ARCADE},
18
+ {"curse", RoomType.ROOM_CURSE},
19
+ {"challenge", RoomType.ROOM_CHALLENGE},
20
+ {"library", RoomType.ROOM_LIBRARY},
21
+ {"sacrifice", RoomType.ROOM_SACRIFICE},
22
+ {"devil", RoomType.ROOM_DEVIL},
23
+ {"angel", RoomType.ROOM_ANGEL},
24
+ {"dungeon", RoomType.ROOM_DUNGEON},
25
+ {"crawlspace", RoomType.ROOM_DUNGEON},
26
+ {"bossrush", RoomType.ROOM_BOSSRUSH},
27
+ {"isaacs", RoomType.ROOM_ISAACS},
28
+ {"bedroom", RoomType.ROOM_ISAACS},
29
+ {"cleanbedroom", RoomType.ROOM_ISAACS},
30
+ {"barren", RoomType.ROOM_BARREN},
31
+ {"dirtybedroom", RoomType.ROOM_BARREN},
32
+ {"chest", RoomType.ROOM_CHEST},
33
+ {"dice", RoomType.ROOM_DICE},
34
+ {"blackmarket", RoomType.ROOM_BLACK_MARKET},
35
+ {"greedexit", RoomType.ROOM_GREED_EXIT},
36
+ {"planetarium", RoomType.ROOM_PLANETARIUM},
37
+ {"teleporter", RoomType.ROOM_TELEPORTER},
38
+ {"teleporterexit", RoomType.ROOM_TELEPORTER_EXIT},
39
+ {"secretexit", RoomType.ROOM_SECRET_EXIT},
40
+ {"blue", RoomType.ROOM_BLUE},
41
+ {"ultrasecret", RoomType.ROOM_ULTRASECRET}
42
+ })
43
+ return ____exports
@@ -0,0 +1,2 @@
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const ROOM_TYPE_NAME_MAP: ReadonlyMap<RoomType, string>;
@@ -0,0 +1,38 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____lualib = require("lualib_bundle")
3
+ local Map = ____lualib.Map
4
+ local __TS__New = ____lualib.__TS__New
5
+ local ____exports = {}
6
+ ____exports.ROOM_TYPE_NAME_MAP = __TS__New(Map, {
7
+ {RoomType.ROOM_NULL, "null room"},
8
+ {RoomType.ROOM_DEFAULT, "default room"},
9
+ {RoomType.ROOM_SHOP, "shop"},
10
+ {RoomType.ROOM_ERROR, "IAMERROR Room"},
11
+ {RoomType.ROOM_TREASURE, "Treasure Room"},
12
+ {RoomType.ROOM_BOSS, "Boss Room"},
13
+ {RoomType.ROOM_MINIBOSS, "Miniboss Room"},
14
+ {RoomType.ROOM_SECRET, "Secret Room"},
15
+ {RoomType.ROOM_SUPERSECRET, "Super Secret Room"},
16
+ {RoomType.ROOM_ARCADE, "Arcade"},
17
+ {RoomType.ROOM_CURSE, "Curse Room"},
18
+ {RoomType.ROOM_CHALLENGE, "Challenge Room"},
19
+ {RoomType.ROOM_LIBRARY, "Library"},
20
+ {RoomType.ROOM_SACRIFICE, "Sacrifice Room"},
21
+ {RoomType.ROOM_DEVIL, "Devil Room"},
22
+ {RoomType.ROOM_ANGEL, "Angel Room"},
23
+ {RoomType.ROOM_DUNGEON, "Crawlspace"},
24
+ {RoomType.ROOM_BOSSRUSH, "Boss Rush"},
25
+ {RoomType.ROOM_ISAACS, "Clean Bedroom"},
26
+ {RoomType.ROOM_BARREN, "Dirty Bedroom"},
27
+ {RoomType.ROOM_CHEST, "Chest Room"},
28
+ {RoomType.ROOM_DICE, "Dice Room"},
29
+ {RoomType.ROOM_BLACK_MARKET, "Black Market"},
30
+ {RoomType.ROOM_GREED_EXIT, "Greed Exit Room"},
31
+ {RoomType.ROOM_PLANETARIUM, "Planetarium"},
32
+ {RoomType.ROOM_TELEPORTER, "Teleporter Room"},
33
+ {RoomType.ROOM_TELEPORTER_EXIT, "Teleporter Exit Room"},
34
+ {RoomType.ROOM_SECRET_EXIT, "Secret Exit"},
35
+ {RoomType.ROOM_BLUE, "Blue Room"},
36
+ {RoomType.ROOM_ULTRASECRET, "Ultra Secret Room"}
37
+ })
38
+ return ____exports
@@ -2,6 +2,7 @@
2
2
  import { PostBombInitLateCallbackType } from "../callbacks/subscriptions/postBombInitLate";
3
3
  import { PostBoneSwingCallbackType } from "../callbacks/subscriptions/postBoneSwing";
4
4
  import { PostCursedTeleportCallbackType } from "../callbacks/subscriptions/postCursedTeleport";
5
+ import { PostCustomDoorEnterCallbackType } from "../callbacks/subscriptions/postCustomDoorEnter";
5
6
  import { PostCustomReviveCallbackType } from "../callbacks/subscriptions/postCustomRevive";
6
7
  import { PostEffectInitLateCallbackType } from "../callbacks/subscriptions/postEffectInitLate";
7
8
  import { PostEsauJrCallbackType } from "../callbacks/subscriptions/postEsauJr";
@@ -226,4 +227,7 @@ export interface CallbackParametersCustom {
226
227
  [ModCallbacksCustom.MC_POST_BONE_SWING]: [
227
228
  callback: PostBoneSwingCallbackType
228
229
  ];
230
+ [ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER]: [
231
+ callback: PostCustomDoorEnterCallbackType
232
+ ];
229
233
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This represents the type of health that is either given or taken away from a player. Note that
3
- * we cannot use the HeartSubType enum for this purpose this since it has no value for max hearts.
3
+ * we cannot use the HeartSubType enum for this purpose this since it has no value for broken hearts
4
+ * or max hearts.
4
5
  */
5
6
  export declare enum HealthType {
6
7
  RED = 0,
@@ -10,5 +11,6 @@ export declare enum HealthType {
10
11
  GOLDEN = 4,
11
12
  BONE = 5,
12
13
  ROTTEN = 6,
13
- MAX_HEARTS = 7
14
+ BROKEN = 7,
15
+ MAX_HEARTS = 8
14
16
  }
@@ -15,6 +15,8 @@ ____exports.HealthType.BONE = 5
15
15
  ____exports.HealthType[____exports.HealthType.BONE] = "BONE"
16
16
  ____exports.HealthType.ROTTEN = 6
17
17
  ____exports.HealthType[____exports.HealthType.ROTTEN] = "ROTTEN"
18
- ____exports.HealthType.MAX_HEARTS = 7
18
+ ____exports.HealthType.BROKEN = 7
19
+ ____exports.HealthType[____exports.HealthType.BROKEN] = "BROKEN"
20
+ ____exports.HealthType.MAX_HEARTS = 8
19
21
  ____exports.HealthType[____exports.HealthType.MAX_HEARTS] = "MAX_HEARTS"
20
22
  return ____exports