@@ -4,7 +4,7 @@ import archipelago.PacketTypes.NetworkItem;
44
55class 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 }
0 commit comments