like a lot of things lmaooo
This commit is contained in:
@ -107,7 +107,9 @@ class PlayState extends MusicBeatState
|
||||
private var combo:Int = 0;
|
||||
public static var misses:Int = 0;
|
||||
private var accuracy:Float = 0.00;
|
||||
private var accuracyDefault:Float = 0.00;
|
||||
private var totalNotesHit:Float = 0;
|
||||
private var totalNotesHitDefault:Float = 0;
|
||||
private var totalPlayed:Int = 0;
|
||||
private var ss:Bool = false;
|
||||
|
||||
@ -154,6 +156,7 @@ class PlayState extends MusicBeatState
|
||||
|
||||
var talking:Bool = true;
|
||||
var songScore:Int = 0;
|
||||
var songScoreDef:Int = 0;
|
||||
var scoreTxt:FlxText;
|
||||
var replayTxt:FlxText;
|
||||
|
||||
@ -176,12 +179,6 @@ class PlayState extends MusicBeatState
|
||||
override public function create()
|
||||
{
|
||||
|
||||
if (FlxG.save.data.etternaMode)
|
||||
Conductor.safeFrames = 5; // 116ms hit window (j3-4)
|
||||
else
|
||||
Conductor.safeFrames = 10; // 166ms hit window (j1)
|
||||
|
||||
|
||||
if (FlxG.sound.music != null)
|
||||
FlxG.sound.music.stop();
|
||||
|
||||
@ -257,6 +254,8 @@ class PlayState extends MusicBeatState
|
||||
Conductor.mapBPMChanges(SONG);
|
||||
Conductor.changeBPM(SONG.bpm);
|
||||
|
||||
trace('INFORMATION ABOUT WHAT U PLAYIN WIT:\nFRAMES: ' + Conductor.safeFrames + '\nZONE: ' + Conductor.safeZoneOffset);
|
||||
|
||||
switch (SONG.song.toLowerCase())
|
||||
{
|
||||
case 'tutorial':
|
||||
@ -1615,7 +1614,7 @@ class PlayState extends MusicBeatState
|
||||
{
|
||||
if (FlxG.save.data.accuracyDisplay)
|
||||
{
|
||||
scoreTxt.text = (FlxG.save.data.npsDisplay ? "NPS: " + nps + " | " : "") + "Score:" + (FlxG.save.data.etternaMode ? Math.max(0,etternaModeScore) + " (" + songScore + ")" : "" + songScore) + " | Combo Breaks:" + misses + " | Accuracy:" + truncateFloat(accuracy, 2) + "% | " + generateRanking();
|
||||
scoreTxt.text = (FlxG.save.data.npsDisplay ? "NPS: " + nps + " | " : "") + "Score:" + (Conductor.safeFrames != 10 ? songScore + " (" + songScoreDef + ")" : "" + songScore) + " | Combo Breaks:" + misses + " | Accuracy:" + truncateFloat(accuracy, 2) + "% | " + generateRanking();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2058,8 +2057,8 @@ class PlayState extends MusicBeatState
|
||||
|
||||
private function popUpScore(daNote:Note):Void
|
||||
{
|
||||
var noteDiff:Float = Math.abs(daNote.strumTime - Conductor.songPosition);
|
||||
var wife:Float = EtternaFunctions.wife3(noteDiff, FlxG.save.data.etternaMode ? 1 : 1.7);
|
||||
var noteDiff:Float = Math.abs(Conductor.songPosition - daNote.strumTime);
|
||||
var wife:Float = EtternaFunctions.wife3(noteDiff, 1.7);
|
||||
// boyfriend.playAnim('hey');
|
||||
vocals.volume = 1;
|
||||
|
||||
@ -2107,9 +2106,6 @@ class PlayState extends MusicBeatState
|
||||
sicks++;
|
||||
}
|
||||
|
||||
if (FlxG.save.data.etternaMode)
|
||||
etternaModeScore += Math.round(score / wife);
|
||||
|
||||
// trace('Wife accuracy loss: ' + wife + ' | Rating: ' + daRating + ' | Score: ' + score + ' | Weight: ' + (1 - wife));
|
||||
|
||||
if (daRating != 'shit' || daRating != 'bad')
|
||||
@ -2117,6 +2113,7 @@ class PlayState extends MusicBeatState
|
||||
|
||||
|
||||
songScore += Math.round(score);
|
||||
songScoreDef += Math.round(ConvertScore.convertScore(noteDiff));
|
||||
|
||||
/* if (combo > 60)
|
||||
daRating = 'sick';
|
||||
@ -2198,6 +2195,8 @@ class PlayState extends MusicBeatState
|
||||
|
||||
add(currentTimingShown);
|
||||
|
||||
|
||||
|
||||
var comboSpr:FlxSprite = new FlxSprite().loadGraphic(Paths.image(pixelShitPart1 + 'combo' + pixelShitPart2));
|
||||
comboSpr.screenCenter();
|
||||
comboSpr.x = rating.x;
|
||||
@ -2463,14 +2462,7 @@ class PlayState extends MusicBeatState
|
||||
{
|
||||
var noteDiff:Float = Math.abs(daNote.strumTime - Conductor.songPosition);
|
||||
|
||||
if (noteDiff > Conductor.safeZoneOffset * 0.70 || noteDiff < Conductor.safeZoneOffset * -0.70)
|
||||
daNote.rating = "shit";
|
||||
else if (noteDiff > Conductor.safeZoneOffset * 0.50 || noteDiff < Conductor.safeZoneOffset * -0.50)
|
||||
daNote.rating = "bad";
|
||||
else if (noteDiff > Conductor.safeZoneOffset * 0.45 || noteDiff < Conductor.safeZoneOffset * -0.45)
|
||||
daNote.rating = "good";
|
||||
else if (noteDiff < Conductor.safeZoneOffset * 0.44 && noteDiff > Conductor.safeZoneOffset * -0.44)
|
||||
daNote.rating = "sick";
|
||||
daNote.rating = Ratings.CalculateRating(noteDiff);
|
||||
|
||||
if (NearlyEquals(daNote.strumTime,rep.replay.keyPresses[repPresses].time, 30))
|
||||
{
|
||||
@ -2520,14 +2512,7 @@ class PlayState extends MusicBeatState
|
||||
{
|
||||
var noteDiff:Float = Math.abs(daNote.strumTime - Conductor.songPosition);
|
||||
|
||||
if (noteDiff > Conductor.safeZoneOffset * 0.70 || noteDiff < Conductor.safeZoneOffset * -0.70)
|
||||
daNote.rating = "shit";
|
||||
else if (noteDiff > Conductor.safeZoneOffset * 0.50 || noteDiff < Conductor.safeZoneOffset * -0.50)
|
||||
daNote.rating = "bad";
|
||||
else if (noteDiff > Conductor.safeZoneOffset * 0.45 || noteDiff < Conductor.safeZoneOffset * -0.45)
|
||||
daNote.rating = "good";
|
||||
else if (noteDiff < Conductor.safeZoneOffset * 0.44 && noteDiff > Conductor.safeZoneOffset * -0.44)
|
||||
daNote.rating = "sick";
|
||||
daNote.rating = Ratings.CalculateRating(noteDiff);
|
||||
|
||||
goodNoteHit(daNote);
|
||||
trace('force note hit');
|
||||
@ -2776,12 +2761,9 @@ class PlayState extends MusicBeatState
|
||||
*/
|
||||
function updateAccuracy()
|
||||
{
|
||||
if (misses > 0 || accuracy < 96)
|
||||
fc = false;
|
||||
else
|
||||
fc = true;
|
||||
totalPlayed += 1;
|
||||
accuracy = Math.max(0,totalNotesHit / totalPlayed * 100);
|
||||
accuracyDefault = Math.max(0, totalNotesHitDefault / totalPlayed * 100);
|
||||
}
|
||||
|
||||
|
||||
@ -2870,14 +2852,7 @@ class PlayState extends MusicBeatState
|
||||
|
||||
var noteDiff:Float = Math.abs(note.strumTime - Conductor.songPosition);
|
||||
|
||||
if (noteDiff > Conductor.safeZoneOffset * 0.70 || noteDiff < Conductor.safeZoneOffset * -0.70)
|
||||
note.rating = "shit";
|
||||
else if (noteDiff > Conductor.safeZoneOffset * 0.50 || noteDiff < Conductor.safeZoneOffset * -0.50)
|
||||
note.rating = "bad";
|
||||
else if (noteDiff > Conductor.safeZoneOffset * 0.45 || noteDiff < Conductor.safeZoneOffset * -0.45)
|
||||
note.rating = "good";
|
||||
else if (noteDiff < Conductor.safeZoneOffset * 0.44 && noteDiff > Conductor.safeZoneOffset * -0.44)
|
||||
note.rating = "sick";
|
||||
note.rating = Ratings.CalculateRating(noteDiff);
|
||||
|
||||
if (!note.isSustainNote)
|
||||
notesHitArray.push(Date.now());
|
||||
|
Reference in New Issue
Block a user