accuracy health system
This commit is contained in:
parent
fcd380f4c9
commit
0dc10d7822
@ -1762,41 +1762,70 @@ class PlayState extends MusicBeatState
|
|||||||
|
|
||||||
var daRating:String = "sick";
|
var daRating:String = "sick";
|
||||||
|
|
||||||
if (noteDiff > Conductor.safeZoneOffset * 2)
|
|
||||||
|
if (noteDiff > Conductor.safeZoneOffset * 24)
|
||||||
{
|
{
|
||||||
daRating = 'shit';
|
daRating = 'shit';
|
||||||
totalNotesHit -= 2;
|
totalNotesHit -= 2;
|
||||||
score = -3000;
|
score = -3000;
|
||||||
ss = false;
|
ss = false;
|
||||||
|
noteMiss(0);
|
||||||
|
health -= 0.5;
|
||||||
|
shits++;
|
||||||
|
}
|
||||||
|
else if (noteDiff < Conductor.safeZoneOffset * -24)
|
||||||
|
{
|
||||||
|
daRating = 'shit';
|
||||||
|
totalNotesHit -= 2;
|
||||||
|
score = -3000;
|
||||||
|
noteMiss(0);
|
||||||
|
health -= 0.5;
|
||||||
|
ss = false;
|
||||||
shits++;
|
shits++;
|
||||||
}
|
}
|
||||||
else if (noteDiff < Conductor.safeZoneOffset * -2)
|
else if (noteDiff < Conductor.safeZoneOffset * -0.45)
|
||||||
{
|
{
|
||||||
daRating = 'shit';
|
daRating = 'bad';
|
||||||
totalNotesHit -= 2;
|
score = -1000;
|
||||||
score = -3000;
|
totalNotesHit += 0.2;
|
||||||
|
noteMiss(0);
|
||||||
ss = false;
|
ss = false;
|
||||||
shits++;
|
health -= 0.2;
|
||||||
|
bads++;
|
||||||
}
|
}
|
||||||
else if (noteDiff > Conductor.safeZoneOffset * 0.45)
|
else if (noteDiff > Conductor.safeZoneOffset * 0.45)
|
||||||
{
|
{
|
||||||
daRating = 'bad';
|
daRating = 'bad';
|
||||||
score = -1000;
|
score = -1000;
|
||||||
totalNotesHit += 0.2;
|
totalNotesHit += 0.2;
|
||||||
|
noteMiss(0);
|
||||||
|
health -= 0.2;
|
||||||
ss = false;
|
ss = false;
|
||||||
bads++;
|
bads++;
|
||||||
}
|
}
|
||||||
|
else if (noteDiff < Conductor.safeZoneOffset * -0.25)
|
||||||
|
{
|
||||||
|
daRating = 'good';
|
||||||
|
totalNotesHit += 0.65;
|
||||||
|
score = 200;
|
||||||
|
health -= 0.04;
|
||||||
|
ss = false;
|
||||||
|
goods++;
|
||||||
|
}
|
||||||
else if (noteDiff > Conductor.safeZoneOffset * 0.25)
|
else if (noteDiff > Conductor.safeZoneOffset * 0.25)
|
||||||
{
|
{
|
||||||
daRating = 'good';
|
daRating = 'good';
|
||||||
totalNotesHit += 0.65;
|
totalNotesHit += 0.65;
|
||||||
score = 200;
|
score = 200;
|
||||||
|
health -= 0.04;
|
||||||
ss = false;
|
ss = false;
|
||||||
goods++;
|
goods++;
|
||||||
}
|
}
|
||||||
if (daRating == 'sick')
|
if (daRating == 'sick')
|
||||||
{
|
{
|
||||||
totalNotesHit += 1;
|
totalNotesHit += 1;
|
||||||
|
if (health < 2)
|
||||||
|
health += 0.1;
|
||||||
sicks++;
|
sicks++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2345,11 +2374,7 @@ class PlayState extends MusicBeatState
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
totalNotesHit += 1;
|
totalNotesHit += 1;
|
||||||
|
|
||||||
if (note.noteData >= 0)
|
|
||||||
health += 0.023;
|
|
||||||
else
|
|
||||||
health += 0.004;
|
|
||||||
|
|
||||||
switch (note.noteData)
|
switch (note.noteData)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user