isaacscript-common 1.2.135 → 1.2.138

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 (43) hide show
  1. package/dist/callbacks/customRevive.lua +1 -0
  2. package/dist/callbacks/postCustomDoorEnter.d.ts +8 -0
  3. package/dist/callbacks/postCustomDoorEnter.lua +35 -0
  4. package/dist/callbacks/postPlayerChangeHealth.lua +4 -64
  5. package/dist/callbacks/subscriptions/postCustomDoorEnter.d.ts +2 -0
  6. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +25 -0
  7. package/dist/constants.d.ts +5 -0
  8. package/dist/constants.lua +1 -0
  9. package/dist/features/extraConsoleCommands/commands.d.ts +250 -0
  10. package/dist/features/extraConsoleCommands/commands.lua +658 -0
  11. package/dist/features/extraConsoleCommands/init.d.ts +25 -0
  12. package/dist/features/extraConsoleCommands/init.lua +153 -0
  13. package/dist/features/extraConsoleCommands/v.d.ts +9 -0
  14. package/dist/features/extraConsoleCommands/v.lua +5 -0
  15. package/dist/functions/log.d.ts +5 -1
  16. package/dist/functions/log.lua +172 -2
  17. package/dist/functions/map.d.ts +16 -0
  18. package/dist/functions/map.lua +24 -0
  19. package/dist/functions/player.d.ts +2 -2
  20. package/dist/functions/playerHealth.d.ts +3 -0
  21. package/dist/functions/playerHealth.lua +142 -0
  22. package/dist/functions/run.d.ts +12 -0
  23. package/dist/functions/run.lua +25 -0
  24. package/dist/functions/utils.d.ts +0 -6
  25. package/dist/functions/utils.lua +0 -8
  26. package/dist/functions/vector.lua +8 -8
  27. package/dist/index.d.ts +6 -0
  28. package/dist/index.lua +46 -0
  29. package/dist/maps/cardMap.d.ts +3 -0
  30. package/dist/maps/cardMap.lua +202 -0
  31. package/dist/maps/characterMap.d.ts +3 -0
  32. package/dist/maps/characterMap.lua +90 -0
  33. package/dist/maps/pillEffectMap.d.ts +3 -0
  34. package/dist/maps/pillEffectMap.lua +88 -0
  35. package/dist/types/CallbackParametersCustom.d.ts +4 -0
  36. package/dist/types/HealthType.d.ts +4 -2
  37. package/dist/types/HealthType.lua +3 -1
  38. package/dist/types/ModCallbacksCustom.d.ts +2 -1
  39. package/dist/types/ModCallbacksCustom.lua +2 -0
  40. package/dist/types/ModUpgraded.lua +8 -0
  41. package/dist/types/PlayerIndex.d.ts +2 -2
  42. package/dist/upgradeMod.lua +3 -0
  43. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ local ____cachedClasses = require("cachedClasses")
4
+ local game = ____cachedClasses.game
5
+ local ____log = require("functions.log")
6
+ local log = ____log.log
7
+ function ____exports.onSetSeed(self)
8
+ local seeds = game:GetSeeds()
9
+ local customRun = seeds:IsCustomRun()
10
+ local challenge = Isaac.GetChallenge()
11
+ return challenge == Challenge.CHALLENGE_NULL and customRun
12
+ end
13
+ function ____exports.restart(self, character)
14
+ if character == nil then
15
+ log("Restarting.")
16
+ Isaac.ExecuteCommand("restart")
17
+ return
18
+ end
19
+ if character < 0 or character >= PlayerType.NUM_PLAYER_TYPES then
20
+ error(("Restarting as a character of " .. tostring(character)) .. " would crash the game.")
21
+ end
22
+ log("Restarting as character: " .. tostring(character))
23
+ Isaac.ExecuteCommand("restart " .. tostring(character))
24
+ end
25
+ return ____exports
@@ -71,12 +71,6 @@ export declare function hexToKColor(hexString: string, alpha: float): KColor;
71
71
  * is enabled or not.
72
72
  */
73
73
  export declare function isLuaDebugEnabled(): boolean;
