Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Custom Music options in Dungeons #148

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

SoshJam
Copy link

@SoshJam SoshJam commented Sep 7, 2023

Two changes to Custom Music in dungeons:

  • Add support for phaseone.wav to allow overriding the Maxor bossfight music. Normally the F7P1 music is different from the typical dungeon bossfight music, and this change reflects that.
  • Add volume slider for F7P1 music.
  • Stop the Blood Room music when it usually stops (after the lightning strike) instead of when going to the next phase.

@bowser0000 bowser0000 changed the base branch from master to development September 8, 2023 00:21
Comment on lines +228 to +234

// If we're awaiting the lightning, we should stop the music.
// This could be a false positive due to stormy mobs, but it wouldn't make much of a difference.
if (awaitingLightning && event.name.equals("ambient.weather.thunder")) {
awaitingLightning = false;
if (bloodroom != null) bloodroom.stop();
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use PacketReadEvent instead of PlaySoundEvent as it doesn't fire if the player has sounds disabled. See how it's implemented here https://github.com/bowser0000/SkyblockMod/blob/development/src/main/java/me/Danker/features/loot/LootTracker.java#L47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants