if no stage is found in chart, default will be chosen by week

This commit is contained in:
Lucky56
2021-06-11 08:31:50 +02:00
parent a645d3a49e
commit 17db8031c5
2 changed files with 19 additions and 4 deletions

View File

@ -344,7 +344,22 @@ class PlayState extends MusicBeatState
dialogue = CoolUtil.coolTextFile(Paths.txt('thorns/thornsDialogue'));
}
switch(SONG.stage)
//defaults if no stage was found in chart
var stageCheck:String = 'stage';
//i should check if its stage (but this is when none is found in chart anyway)
if (SONG.stage == null) {
switch(storyWeek)
{
case 2: stageCheck = 'halloween';
case 3: stageCheck = 'philly';
case 4: stageCheck = 'limo';
case 5: if (songLowercase == 'winter-horrorland') {stageCheck = 'mallEvil';} else {stageCheck = 'mall';}
case 6: if (songLowercase == 'thorns') {stageCheck = 'schoolEvil';} else {stageCheck = 'school';}
}
} else {stageCheck = SONG.stage;}
switch(stageCheck)
{
case 'halloween':
{