forked from HarbourMasters/2ship2harkinian
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Adds fix to play correct audio when collecting the 4th …
…piece of a heart container (HarbourMasters#865) * [Enhancement] Adds fix to play correct audio when collecting the 4th piece of a heart container * Addresses review comments
- Loading branch information
Showing
7 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
mm/2s2h/Enhancements/Fixes/CompletedHeartContainerAudio.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <libultraship/bridge.h> | ||
#include "2s2h/GameInteractor/GameInteractor.h" | ||
|
||
extern "C" { | ||
#include "variables.h" | ||
} | ||
|
||
void RegisterCompletedHeartContainerAudio() { | ||
REGISTER_VB_SHOULD(VB_PLAY_HEART_CONTAINER_GET_FANFARE, { | ||
GetItemId getItemId = (GetItemId)va_arg(args, int); | ||
if (CVarGetInteger("gEnhancements.Fixes.CompletedHeartContainerAudio", 0) && getItemId == GI_HEART_PIECE && | ||
GET_QUEST_HEART_PIECE_COUNT == 0) { | ||
*should = true; | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#ifndef ENHANCEMENTS_FIXES_H | ||
#define ENHANCEMENTS_FIXES_H | ||
|
||
void RegisterCompletedHeartContainerAudio(); | ||
void RegisterFierceDeityZTargetMovement(); | ||
|
||
#endif // ENHANCEMENTS_FIXES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters