Skip to content

Commit ec08506

Browse files
fix: remove repeating sound when using pseudo-pause on repentance+ (#134)
* fix: remove repeating sound when using pseudo-pause on repentance+ * fix import --------- Co-authored-by: Zamiell <5511220+Zamiell@users.noreply.github.com>
1 parent fc5203b commit ec08506

File tree

1 file changed

+10
-0
lines changed
  • packages/isaacscript-common/src/classes/features/other

1 file changed

+10
-0
lines changed

packages/isaacscript-common/src/classes/features/other/Pause.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import {
33
CollectibleType,
44
InputHook,
55
ModCallback,
6+
SoundEffect,
67
} from "isaac-typescript-definitions";
8+
import { sfxManager } from "../../../core/cachedClasses";
79
import { VectorZero } from "../../../core/constants";
810
import { Exported } from "../../../decorators";
911
import {
@@ -73,6 +75,10 @@ export class Pause extends Feature {
7375
const firstPlayer = Isaac.GetPlayer();
7476
useActiveItemTemp(firstPlayer, CollectibleType.PAUSE);
7577

78+
if (isRepentancePlus()) {
79+
sfxManager.Stop(SoundEffect.PAUSE_FREEZE);
80+
}
81+
7682
this.stopTearsAndProjectilesFromMoving();
7783
};
7884

@@ -178,6 +184,10 @@ export class Pause extends Feature {
178184
const firstPlayer = Isaac.GetPlayer();
179185
useActiveItemTemp(firstPlayer, CollectibleType.PAUSE);
180186

187+
if (isRepentancePlus()) {
188+
sfxManager.Stop(SoundEffect.PAUSE_FREEZE);
189+
}
190+
181191
const tstlClassName = getTSTLClassName(this);
182192
assertDefined(
183193
tstlClassName,

0 commit comments

Comments
 (0)