isaacscript-common 20.14.1 → 20.14.2

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.
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 20.14.1
3
+ isaacscript-common 20.14.2
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -42505,7 +42505,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
42505
42505
  end
42506
42506
  local music = customStage.music == nil and getMusicForStage(nil, baseStage, baseStageType) or Isaac.GetMusicIdByName(customStage.music)
42507
42507
  self.runInNFrames:runNextGameFrame(function()
42508
- musicManager:Play(music)
42508
+ musicManager:Play(music, 0.5)
42509
42509
  end)
42510
42510
  end
42511
42511
  function CustomStages.prototype.disableCustomStage(self)
@@ -1 +1 @@
1
- {"version":3,"file":"CustomStages.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomStages.ts"],"names":[],"mappings":"AAyCA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoChD,qBAAa,YAAa,SAAQ,OAAO;IA8BvC,oCAAoC;IACpC,OAAO,CAAC,eAAe,CAAkC;IAEzD,+BAA+B;IAC/B,OAAO,CAAC,yBAAyB,CAAwC;IAEzE,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,YAAY,CAAe;IAqDnC,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,6BAA6B;IAOrC,OAAO,CAAC,eAAe,CAarB;IAGF,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,aAAa,CAcnB;IAGF,OAAO,CAAC,eAAe,CAUrB;IAIF,OAAO,CAAC,2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EACjB,OAAO,UAAQ,GACd,IAAI;IAiFP;;;;;OAKG;IAEI,kBAAkB,IAAI,IAAI;CAGlC"}
@@ -342,7 +342,7 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
342
342
  end
343
343
  local music = customStage.music == nil and getMusicForStage(nil, baseStage, baseStageType) or Isaac.GetMusicIdByName(customStage.music)
344
344
  self.runInNFrames:runNextGameFrame(function()
345
- musicManager:Play(music)
345
+ musicManager:Play(music, 0.5)
346
346
  end)
347
347
  end
348
348
  function CustomStages.prototype.disableCustomStage(self)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "20.14.1",
3
+ "version": "20.14.2",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -504,7 +504,9 @@ export class CustomStages extends Feature {
504
504
  ? getMusicForStage(baseStage, baseStageType)
505
505
  : Isaac.GetMusicIdByName(customStage.music);
506
506
  this.runInNFrames.runNextGameFrame(() => {
507
- musicManager.Play(music);
507
+ // By default, the `MusicManager.Play` method will play the music at max volume (1.0), which
508
+ // is around twice as loud as the vanilla music plays.
509
+ musicManager.Play(music, 0.5);
508
510
  });
509
511
 
510
512
  // We must reload the current room in order for the `Level.SetStage` method to take effect.