isaacscript-common 20.13.1 → 20.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +32 -4
- package/dist/isaacscript-common.lua +180 -113
- package/dist/lualib_bundle.lua +6 -30
- package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.lua +5 -0
- package/dist/src/classes/features/other/customStages/gridEntities.lua +22 -55
- package/dist/src/classes/features/other/customStages/versusScreen.lua +4 -10
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts +2 -0
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +6 -0
- package/dist/src/functions/logMisc.d.ts +1 -0
- package/dist/src/functions/logMisc.d.ts.map +1 -1
- package/dist/src/functions/logMisc.lua +6 -0
- package/dist/src/functions/sound.d.ts +18 -1
- package/dist/src/functions/sound.d.ts.map +1 -1
- package/dist/src/functions/sound.lua +31 -1
- package/dist/src/functions/ui.d.ts +4 -3
- package/dist/src/functions/ui.d.ts.map +1 -1
- package/dist/src/functions/ui.lua +4 -3
- package/dist/src/interfaces/CustomStageTSConfig.d.ts +7 -0
- package/dist/src/interfaces/CustomStageTSConfig.d.ts.map +1 -1
- package/dist/src/objects/stageToMusic.d.ts +108 -0
- package/dist/src/objects/stageToMusic.d.ts.map +1 -0
- package/dist/src/objects/stageToMusic.lua +93 -0
- package/package.json +1 -1
- package/src/classes/features/other/CustomStages.ts +17 -7
- package/src/classes/features/other/extraConsoleCommands/commands.ts +7 -0
- package/src/functions/logMisc.ts +9 -1
- package/src/functions/sound.ts +48 -3
- package/src/functions/ui.ts +4 -3
- package/src/interfaces/CustomStageTSConfig.ts +8 -0
- package/src/objects/stageToMusic.ts +99 -0
|
@@ -17,111 +17,78 @@ function getNewDoorPNGPath(self, customStage, fileName)
|
|
|
17
17
|
local ____cond26 = ____switch26 == "gfx/grid/door_01_normaldoor.anm2"
|
|
18
18
|
if ____cond26 then
|
|
19
19
|
do
|
|
20
|
-
local
|
|
21
|
-
|
|
22
|
-
____customStage_doorPNGPaths_normal_0 = ____customStage_doorPNGPaths_normal_0.normal
|
|
23
|
-
end
|
|
24
|
-
return ____customStage_doorPNGPaths_normal_0
|
|
20
|
+
local ____opt_0 = customStage.doorPNGPaths
|
|
21
|
+
return ____opt_0 and ____opt_0.normal
|
|
25
22
|
end
|
|
26
23
|
end
|
|
27
24
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_02_treasureroomdoor.anm2"
|
|
28
25
|
if ____cond26 then
|
|
29
26
|
do
|
|
30
|
-
local
|
|
31
|
-
|
|
32
|
-
____customStage_doorPNGPaths_treasureRoom_2 = ____customStage_doorPNGPaths_treasureRoom_2.treasureRoom
|
|
33
|
-
end
|
|
34
|
-
return ____customStage_doorPNGPaths_treasureRoom_2
|
|
27
|
+
local ____opt_2 = customStage.doorPNGPaths
|
|
28
|
+
return ____opt_2 and ____opt_2.treasureRoom
|
|
35
29
|
end
|
|
36
30
|
end
|
|
37
31
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_03_ambushroomdoor.anm2"
|
|
38
32
|
if ____cond26 then
|
|
39
33
|
do
|
|
40
|
-
local
|
|
41
|
-
|
|
42
|
-
____customStage_doorPNGPaths_normalChallengeRoom_4 = ____customStage_doorPNGPaths_normalChallengeRoom_4.normalChallengeRoom
|
|
43
|
-
end
|
|
44
|
-
return ____customStage_doorPNGPaths_normalChallengeRoom_4
|
|
34
|
+
local ____opt_4 = customStage.doorPNGPaths
|
|
35
|
+
return ____opt_4 and ____opt_4.normalChallengeRoom
|
|
45
36
|
end
|
|
46
37
|
end
|
|
47
38
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_04_selfsacrificeroomdoor.anm2"
|
|
48
39
|
if ____cond26 then
|
|
49
40
|
do
|
|
50
|
-
local
|
|
51
|
-
|
|
52
|
-
____customStage_doorPNGPaths_curseRoom_6 = ____customStage_doorPNGPaths_curseRoom_6.curseRoom
|
|
53
|
-
end
|
|
54
|
-
return ____customStage_doorPNGPaths_curseRoom_6
|
|
41
|
+
local ____opt_6 = customStage.doorPNGPaths
|
|
42
|
+
return ____opt_6 and ____opt_6.curseRoom
|
|
55
43
|
end
|
|
56
44
|
end
|
|
57
45
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_05_arcaderoomdoor.anm2"
|
|
58
46
|
if ____cond26 then
|
|
59
47
|
do
|
|
60
|
-
local
|
|
61
|
-
|
|
62
|
-
____customStage_doorPNGPaths_arcade_8 = ____customStage_doorPNGPaths_arcade_8.arcade
|
|
63
|
-
end
|
|
64
|
-
return ____customStage_doorPNGPaths_arcade_8
|
|
48
|
+
local ____opt_8 = customStage.doorPNGPaths
|
|
49
|
+
return ____opt_8 and ____opt_8.arcade
|
|
65
50
|
end
|
|
66
51
|
end
|
|
67
52
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_07_devilroomdoor.anm2"
|
|
68
53
|
if ____cond26 then
|
|
69
54
|
do
|
|
70
|
-
local
|
|
71
|
-
|
|
72
|
-
____customStage_doorPNGPaths_devilRoom_10 = ____customStage_doorPNGPaths_devilRoom_10.devilRoom
|
|
73
|
-
end
|
|
74
|
-
return ____customStage_doorPNGPaths_devilRoom_10
|
|
55
|
+
local ____opt_10 = customStage.doorPNGPaths
|
|
56
|
+
return ____opt_10 and ____opt_10.devilRoom
|
|
75
57
|
end
|
|
76
58
|
end
|
|
77
59
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_07_holyroomdoor.anm2"
|
|
78
60
|
if ____cond26 then
|
|
79
61
|
do
|
|
80
|
-
local
|
|
81
|
-
|
|
82
|
-
____customStage_doorPNGPaths_angelRoom_12 = ____customStage_doorPNGPaths_angelRoom_12.angelRoom
|
|
83
|
-
end
|
|
84
|
-
return ____customStage_doorPNGPaths_angelRoom_12
|
|
62
|
+
local ____opt_12 = customStage.doorPNGPaths
|
|
63
|
+
return ____opt_12 and ____opt_12.angelRoom
|
|
85
64
|
end
|
|
86
65
|
end
|
|
87
66
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_08_holeinwall.anm2"
|
|
88
67
|
if ____cond26 then
|
|
89
68
|
do
|
|
90
|
-
local
|
|
91
|
-
|
|
92
|
-
____customStage_doorPNGPaths_secretRoom_14 = ____customStage_doorPNGPaths_secretRoom_14.secretRoom
|
|
93
|
-
end
|
|
94
|
-
return ____customStage_doorPNGPaths_secretRoom_14
|
|
69
|
+
local ____opt_14 = customStage.doorPNGPaths
|
|
70
|
+
return ____opt_14 and ____opt_14.secretRoom
|
|
95
71
|
end
|
|
96
72
|
end
|
|
97
73
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_09_bossambushroomdoor.anm2"
|
|
98
74
|
if ____cond26 then
|
|
99
75
|
do
|
|
100
|
-
local
|
|
101
|
-
|
|
102
|
-
____customStage_doorPNGPaths_bossChallengeRoom_16 = ____customStage_doorPNGPaths_bossChallengeRoom_16.bossChallengeRoom
|
|
103
|
-
end
|
|
104
|
-
return ____customStage_doorPNGPaths_bossChallengeRoom_16
|
|
76
|
+
local ____opt_16 = customStage.doorPNGPaths
|
|
77
|
+
return ____opt_16 and ____opt_16.bossChallengeRoom
|
|
105
78
|
end
|
|
106
79
|
end
|
|
107
80
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_10_bossroomdoor.anm2"
|
|
108
81
|
if ____cond26 then
|
|
109
82
|
do
|
|
110
|
-
local
|
|
111
|
-
|
|
112
|
-
____customStage_doorPNGPaths_bossRoom_18 = ____customStage_doorPNGPaths_bossRoom_18.bossRoom
|
|
113
|
-
end
|
|
114
|
-
return ____customStage_doorPNGPaths_bossRoom_18
|
|
83
|
+
local ____opt_18 = customStage.doorPNGPaths
|
|
84
|
+
return ____opt_18 and ____opt_18.bossRoom
|
|
115
85
|
end
|
|
116
86
|
end
|
|
117
87
|
____cond26 = ____cond26 or ____switch26 == "gfx/grid/door_15_bossrushdoor.anm2"
|
|
118
88
|
if ____cond26 then
|
|
119
89
|
do
|
|
120
|
-
local
|
|
121
|
-
|
|
122
|
-
____customStage_doorPNGPaths_bossRush_20 = ____customStage_doorPNGPaths_bossRush_20.bossRush
|
|
123
|
-
end
|
|
124
|
-
return ____customStage_doorPNGPaths_bossRush_20
|
|
90
|
+
local ____opt_20 = customStage.doorPNGPaths
|
|
91
|
+
return ____opt_20 and ____opt_20.bossRush
|
|
125
92
|
end
|
|
126
93
|
end
|
|
127
94
|
until true
|
|
@@ -206,11 +206,8 @@ function ____exports.playVersusScreenAnimation(self, v, customStage, disableAllS
|
|
|
206
206
|
versusScreenBackgroundSprite:Load("gfx/ui/boss/versusscreen.anm2", true)
|
|
207
207
|
end
|
|
208
208
|
local backgroundColor = VERSUS_SCREEN_BACKGROUND_COLORS[DEFAULT_STAGE_ID]
|
|
209
|
-
local
|
|
210
|
-
if
|
|
211
|
-
____customStage_versusScreen_backgroundColor_2 = ____customStage_versusScreen_backgroundColor_2.backgroundColor
|
|
212
|
-
end
|
|
213
|
-
if ____customStage_versusScreen_backgroundColor_2 ~= nil then
|
|
209
|
+
local ____opt_2 = customStage.versusScreen
|
|
210
|
+
if (____opt_2 and ____opt_2.backgroundColor) ~= nil then
|
|
214
211
|
local ____customStage_versusScreen_backgroundColor_4 = customStage.versusScreen.backgroundColor
|
|
215
212
|
local r = ____customStage_versusScreen_backgroundColor_4.r
|
|
216
213
|
local g = ____customStage_versusScreen_backgroundColor_4.g
|
|
@@ -223,11 +220,8 @@ function ____exports.playVersusScreenAnimation(self, v, customStage, disableAllS
|
|
|
223
220
|
versusScreenDirtSpotSprite:Load("gfx/ui/boss/versusscreen.anm2", true)
|
|
224
221
|
end
|
|
225
222
|
local dirtSpotColor = VERSUS_SCREEN_DIRT_SPOT_COLORS[DEFAULT_STAGE_ID]
|
|
226
|
-
local
|
|
227
|
-
if
|
|
228
|
-
____customStage_versusScreen_dirtSpotColor_5 = ____customStage_versusScreen_dirtSpotColor_5.dirtSpotColor
|
|
229
|
-
end
|
|
230
|
-
if ____customStage_versusScreen_dirtSpotColor_5 ~= nil then
|
|
223
|
+
local ____opt_5 = customStage.versusScreen
|
|
224
|
+
if (____opt_5 and ____opt_5.dirtSpotColor) ~= nil then
|
|
231
225
|
local ____customStage_versusScreen_dirtSpotColor_7 = customStage.versusScreen.dirtSpotColor
|
|
232
226
|
local r = ____customStage_versusScreen_dirtSpotColor_7.r
|
|
233
227
|
local g = ____customStage_versusScreen_dirtSpotColor_7.g
|
|
@@ -255,6 +255,8 @@ export declare function maxHearts(params: string): void;
|
|
|
255
255
|
export declare function maze(): void;
|
|
256
256
|
/** Warps to the first Miniboss Room on the floor. */
|
|
257
257
|
export declare function miniboss(): void;
|
|
258
|
+
/** Logs the currently playing music track to the "log.txt" file. */
|
|
259
|
+
export declare function music(): void;
|
|
258
260
|
/** Alias for the "disableCurses" command. */
|
|
259
261
|
export declare function noCurses(): void;
|
|
260
262
|
/** Sets every NPC in the room to 1 HP. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAqIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4C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AA8C;AAC9C,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
|
|
@@ -59,6 +59,7 @@ local spawnGridEntity = ____gridEntities.spawnGridEntity
|
|
|
59
59
|
local ____levelGrid = require("src.functions.levelGrid")
|
|
60
60
|
local getRoomGridIndexesForType = ____levelGrid.getRoomGridIndexesForType
|
|
61
61
|
local ____logMisc = require("src.functions.logMisc")
|
|
62
|
+
local logMusic = ____logMisc.logMusic
|
|
62
63
|
local logPlayerEffects = ____logMisc.logPlayerEffects
|
|
63
64
|
local logRoom = ____logMisc.logRoom
|
|
64
65
|
local logSeedEffects = ____logMisc.logSeedEffects
|
|
@@ -807,6 +808,11 @@ end
|
|
|
807
808
|
function ____exports.miniboss(self)
|
|
808
809
|
warpToRoomType(nil, RoomType.MINI_BOSS)
|
|
809
810
|
end
|
|
811
|
+
--- Logs the currently playing music track to the "log.txt" file.
|
|
812
|
+
function ____exports.music(self)
|
|
813
|
+
logMusic()
|
|
814
|
+
print("Logged the currently playing music track to the \"log.txt\" file.")
|
|
815
|
+
end
|
|
810
816
|
--- Alias for the "disableCurses" command.
|
|
811
817
|
function ____exports.noCurses(self)
|
|
812
818
|
____exports.disableCurses(nil)
|
|
@@ -28,6 +28,7 @@ export declare function logKColor(this: void, kColor: KColor): void;
|
|
|
28
28
|
*/
|
|
29
29
|
export declare function logLevelStateFlags(this: void): void;
|
|
30
30
|
export declare function logMap(this: void, map: Map<AnyNotNil, unknown>): void;
|
|
31
|
+
export declare function logMusic(this: void): void;
|
|
31
32
|
export declare function logPlayerEffects(this: void, player: EntityPlayer): void;
|
|
32
33
|
export declare function logPlayerHealth(this: void, player: EntityPlayer): void;
|
|
33
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logMisc.d.ts","sourceRoot":"","sources":["../../../src/functions/logMisc.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,UAAU,
|
|
1
|
+
{"version":3,"file":"logMisc.d.ts","sourceRoot":"","sources":["../../../src/functions/logMisc.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,eAAe,EACf,UAAU,EACV,UAAU,EAMV,cAAc,EAGd,QAAQ,EACR,OAAO,EACR,MAAM,8BAA8B,CAAC;AAmBtC,kEAAkE;AAClE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,GAAG,IAAI,CAUvE;AAED,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,gBAAgB,EAAE,eAAe,EAAE,GAClC,IAAI,CASN;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAIvD;AAED,mGAAmG;AACnG,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC,GACvC,IAAI,CAEN;AAED,mGAAmG;AACnG,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC,GACvC,IAAI,CAEN;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAG5D;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAItD;AAED,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,CAAC,SAAS,OAAO,GAAG,UAAU,EACrD,IAAI,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,IAAI,GAAG,IAAI,CAQ1C;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,OAAO,EACjB,YAAY,SAAI,GACf,IAAI,CAuCN;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,EACxD,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EACpB,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,IAAI,CA8BN;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAkBhE;AAED,iGAAiG;AACjG,wBAAgB,YAAY,CAC1B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,GACnC,IAAI,CAEN;AAED,gGAAgG;AAChG,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GACjC,IAAI,CAEN;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAoB/D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,IAAI,CAGzE"}
|
|
@@ -15,6 +15,7 @@ local GameStateFlag = ____isaac_2Dtypescript_2Ddefinitions.GameStateFlag
|
|
|
15
15
|
local GridRoom = ____isaac_2Dtypescript_2Ddefinitions.GridRoom
|
|
16
16
|
local HeartSubType = ____isaac_2Dtypescript_2Ddefinitions.HeartSubType
|
|
17
17
|
local LevelStateFlag = ____isaac_2Dtypescript_2Ddefinitions.LevelStateFlag
|
|
18
|
+
local Music = ____isaac_2Dtypescript_2Ddefinitions.Music
|
|
18
19
|
local ProjectileFlag = ____isaac_2Dtypescript_2Ddefinitions.ProjectileFlag
|
|
19
20
|
local SeedEffect = ____isaac_2Dtypescript_2Ddefinitions.SeedEffect
|
|
20
21
|
local SoundEffect = ____isaac_2Dtypescript_2Ddefinitions.SoundEffect
|
|
@@ -22,6 +23,7 @@ local TearFlag = ____isaac_2Dtypescript_2Ddefinitions.TearFlag
|
|
|
22
23
|
local UseFlag = ____isaac_2Dtypescript_2Ddefinitions.UseFlag
|
|
23
24
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
24
25
|
local game = ____cachedClasses.game
|
|
26
|
+
local musicManager = ____cachedClasses.musicManager
|
|
25
27
|
local sfxManager = ____cachedClasses.sfxManager
|
|
26
28
|
local ____array = require("src.functions.array")
|
|
27
29
|
local arrayToString = ____array.arrayToString
|
|
@@ -181,6 +183,10 @@ function ____exports.logMap(map)
|
|
|
181
183
|
end
|
|
182
184
|
log(" The size of the map was: " .. tostring(map.size))
|
|
183
185
|
end
|
|
186
|
+
function ____exports.logMusic()
|
|
187
|
+
local currentMusic = musicManager:GetCurrentMusicID()
|
|
188
|
+
log(((("Currently playing music track: " .. Music[currentMusic]) .. " (") .. tostring(currentMusic)) .. ")")
|
|
189
|
+
end
|
|
184
190
|
function ____exports.logPlayerEffects(player)
|
|
185
191
|
local effects = getEffectsList(nil, player)
|
|
186
192
|
log("Logging player effects:")
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { LevelStage, Music, StageType } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* Helper function to get the corresponding music value for a stage and stage type combination.
|
|
4
|
+
*
|
|
5
|
+
* @param stage Optional. The stage to get the music for. If not specified, the current stage will
|
|
6
|
+
* be used.
|
|
7
|
+
* @param stageType Optional. The stage type to get the music for. If not specified, the current
|
|
8
|
+
* stage type will be used.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getMusicForStage(stage?: LevelStage, stageType?: StageType): Music;
|
|
11
|
+
/**
|
|
12
|
+
* Helper function to manually stop every vanilla sound effect. If you also want to stop custom
|
|
13
|
+
* sound effects in addition to vanilla ones, then pass the `SoundEffectCustom` enum for your mod.
|
|
14
|
+
*
|
|
15
|
+
* @param soundEffectCustom Optional. The enum that represents all of the custom sound effects for
|
|
16
|
+
* your mod.
|
|
17
|
+
*/
|
|
18
|
+
export declare function stopAllSoundEffects(soundEffectCustom?: unknown): void;
|
|
2
19
|
//# sourceMappingURL=sound.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../../../src/functions/sound.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sound.d.ts","sourceRoot":"","sources":["../../../src/functions/sound.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,KAAK,EAEL,SAAS,EACV,MAAM,8BAA8B,CAAC;AAKtC;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,CAAC,EAAE,UAAU,EAClB,SAAS,CAAC,EAAE,SAAS,GACpB,KAAK,CAaP;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,CAUrE"}
|
|
@@ -2,12 +2,42 @@ local ____exports = {}
|
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local SoundEffect = ____isaac_2Dtypescript_2Ddefinitions.SoundEffect
|
|
4
4
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
5
|
+
local game = ____cachedClasses.game
|
|
5
6
|
local sfxManager = ____cachedClasses.sfxManager
|
|
7
|
+
local ____stageToMusic = require("src.objects.stageToMusic")
|
|
8
|
+
local STAGE_TO_MUSIC = ____stageToMusic.STAGE_TO_MUSIC
|
|
6
9
|
local ____enums = require("src.functions.enums")
|
|
7
10
|
local getEnumValues = ____enums.getEnumValues
|
|
8
|
-
function
|
|
11
|
+
--- Helper function to get the corresponding music value for a stage and stage type combination.
|
|
12
|
+
--
|
|
13
|
+
-- @param stage Optional. The stage to get the music for. If not specified, the current stage will
|
|
14
|
+
-- be used.
|
|
15
|
+
-- @param stageType Optional. The stage type to get the music for. If not specified, the current
|
|
16
|
+
-- stage type will be used.
|
|
17
|
+
function ____exports.getMusicForStage(self, stage, stageType)
|
|
18
|
+
local level = game:GetLevel()
|
|
19
|
+
if stage == nil then
|
|
20
|
+
stage = level:GetStage()
|
|
21
|
+
end
|
|
22
|
+
if stageType == nil then
|
|
23
|
+
stageType = level:GetStageType()
|
|
24
|
+
end
|
|
25
|
+
local stageTypeToMusic = STAGE_TO_MUSIC[stage]
|
|
26
|
+
return stageTypeToMusic[stageType]
|
|
27
|
+
end
|
|
28
|
+
--- Helper function to manually stop every vanilla sound effect. If you also want to stop custom
|
|
29
|
+
-- sound effects in addition to vanilla ones, then pass the `SoundEffectCustom` enum for your mod.
|
|
30
|
+
--
|
|
31
|
+
-- @param soundEffectCustom Optional. The enum that represents all of the custom sound effects for
|
|
32
|
+
-- your mod.
|
|
33
|
+
function ____exports.stopAllSoundEffects(self, soundEffectCustom)
|
|
9
34
|
for ____, soundEffect in ipairs(getEnumValues(nil, SoundEffect)) do
|
|
10
35
|
sfxManager:Stop(soundEffect)
|
|
11
36
|
end
|
|
37
|
+
if soundEffectCustom ~= nil then
|
|
38
|
+
for ____, soundEffect in ipairs(getEnumValues(nil, soundEffectCustom)) do
|
|
39
|
+
sfxManager:Stop(soundEffect)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
12
42
|
end
|
|
13
43
|
return ____exports
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
/// <reference types="isaac-typescript-definitions" />
|
|
3
3
|
/// <reference types="isaac-typescript-definitions" />
|
|
4
4
|
/**
|
|
5
|
-
* In the options menu, players have the ability to set a HUD offset
|
|
6
|
-
*
|
|
7
|
-
* draw a UI
|
|
5
|
+
* In the options menu, players have the ability to set a HUD offset (which gets written to the
|
|
6
|
+
* `HudOffset` attribute in the "options.ini" file). This function uses the current HUD offset to
|
|
7
|
+
* generate a vector that should be added to the corresponding position that you want to draw a UI
|
|
8
|
+
* element at.
|
|
8
9
|
*
|
|
9
10
|
* For example:
|
|
10
11
|
* - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../src/functions/ui.ts"],"names":[],"mappings":";;;AAKA
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../src/functions/ui.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAmB3C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,CAU3D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,GAAG,CAgCtC;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAGjD;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAG/C;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAKhD;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAG7C;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,CAa1D"}
|
|
@@ -14,9 +14,10 @@ function ____exports.getScreenBottomRightPos(self)
|
|
|
14
14
|
local screenHeight = Isaac.GetScreenHeight()
|
|
15
15
|
return Vector(screenWidth, screenHeight)
|
|
16
16
|
end
|
|
17
|
-
--- In the options menu, players have the ability to set a HUD offset
|
|
18
|
-
--
|
|
19
|
-
-- draw a UI
|
|
17
|
+
--- In the options menu, players have the ability to set a HUD offset (which gets written to the
|
|
18
|
+
-- `HudOffset` attribute in the "options.ini" file). This function uses the current HUD offset to
|
|
19
|
+
-- generate a vector that should be added to the corresponding position that you want to draw a UI
|
|
20
|
+
-- element at.
|
|
20
21
|
--
|
|
21
22
|
-- For example:
|
|
22
23
|
-- - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
|
|
@@ -62,6 +62,13 @@ export interface CustomStageTSConfig {
|
|
|
62
62
|
* @maximum 5
|
|
63
63
|
*/
|
|
64
64
|
baseStageType?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Optional. A string that represents the name of the music track from the "content/music.xml"
|
|
67
|
+
* file that corresponds to this custom stage. It will be manually played upon entering the stage.
|
|
68
|
+
*
|
|
69
|
+
* If not specified, the same music track as the base stage will be used.
|
|
70
|
+
*/
|
|
71
|
+
music?: string;
|
|
65
72
|
/**
|
|
66
73
|
* Optional. An object containing the paths to the backdrop graphics for the stage. (A backdrop is
|
|
67
74
|
* the graphics for the walls and floor.) If not specified, the graphics for Basement will be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomStageTSConfig.d.ts","sourceRoot":"","sources":["../../../src/interfaces/CustomStageTSConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,MAAM,WAAW,mBAAmB;IAClC,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;;OAWG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;;;;;;;;;OAkBG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE;QACjB;;;;;;;;WAQG;QACH,OAAO,EAAE,MAAM,EAAE,CAAC;QAElB;;;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;WAGG;QACH,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;CACH;AAED;;;GAGG;AAEH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;;;;;;;;OAeG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,kFAAkF;IAClF,YAAY,CAAC,EAAE;QAEb;;;;;WAKG;QACH,WAAW,EAAE,MAAM,CAAC;QAGpB;;;;;WAKG;QACH,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED;;;;;;GAMG;AACH,UAAU,oBAAqB,SAAQ,mBAAmB;IACxD;;;;OAIG;IACH,aAAa,EAAE,uBAAuB,EAAE,CAAC;CAC1C;AAED,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,oBAAoB,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Music } from "isaac-typescript-definitions";
|
|
2
|
+
export declare const STAGE_TO_MUSIC: {
|
|
3
|
+
readonly 1: {
|
|
4
|
+
readonly 0: Music.BASEMENT;
|
|
5
|
+
readonly 1: Music.CELLAR;
|
|
6
|
+
readonly 2: Music.BURNING_BASEMENT;
|
|
7
|
+
readonly 3: Music.BASEMENT;
|
|
8
|
+
readonly 4: Music.DOWNPOUR;
|
|
9
|
+
readonly 5: Music.DROSS;
|
|
10
|
+
};
|
|
11
|
+
readonly 2: {
|
|
12
|
+
readonly 0: Music.BASEMENT;
|
|
13
|
+
readonly 1: Music.CELLAR;
|
|
14
|
+
readonly 2: Music.BURNING_BASEMENT;
|
|
15
|
+
readonly 3: Music.BASEMENT;
|
|
16
|
+
readonly 4: Music.DOWNPOUR;
|
|
17
|
+
readonly 5: Music.DROSS;
|
|
18
|
+
};
|
|
19
|
+
readonly 3: {
|
|
20
|
+
readonly 0: Music.CAVES;
|
|
21
|
+
readonly 1: Music.CATACOMBS;
|
|
22
|
+
readonly 2: Music.FLOODED_CAVES;
|
|
23
|
+
readonly 3: Music.CAVES;
|
|
24
|
+
readonly 4: Music.MINES;
|
|
25
|
+
readonly 5: Music.ASHPIT;
|
|
26
|
+
};
|
|
27
|
+
readonly 4: {
|
|
28
|
+
readonly 0: Music.CAVES;
|
|
29
|
+
readonly 1: Music.CATACOMBS;
|
|
30
|
+
readonly 2: Music.FLOODED_CAVES;
|
|
31
|
+
readonly 3: Music.CAVES;
|
|
32
|
+
readonly 4: Music.MINES;
|
|
33
|
+
readonly 5: Music.ASHPIT;
|
|
34
|
+
};
|
|
35
|
+
readonly 5: {
|
|
36
|
+
readonly 0: Music.DEPTHS;
|
|
37
|
+
readonly 1: Music.NECROPOLIS;
|
|
38
|
+
readonly 2: Music.DANK_DEPTHS;
|
|
39
|
+
readonly 3: Music.DEPTHS;
|
|
40
|
+
readonly 4: Music.MAUSOLEUM;
|
|
41
|
+
readonly 5: Music.GEHENNA;
|
|
42
|
+
};
|
|
43
|
+
readonly 6: {
|
|
44
|
+
readonly 0: Music.DEPTHS;
|
|
45
|
+
readonly 1: Music.NECROPOLIS;
|
|
46
|
+
readonly 2: Music.DANK_DEPTHS;
|
|
47
|
+
readonly 3: Music.DEPTHS;
|
|
48
|
+
readonly 4: Music.MAUSOLEUM;
|
|
49
|
+
readonly 5: Music.GEHENNA;
|
|
50
|
+
};
|
|
51
|
+
readonly 7: {
|
|
52
|
+
readonly 0: Music.WOMB;
|
|
53
|
+
readonly 1: Music.UTERO;
|
|
54
|
+
readonly 2: Music.SCARRED_WOMB;
|
|
55
|
+
readonly 3: Music.WOMB;
|
|
56
|
+
readonly 4: Music.CORPSE;
|
|
57
|
+
readonly 5: Music.MORTIS;
|
|
58
|
+
};
|
|
59
|
+
readonly 8: {
|
|
60
|
+
readonly 0: Music.WOMB;
|
|
61
|
+
readonly 1: Music.UTERO;
|
|
62
|
+
readonly 2: Music.SCARRED_WOMB;
|
|
63
|
+
readonly 3: Music.WOMB;
|
|
64
|
+
readonly 4: Music.CORPSE;
|
|
65
|
+
readonly 5: Music.MORTIS;
|
|
66
|
+
};
|
|
67
|
+
readonly 9: {
|
|
68
|
+
readonly 0: Music.BLUE_WOMB;
|
|
69
|
+
readonly 1: Music.BLUE_WOMB;
|
|
70
|
+
readonly 2: Music.BLUE_WOMB;
|
|
71
|
+
readonly 3: Music.BLUE_WOMB;
|
|
72
|
+
readonly 4: Music.BLUE_WOMB;
|
|
73
|
+
readonly 5: Music.BLUE_WOMB;
|
|
74
|
+
};
|
|
75
|
+
readonly 10: {
|
|
76
|
+
readonly 0: Music.SHEOL;
|
|
77
|
+
readonly 1: Music.CATHEDRAL;
|
|
78
|
+
readonly 2: Music.SHEOL;
|
|
79
|
+
readonly 3: Music.SHEOL;
|
|
80
|
+
readonly 4: Music.SHEOL;
|
|
81
|
+
readonly 5: Music.SHEOL;
|
|
82
|
+
};
|
|
83
|
+
readonly 11: {
|
|
84
|
+
readonly 0: Music.DARK_ROOM;
|
|
85
|
+
readonly 1: Music.CHEST;
|
|
86
|
+
readonly 2: Music.DARK_ROOM;
|
|
87
|
+
readonly 3: Music.DARK_ROOM;
|
|
88
|
+
readonly 4: Music.DARK_ROOM;
|
|
89
|
+
readonly 5: Music.DARK_ROOM;
|
|
90
|
+
};
|
|
91
|
+
readonly 12: {
|
|
92
|
+
readonly 0: Music.VOID;
|
|
93
|
+
readonly 1: Music.VOID;
|
|
94
|
+
readonly 2: Music.VOID;
|
|
95
|
+
readonly 3: Music.VOID;
|
|
96
|
+
readonly 4: Music.VOID;
|
|
97
|
+
readonly 5: Music.VOID;
|
|
98
|
+
};
|
|
99
|
+
readonly 13: {
|
|
100
|
+
readonly 0: Music.ISAACS_HOUSE;
|
|
101
|
+
readonly 1: Music.ISAACS_HOUSE;
|
|
102
|
+
readonly 2: Music.ISAACS_HOUSE;
|
|
103
|
+
readonly 3: Music.ISAACS_HOUSE;
|
|
104
|
+
readonly 4: Music.ISAACS_HOUSE;
|
|
105
|
+
readonly 5: Music.ISAACS_HOUSE;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=stageToMusic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stageToMusic.d.ts","sourceRoot":"","sources":["../../../src/objects/stageToMusic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,EAAa,MAAM,8BAA8B,CAAC;AAoF5E,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc8C,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
local ____exports = {}
|
|
2
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
|
+
local LevelStage = ____isaac_2Dtypescript_2Ddefinitions.LevelStage
|
|
4
|
+
local Music = ____isaac_2Dtypescript_2Ddefinitions.Music
|
|
5
|
+
local StageType = ____isaac_2Dtypescript_2Ddefinitions.StageType
|
|
6
|
+
local BASEMENT_TO_MUSIC = {
|
|
7
|
+
[StageType.ORIGINAL] = Music.BASEMENT,
|
|
8
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.CELLAR,
|
|
9
|
+
[StageType.AFTERBIRTH] = Music.BURNING_BASEMENT,
|
|
10
|
+
[StageType.GREED_MODE] = Music.BASEMENT,
|
|
11
|
+
[StageType.REPENTANCE] = Music.DOWNPOUR,
|
|
12
|
+
[StageType.REPENTANCE_B] = Music.DROSS
|
|
13
|
+
}
|
|
14
|
+
local CAVES_TO_MUSIC = {
|
|
15
|
+
[StageType.ORIGINAL] = Music.CAVES,
|
|
16
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.CATACOMBS,
|
|
17
|
+
[StageType.AFTERBIRTH] = Music.FLOODED_CAVES,
|
|
18
|
+
[StageType.GREED_MODE] = Music.CAVES,
|
|
19
|
+
[StageType.REPENTANCE] = Music.MINES,
|
|
20
|
+
[StageType.REPENTANCE_B] = Music.ASHPIT
|
|
21
|
+
}
|
|
22
|
+
local DEPTHS_TO_MUSIC = {
|
|
23
|
+
[StageType.ORIGINAL] = Music.DEPTHS,
|
|
24
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.NECROPOLIS,
|
|
25
|
+
[StageType.AFTERBIRTH] = Music.DANK_DEPTHS,
|
|
26
|
+
[StageType.GREED_MODE] = Music.DEPTHS,
|
|
27
|
+
[StageType.REPENTANCE] = Music.MAUSOLEUM,
|
|
28
|
+
[StageType.REPENTANCE_B] = Music.GEHENNA
|
|
29
|
+
}
|
|
30
|
+
local WOMB_TO_MUSIC = {
|
|
31
|
+
[StageType.ORIGINAL] = Music.WOMB,
|
|
32
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.UTERO,
|
|
33
|
+
[StageType.AFTERBIRTH] = Music.SCARRED_WOMB,
|
|
34
|
+
[StageType.GREED_MODE] = Music.WOMB,
|
|
35
|
+
[StageType.REPENTANCE] = Music.CORPSE,
|
|
36
|
+
[StageType.REPENTANCE_B] = Music.MORTIS
|
|
37
|
+
}
|
|
38
|
+
local BLUE_WOMB_TO_MUSIC = {
|
|
39
|
+
[StageType.ORIGINAL] = Music.BLUE_WOMB,
|
|
40
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.BLUE_WOMB,
|
|
41
|
+
[StageType.AFTERBIRTH] = Music.BLUE_WOMB,
|
|
42
|
+
[StageType.GREED_MODE] = Music.BLUE_WOMB,
|
|
43
|
+
[StageType.REPENTANCE] = Music.BLUE_WOMB,
|
|
44
|
+
[StageType.REPENTANCE_B] = Music.BLUE_WOMB
|
|
45
|
+
}
|
|
46
|
+
local SHEOL_CATHEDRAL_TO_MUSIC = {
|
|
47
|
+
[StageType.ORIGINAL] = Music.SHEOL,
|
|
48
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.CATHEDRAL,
|
|
49
|
+
[StageType.AFTERBIRTH] = Music.SHEOL,
|
|
50
|
+
[StageType.GREED_MODE] = Music.SHEOL,
|
|
51
|
+
[StageType.REPENTANCE] = Music.SHEOL,
|
|
52
|
+
[StageType.REPENTANCE_B] = Music.SHEOL
|
|
53
|
+
}
|
|
54
|
+
local DARK_ROOM_CHEST_TO_MUSIC = {
|
|
55
|
+
[StageType.ORIGINAL] = Music.DARK_ROOM,
|
|
56
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.CHEST,
|
|
57
|
+
[StageType.AFTERBIRTH] = Music.DARK_ROOM,
|
|
58
|
+
[StageType.GREED_MODE] = Music.DARK_ROOM,
|
|
59
|
+
[StageType.REPENTANCE] = Music.DARK_ROOM,
|
|
60
|
+
[StageType.REPENTANCE_B] = Music.DARK_ROOM
|
|
61
|
+
}
|
|
62
|
+
local THE_VOID_TO_MUSIC = {
|
|
63
|
+
[StageType.ORIGINAL] = Music.VOID,
|
|
64
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.VOID,
|
|
65
|
+
[StageType.AFTERBIRTH] = Music.VOID,
|
|
66
|
+
[StageType.GREED_MODE] = Music.VOID,
|
|
67
|
+
[StageType.REPENTANCE] = Music.VOID,
|
|
68
|
+
[StageType.REPENTANCE_B] = Music.VOID
|
|
69
|
+
}
|
|
70
|
+
local HOME_TO_MUSIC = {
|
|
71
|
+
[StageType.ORIGINAL] = Music.ISAACS_HOUSE,
|
|
72
|
+
[StageType.WRATH_OF_THE_LAMB] = Music.ISAACS_HOUSE,
|
|
73
|
+
[StageType.AFTERBIRTH] = Music.ISAACS_HOUSE,
|
|
74
|
+
[StageType.GREED_MODE] = Music.ISAACS_HOUSE,
|
|
75
|
+
[StageType.REPENTANCE] = Music.ISAACS_HOUSE,
|
|
76
|
+
[StageType.REPENTANCE_B] = Music.ISAACS_HOUSE
|
|
77
|
+
}
|
|
78
|
+
____exports.STAGE_TO_MUSIC = {
|
|
79
|
+
[LevelStage.BASEMENT_1] = BASEMENT_TO_MUSIC,
|
|
80
|
+
[LevelStage.BASEMENT_2] = BASEMENT_TO_MUSIC,
|
|
81
|
+
[LevelStage.CAVES_1] = CAVES_TO_MUSIC,
|
|
82
|
+
[LevelStage.CAVES_2] = CAVES_TO_MUSIC,
|
|
83
|
+
[LevelStage.DEPTHS_1] = DEPTHS_TO_MUSIC,
|
|
84
|
+
[LevelStage.DEPTHS_2] = DEPTHS_TO_MUSIC,
|
|
85
|
+
[LevelStage.WOMB_1] = WOMB_TO_MUSIC,
|
|
86
|
+
[LevelStage.WOMB_2] = WOMB_TO_MUSIC,
|
|
87
|
+
[LevelStage.BLUE_WOMB] = BLUE_WOMB_TO_MUSIC,
|
|
88
|
+
[LevelStage.SHEOL_CATHEDRAL] = SHEOL_CATHEDRAL_TO_MUSIC,
|
|
89
|
+
[LevelStage.DARK_ROOM_CHEST] = DARK_ROOM_CHEST_TO_MUSIC,
|
|
90
|
+
[LevelStage.THE_VOID] = THE_VOID_TO_MUSIC,
|
|
91
|
+
[LevelStage.HOME] = HOME_TO_MUSIC
|
|
92
|
+
}
|
|
93
|
+
return ____exports
|