Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Commit

Permalink
yo yo yo, it's hump day!
Browse files Browse the repository at this point in the history
  • Loading branch information
APRO716 committed May 3, 2023
1 parent 2d62747 commit d96a0a1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
1 change: 0 additions & 1 deletion source/GameplayChangersSubstate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ class GameplayChangersSubstate extends MusicBeatSubstate
updateTextFrom(oOption);
}
}
//trace(curOption.options[num]);
}
updateTextFrom(curOption);
curOption.change();
Expand Down
5 changes: 5 additions & 0 deletions source/LoadingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class LoadingState extends MusicBeatState
{
callbacks = new MultiCallback(onLoad);
var introComplete = callbacks.add("introComplete");
if (PlayState.SONG != null) {
checkLoadSong(getSongPath());
if (PlayState.SONG.needsVoices)
checkLoadSong(getVocalPath());
}
checkLibrary("shared");
if(directory != null && directory.length > 0 && directory != 'shared') {
checkLibrary(directory);
Expand Down
9 changes: 4 additions & 5 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import flixel.math.FlxPoint;
import flixel.math.FlxRect;
#if (flixel >= "5.3.0")
import flixel.sound.FlxSound;
#else
#else
import flixel.system.FlxSound;
#end
import flixel.text.FlxText;
Expand Down Expand Up @@ -4067,10 +4067,9 @@ class PlayState extends MusicBeatState
sortedNotesList.sort(sortHitNotes);

if (sortedNotesList.length > 0) {
for (epicNote in sortedNotesList)
{
for (epicNote in sortedNotesList) {
for (doubleNote in pressNotes) {
if (Math.abs(doubleNote.strumTime - epicNote.strumTime) < 1) {
if (!doubleNote.isSustainNote && Math.abs(doubleNote.strumTime - epicNote.strumTime) < 2) {
doubleNote.kill();
notes.remove(doubleNote, true);
doubleNote.destroy();
Expand Down Expand Up @@ -4247,7 +4246,7 @@ class PlayState extends MusicBeatState
songMisses++;
totalPlayed++;
vocals.volume = 0;
health -= (daNote.nextNote != null || daNote.nextNote.countMiss ? daNote.missHealth : 0) * healthLoss; // More Accurate lol
health -= (daNote.nextNote != null ? daNote.missHealth : 0) * healthLoss; // More Accurate lol (Completely Fixed?)
RecalculateRating(true);

var char:Character = boyfriend;
Expand Down
10 changes: 4 additions & 6 deletions source/editors/EditorPlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -551,10 +551,9 @@ class EditorPlayState extends MusicBeatState
sortedNotesList.sort(sortHitNotes);

if (sortedNotesList.length > 0) {
for (epicNote in sortedNotesList)
{
for (epicNote in sortedNotesList) {
for (doubleNote in pressNotes) {
if (Math.abs(doubleNote.strumTime - epicNote.strumTime) < 1) {
if (!doubleNote.isSustainNote && Math.abs(doubleNote.strumTime - epicNote.strumTime) < 2) {
doubleNote.kill();
notes.remove(doubleNote, true);
doubleNote.destroy();
Expand All @@ -572,10 +571,9 @@ class EditorPlayState extends MusicBeatState
goodNoteHit(epicNote);
}
}
} else if (canMiss) {
noteMissPress();
}
else if (canMiss) {
noteMissPress();
}

//more accurate hit time for the ratings? part 2 (Now that the calculations are done, go back to the time it was before for not causing a note stutter)
Conductor.songPosition = lastTime;
Expand Down

1 comment on commit d96a0a1

@APRO716
Copy link
Owner Author

@APRO716 APRO716 commented on d96a0a1 May 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yo.Yo.Yo.its.hump.day.mp4

Please sign in to comment.