74
- /**
75
- * Whether or not the player is playing on a set seed (i.e. that they entered in a specific seed by
76
- * pressing tab on the character selection screen). When the player resets the game on a set seed,
77
- * the game will not switch to a different seed.
78
- */
79
- export declare function onSetSeed(): boolean;
80
74
  /**
81
75
  * Helper function to print something to the in-game console. Use this instead of invoking the
82
76
  * `Isaac.ConsoleOutput` method directly because it will automatically insert a newline at the end
@@ -5,8 +5,6 @@ local __TS__ArraySort = ____lualib.__TS__ArraySort
5
5
  local __TS__StringReplace = ____lualib.__TS__StringReplace
6
6
  local __TS__StringSubstr = ____lualib.__TS__StringSubstr
7
7
  local ____exports = {}
8
- local ____cachedClasses = require("cachedClasses")
9
- local game = ____cachedClasses.game
10
8
  local HEX_STRING_LENGTH = 6
11
9
  ____exports.ensureAllCases = function(____, obj) return obj end
12
10
  function ____exports.getEnumValues(self, transpiledEnum)
@@ -45,12 +43,6 @@ end
45
43
  function ____exports.isLuaDebugEnabled(self)
46
44
  return package ~= nil
47
45
  end
48
- function ____exports.onSetSeed(self)
49
- local seeds = game:GetSeeds()
50
- local customRun = seeds:IsCustomRun()
51
- local challenge = Isaac.GetChallenge()
52
- return challenge == Challenge.CHALLENGE_NULL and customRun
53
- end
54
46
  function ____exports.printConsole(self, msg)
55
47
  Isaac.ConsoleOutput(msg .. "\n")
56
48
  end
@@ -8,10 +8,10 @@ end
8
8
  function ____exports.directionToVector(self, direction)
9
9
  repeat
10
10
  local ____switch4 = direction
11
- local ____cond4 = ____switch4 == Direction.DOWN
11
+ local ____cond4 = ____switch4 == Direction.NO_DIRECTION
12
12
  if ____cond4 then
13
13
  do
14
- return Vector(0, 1)
14
+ return Vector.Zero
15
15
  end
16
16
  end
17
17
  ____cond4 = ____cond4 or ____switch4 == Direction.LEFT
@@ -20,22 +20,22 @@ function ____exports.directionToVector(self, direction)
20
20
  return Vector(-1, 0)
21
21
  end
22
22
  end
23
- ____cond4 = ____cond4 or ____switch4 == Direction.RIGHT
23
+ ____cond4 = ____cond4 or ____switch4 == Direction.UP
24
24
  if ____cond4 then
25
25
  do
26
- return Vector(1, 0)
26
+ return Vector(0, -1)
27
27
  end
28
28
  end
29
- ____cond4 = ____cond4 or ____switch4 == Direction.UP
29
+ ____cond4 = ____cond4 or ____switch4 == Direction.RIGHT
30
30
  if ____cond4 then
31
31
  do
32
- return Vector(0, -1)
32
+ return Vector(1, 0)
33
33
  end
34
34
  end
35
- ____cond4 = ____cond4 or ____switch4 == Direction.NO_DIRECTION
35
+ ____cond4 = ____cond4 or ____switch4 == Direction.DOWN
36
36
  if ____cond4 then
37
37
  do
38
- return Vector.Zero
38
+ return Vector(0, 1)
39
39
  end
40
40
  end
41
41
  do
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,13 +70,16 @@ 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";
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
@@ -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
@@ -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
@@ -54,5 +54,6 @@ export declare enum ModCallbacksCustom {
54
54
  MC_POST_GRID_ENTITY_STATE_CHANGE = 45,
55
55
  MC_POST_GRID_ENTITY_BROKEN = 46,
56
56
  MC_POST_GRID_ENTITY_COLLISION = 47,
57
- MC_POST_BONE_SWING = 48
57
+ MC_POST_BONE_SWING = 48,
58
+ MC_POST_CUSTOM_DOOR_ENTER = 49
58
59
  }
@@ -99,4 +99,6 @@ ____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION = 47
99
99
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_GRID_ENTITY_COLLISION] = "MC_POST_GRID_ENTITY_COLLISION"
100
100
  ____exports.ModCallbacksCustom.MC_POST_BONE_SWING = 48
101
101
  ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_BONE_SWING] = "MC_POST_BONE_SWING"
102
+ ____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER = 49
103
+ ____exports.ModCallbacksCustom[____exports.ModCallbacksCustom.MC_POST_CUSTOM_DOOR_ENTER] = "MC_POST_CUSTOM_DOOR_ENTER"
102
104
  return ____exports