Skip to content

Commit fe14b1f

Browse files
committed
a
1 parent fee31e1 commit fe14b1f

File tree

3 files changed

+24
-31
lines changed

3 files changed

+24
-31
lines changed

source/archipelago/APNote.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ 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.isCheck = true;
6364
notes[randomIndices[i]] = apNote; // Replace the original note with the APNote
6465
}
6566

source/archipelago/APPlayState.hx

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,8 @@ class APPlayState extends PlayState {
13551355
public static var ghostChat:Bool = false;
13561356
// I feel bad for the poor soul that has this trigger on them multiple times
13571357
public function triggerGhostChat()
1358-
{ ghostChat = true;
1358+
{
1359+
ghostChat = true;
13591360
randoTimer.start(FlxG.random.float(5, 10), function(tmr:FlxTimer)
13601361
tmr.reset(FlxG.random.float(5, 10) + (FlxG.random.bool(10) ? FlxG.random.float(1, 20) : 0))); doEffect(effectArray[curEffect]);
13611362
trace("Ghost Chat Activated! L E T T H E C H A O S B E G I N !");
@@ -1495,6 +1496,11 @@ class APPlayState extends PlayState {
14951496
private override function generateSong():Void
14961497
{
14971498
super.generateSong();
1499+
if (PlayState.SONG == null) return;
1500+
archipelago.APNote.replaceNotes(allNotes, apGame.excludeCheckedLocations(apGame.noteData(PlayState.SONG.song, currentMod)));
1501+
1502+
for (field in playfields.members)
1503+
field.clearStackedNotes();
14981504
}
14991505

15001506
// override public function generateNotes(song:SwagSong, AI:Array<Array<Float>>):Void
@@ -1859,25 +1865,7 @@ class APPlayState extends PlayState {
18591865
for (i in activeItems)
18601866
if (i == 0)
18611867
FlxG.save.data.activeItems = null;
1862-
1863-
/*if (FlxG.keys.justPressed.F)
1864-
{
1865-
switch (FlxG.random.int(0, 2))
1866-
{
1867-
case 0:
1868-
activeItems[0] += 1;
1869-
ArchPopup.startPopupCustom('You Got an Item!', '+1 Shield ( ' + activeItems[0] + ' Left)', 'archColor');
1870-
case 1:
1871-
activeItems[1] = 1;
1872-
ArchPopup.startPopupCustom('You Got an Item!', "Blue Ball's Curse", 'archColor');
1873-
case 2:
1874-
activeItems[2] += 1;
1875-
ArchPopup.startPopupCustom('You Got an Item!', "Max HP Up!", 'archColor');
1876-
case 3:
1877-
keybindSwitch('SAND');
1878-
ArchPopup.startPopupCustom('You Got an Item!', "Keybind Switch (S A N D)", 'archColor');
1879-
}
1880-
}*/
1868+
18811869
#if windows
18821870
for (video in addedMP4s)
18831871
{
@@ -2245,8 +2233,7 @@ class APPlayState extends PlayState {
22452233
}
22462234

22472235
if (note.isCheck) {
2248-
if (ClientPrefs.data.notePopup)
2249-
ArchPopup.startPopupCustom('You Found A Check!', '$check/$itemAmount', 'archColor'); // test
2236+
ArchPopup.startPopupCustom('You Found A Check!', 'One of em anyway', 'archColor'); // test
22502237
checkedNotes.push(cast(note, archipelago.APNote));
22512238
}
22522239

source/states/PlayState.hx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2421,18 +2421,18 @@ class PlayState extends MusicBeatState
24212421
daBpm = section.bpm;
24222422

24232423
// Function to get random mappings from available indexes and a list of special integers
2424-
function getAPLocations(max:Int, loc:Array<Int>, gottaHit:Array<Bool>):Array<{index:Int, loc:Int}> {
2424+
/*function getAPLocations(max:Int, loc:Array<Int>, gottaHit:Array<Bool>):Array<{index:Int, loc:Int}> {
24252425
var mappings:Array<{index:Int, loc:Int}> = [];
24262426
var indexes:Array<Int> = [for (i in 0...max) if (gottaHit[i]) i];
2427-
2427+
//trace(indexes.length);
24282428
for (i in 0...Std.int(Math.min(indexes.length, loc.length))) {
24292429
mappings.push({index: indexes[i], loc: loc[i]});
24302430
}
24312431
return mappings;
2432-
}
2432+
}*/
24332433

2434-
var gottaHit:Array<Bool> = [for (note in section.sectionNotes) note[1] < (SONG.mania != null ? totalColumns : Note.ammo[3])];
2435-
var APNotes:Array<{index:Int, loc:Int}> = (this is archipelago.APPlayState) ? getAPLocations(section.sectionNotes.length, archipelago.APGameState.instance.noteData(PlayState.SONG.song, archipelago.APPlayState.currentMod), gottaHit) : [];
2434+
//var gottaHit:Array<Bool> = [for (note in section.sectionNotes) note[1] < (SONG.mania != null ? totalColumns : Note.ammo[3])];
2435+
//var APNotes:Array<{index:Int, loc:Int}> = (this is archipelago.APPlayState) ? getAPLocations(section.sectionNotes.length, archipelago.APGameState.instance.noteData(PlayState.SONG.song, archipelago.APPlayState.currentMod), gottaHit) : [];
24362436

24372437
for (i in 0...section.sectionNotes.length)
24382438
{
@@ -2442,15 +2442,15 @@ class PlayState extends MusicBeatState
24422442
var noteStartColumn:Int = Std.int(songNotes[1] % Note.ammo[SONG.mania != null ? SONG.mania : 3]);
24432443
var holdLength:Float = songNotes[2];
24442444
var noteType:String = !Std.isOfType(songNotes[3], String) ? Note.defaultNoteTypes[songNotes[3]] : songNotes[3];
2445-
var apNote:Bool = (function() {
2445+
/*var apNote:Bool = (function() {
24462446
for (apNoteData in APNotes) {
24472447
if (apNoteData.index == i) {
24482448
return true;
24492449
}
24502450
}
24512451
return false;
2452-
})();
2453-
var apLoc = APNotes.filter(function(apNoteData) return apNoteData.index == i)[0]?.loc;
2452+
})();*/
2453+
//var apLoc = APNotes.filter(function(apNoteData) return apNoteData.index == i)[0]?.loc;
24542454
if (Math.isNaN(holdLength)) holdLength = 0.0;
24552455

24562456
if (chartModifier != "4K Only" && chartModifier != "ManiaConverter") {
@@ -2856,8 +2856,13 @@ class PlayState extends MusicBeatState
28562856
oldNote = null;
28572857

28582858
var swagNote:Note = new Note(spawnTime, noteColumn, oldNote);
2859-
if (apNote)
2859+
/*if (apNote) {
28602860
swagNote = new archipelago.APNote(swagNote, apLoc);
2861+
swagNote.isCheck = true; //Just in case
2862+
swagNote.rgbShader.r = 0x3380CC;
2863+
swagNote.rgbShader.g = 0x3380CC;
2864+
swagNote.rgbShader.b = 0x3380CC;
2865+
}*/
28612866
swagNote.mustPress = gottaHitNote;
28622867
if (!swagNote.mustPress)
28632868
{

0 commit comments

Comments
 (0)