Skip to content

Commit 47e1c6c

Browse files
committed
Update APSettingsSubState.hx
1 parent a7cdc14 commit 47e1c6c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/archipelago/APSettingsSubState.hx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,18 @@ class APSettingsSubState extends MusicBeatSubstate {
425425
comment += "# The amount of checks (currently) possible is " + ((APEntryState.gameSettings.FNF.songList.length * 5) - APEntryState.gameSettings.FNF.song_limit) + ".\n";
426426
comment += "# The amount of checks (currently) if just Song Completion is used is " + ((APEntryState.gameSettings.FNF.songList.length * 2) - APEntryState.gameSettings.FNF.song_limit) + ".\n";
427427
comment += "# The amount of checks (currently) if just Note Checks is used is " + ((APEntryState.gameSettings.FNF.songList.length * 3) - APEntryState.gameSettings.FNF.song_limit) + ".\n";
428+
var songLimitChecks = 0;
429+
switch (APEntryState.gameSettings.FNF.unlock_method) {
430+
case "Song Completion":
431+
songLimitChecks = APEntryState.gameSettings.FNF.song_limit * 2;
432+
case "Note Checks":
433+
songLimitChecks = APEntryState.gameSettings.FNF.song_limit * 3;
434+
case "Both":
435+
songLimitChecks = APEntryState.gameSettings.FNF.song_limit * 5;
436+
default:
437+
songLimitChecks = APEntryState.gameSettings.FNF.song_limit;
438+
}
439+
comment += "# From the song limit of " + APEntryState.gameSettings.FNF.song_limit + ", you will have exactly " + songLimitChecks + " checks.\n";
428440
comment += "\n";
429441

430442
var yamlString = "Friday Night Funkin:\n";

0 commit comments

Comments
 (0)