Skip to content

Commit 7b8a7f9

Browse files
committed
the the FUN begin!
1 parent 28ddb0d commit 7b8a7f9

File tree

13 files changed

+829
-628
lines changed

13 files changed

+829
-628
lines changed

source/archipelago/APGameState.hx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ class APGameState
488488
return false;
489489
}
490490
}
491-
if (FreeplayManager.isVictorySong(songName, modName))
491+
if (APFreeplayManager.isVictorySong(songName, modName))
492492
{
493493
setGoal();
494494
return true;
@@ -632,23 +632,23 @@ class APGameState
632632
message = "Hint: " + receivingPlayerName + " will find " + itemName + " in " + findingPlayerName + "'s World at " + locationName;
633633
}
634634

635-
if (FreeplayManager.hintTable.exists(locationName))
635+
if (APFreeplayManager.hintTable.exists(locationName))
636636
{
637-
FreeplayManager.hintTable.set(locationName, FreeplayManager.hintTable.get(locationName) + "\n" + message);
637+
APFreeplayManager.hintTable.set(locationName, APFreeplayManager.hintTable.get(locationName) + "\n" + message);
638638
}
639639
else
640640
{
641-
FreeplayManager.hintTable.set(locationName, message);
641+
APFreeplayManager.hintTable.set(locationName, message);
642642
}
643643
}
644644
}
645645
}
646-
for (hint in FreeplayManager.hintTable.keys())
646+
for (hint in APFreeplayManager.hintTable.keys())
647647
{
648-
var message = FreeplayManager.hintTable.get(hint);
648+
var message = APFreeplayManager.hintTable.get(hint);
649649
trace("Hint: " + hint + " - " + message);
650650
var hintSong = getSongAndMod(hint);
651-
FreeplayManager.curHinted.push({song: hintSong.song, mod: hintSong.mod != null ? hintSong.mod : ""});
651+
APFreeplayManager.curHinted.push({song: hintSong.song, mod: hintSong.mod != null ? hintSong.mod : ""});
652652
trace(hintSong);
653653
}
654654
}
@@ -920,7 +920,7 @@ class APGameState
920920
var tickets = 0;
921921
var nonSongs:Map<String, Int> = [];
922922
var nonSongsNames:Array<String> = [];
923-
FreeplayManager.curMissing = [];
923+
APFreeplayManager.curMissing = [];
924924

925925
for (songName in song)
926926
{
@@ -945,7 +945,7 @@ class APGameState
945945
data.mod = "";
946946
}
947947
var isUnlocked = false;
948-
for (unlocked in FreeplayManager.curUnlocked)
948+
for (unlocked in APFreeplayManager.curUnlocked)
949949
{
950950
if (unlocked.song == data.song && unlocked.mod == data.mod)
951951
{
@@ -960,12 +960,12 @@ class APGameState
960960
{
961961
if (!isSync)
962962
ArchPopup.startPopupSong(data.song, 'archColor');
963-
FreeplayManager.curUnlocked.push({song: data.song, mod: data.mod});
963+
APFreeplayManager.curUnlocked.push({song: data.song, mod: data.mod});
964964
}
965965
}
966966

967967
// Check special items and remove any matching items with no mod
968-
FreeplayManager.curUnlocked = FreeplayManager.curUnlocked.filter(unlocked ->
968+
APFreeplayManager.curUnlocked = APFreeplayManager.curUnlocked.filter(unlocked ->
969969
!(APItems.exists(unlocked.song) && unlocked.mod.trim() == "")
970970
);
971971
}
@@ -1059,7 +1059,7 @@ class APGameState
10591059
info().casualSync = false;
10601060
try
10611061
{
1062-
FreeplayManager.reloadFreeplay(true);
1062+
states.freeplay.FreeplayState.instance.fpManager.reloadFreeplay(true);
10631063
}
10641064
catch (e:Dynamic)
10651065
{
@@ -1154,7 +1154,7 @@ class APGameState
11541154

11551155
function checkIfLocked(song:String, mod:String):Bool
11561156
{
1157-
return !(FreeplayManager.curUnlocked.contains(APEntryState.apGame.getSongAndMod(song + mod)));
1157+
return !(APFreeplayManager.curUnlocked.contains(APEntryState.apGame.getSongAndMod(song + mod)));
11581158
}
11591159

11601160
function validateMods()

source/archipelago/APPlayState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2068,7 +2068,7 @@ class APPlayState extends PlayState {
20682068

20692069

20702070
paused = true;
2071-
FreeplayManager.callVictory = FreeplayManager.isVictorySong(PlayState.SONG.song, currentMod);
2071+
APFreeplayManager.callVictory = APFreeplayManager.isVictorySong(PlayState.SONG.song, currentMod);
20722072
openSubState(new substates.RankingSubstate());
20732073
return true; //why does endsong need this?????
20742074
}

source/archipelago/Client.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ class Client {
14461446
APGameState.instance.APItems = APGameState.instance.findSpecialItems();
14471447
APGameState.instance.initSaveData();
14481448
try {
1449-
FreeplayManager.reloadFreeplay(true);
1449+
states.freeplay.FreeplayState.instance.fpManager.reloadFreeplay(true);
14501450
} catch (e:Dynamic) {
14511451
backend.MusicBeatState.resetState();
14521452
}
@@ -1500,7 +1500,7 @@ class Client {
15001500
APGameState.instance.APItems = APGameState.instance.findSpecialItems();
15011501
APGameState.instance.initSaveData();
15021502
try {
1503-
FreeplayManager.reloadFreeplay(true);
1503+
states.freeplay.FreeplayState.instance.fpManager.reloadFreeplay(true);
15041504
} catch (e:Dynamic) {
15051505
backend.MusicBeatState.resetState();
15061506
}

0 commit comments

Comments
 (0)