mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-28 21:09:37 +00:00
Merge branch 'applehair/preview-inst-suffix' into feature/playable-pico-mode
This commit is contained in:
commit
6f2f2a9aa4
|
@ -1882,14 +1882,17 @@ class FreeplayState extends MusicBeatSubState
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var potentiallyErect:String = (currentDifficulty == "erect") || (currentDifficulty == "nightmare") ? "-erect" : "";
|
var previewSong:Null<Song> = SongRegistry.instance.fetchEntry(daSongCapsule.songData.songId);
|
||||||
|
var instSuffix:String = previewSong?.getDifficulty(currentDifficulty,
|
||||||
|
previewSong?.getVariationsByCharId(currentCharacter) ?? Constants.DEFAULT_VARIATION_LIST)?.characters?.instrumental ?? '';
|
||||||
|
instSuffix = (instSuffix != '') ? '-$instSuffix' : '';
|
||||||
FunkinSound.playMusic(daSongCapsule.songData.songId,
|
FunkinSound.playMusic(daSongCapsule.songData.songId,
|
||||||
{
|
{
|
||||||
startingVolume: 0.0,
|
startingVolume: 0.0,
|
||||||
overrideExisting: true,
|
overrideExisting: true,
|
||||||
restartTrack: false,
|
restartTrack: false,
|
||||||
pathsFunction: INST,
|
pathsFunction: INST,
|
||||||
suffix: potentiallyErect,
|
suffix: instSuffix,
|
||||||
partialParams:
|
partialParams:
|
||||||
{
|
{
|
||||||
loadPartial: true,
|
loadPartial: true,
|
||||||
|
|
Loading…
Reference in a new issue