Skip to content

Commit 8bd23d8

Browse files
committed
almost
1 parent 8f2db61 commit 8bd23d8

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

source/archipelago/APNote.hx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import archipelago.PacketTypes.NetworkItem;
44

55
class APNote extends objects.Note {
66
var APItem:NetworkItem;
7-
var APItemLocation:Null<Int> = null;
7+
public var APItemLocation:Null<Int> = null;
88

99
public function new(note:objects.Note, location:Int, ?item:NetworkItem = null) {
1010
super(note.strumTime, note.noteData, note.prevNote, note.isSustainNote);
@@ -60,17 +60,18 @@ class APNote extends objects.Note {
6060
var location:Int = locations[i % locations.length];
6161
var apNote = new APNote(note, location, null); // Create a new APNote with the location
6262
newNotes.push(apNote);
63-
notes[randomIndices[i]] = apNote; // Replace the original note with the APNote
63+
notes[randomIndices[i]].isCheck = true; // Replace the original note with the APNote
64+
note = apNote; // Also replace the original note with the APNote
6465
for (queue in apNote.field.noteQueue) {
6566
for (i in 0...queue.length) {
6667
if (queue[i] == note) {
6768
queue[i] = apNote; // Replace the note with apNote in the double-array
68-
queue[i].rgbShader.r = apNote.rgbShader.r; // Set the color of the new note
69-
queue[i].rgbShader.g = apNote.rgbShader.g; // Set the color of the new note
70-
queue[i].rgbShader.b = apNote.rgbShader.b; // Set the color of the new note
71-
note.rgbShader.r = 0xFF0000; // Set the color of the original note to red
72-
note.rgbShader.g = 0xFF0000; // Set the color of the original note to red
73-
note.rgbShader.b = 0xFF0000; // Set the color of the original note to red
69+
queue[i].rgbShader.r = 0x3380CC; // Set the color of the new note
70+
queue[i].rgbShader.g = 0x3380CC; // Set the color of the new note
71+
queue[i].rgbShader.b = 0x3380CC; // Set the color of the new note
72+
note.rgbShader.r = 0x3380CC; // Set the color of the original note to red
73+
note.rgbShader.g = 0x3380CC; // Set the color of the original note to red
74+
note.rgbShader.b = 0x3380CC; // Set the color of the original note to red
7475
break; // Break out of the loop once the note is found and replaced
7576
}
7677
}

source/archipelago/APPlayState.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,6 +2027,7 @@ class APPlayState extends PlayState {
20272027
trace("Sending checks for all checked notes...");
20282028
for (note in checkedNotes) {
20292029
trace("Sending check for note: " + note);
2030+
trace("Sending location: " + note.APItemLocation);
20302031
note.sendCheck();
20312032
}
20322033
trace("All checks sent.");

source/states/FreeplayState.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ class FreeplayState extends MusicBeatState
16101610

16111611
if (songs[curSelected].songName != 'SONG NOT FOUND')
16121612
{
1613-
Mods.currentModDirectory = songs[curSelected].folder;
1613+
Mods.currentModDirectory = songs[curSelected+1].folder;
16141614
PlayState.storyWeek = songs[curSelected].week;
16151615

16161616
switch (songs[curSelected].songName)

0 commit comments

Comments
 (0)