Skip to content

Commit

Permalink
Update PlayState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanSantiagoYT committed Sep 30, 2023
1 parent 6fcb5b5 commit ba83fc5
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2557,7 +2557,7 @@ class PlayState extends MusicBeatState
}

cacheCountdown();
cachePopUpScore();
if (ClientPrefs.ratesAndCombo) cachePopUpScore(); //Caching the ratings is unnecessary if you turn off rating popups
for (key => type in precacheList)
{
//trace('Key $key is type $type');
Expand Down Expand Up @@ -5627,7 +5627,7 @@ if (ClientPrefs.showNPS) {
{
time = spawnTime * ClientPrefs.noteSpawnTime;
}
else
if (ClientPrefs.dynamicSpawnTime)
{
time = spawnTime / songSpeed;
}
Expand Down Expand Up @@ -5907,21 +5907,23 @@ if (ClientPrefs.showNPS) {
if (ClientPrefs.showcaseMode && !ClientPrefs.charsAndBG)
{
if (!daNote.isSustainNote) {
enemyHits += 1 * polyphony;
if (ClientPrefs.showNPS) { //i dont think we should be pushing to 2 arrays at the same time but oh well
oppNotesHitArray.push(1 * polyphony);
oppNotesHitDateArray.push(Date.now());
if (shouldKillNotes)
{
daNote.kill();
}
notes.remove(daNote, true);
if (shouldKillNotes)
{
daNote.destroy();
}
}
enemyHits += 1 * polyphony;
if (ClientPrefs.showNPS) {
oppNotesHitArray.push(1 * polyphony);
oppNotesHitDateArray.push(Date.now());
}
}
if (!daNote.isSustainNote) {
if (shouldKillNotes)
{
daNote.kill();
}
notes.remove(daNote, true);
if (shouldKillNotes)
{
daNote.destroy();
}
}
}
}

Expand Down

0 comments on commit ba83fc5

Please sign in to comment.