added support for life difficulties up to 16

added more difficulties for progressive nonstop and stage modes (including level 9 to make use of judge 16 :D)

... i wonder who is nuts enough to choose that :P
This commit is contained in:
Andrew Wong
2003-08-01 18:39:34 +00:00
parent 8c6ba0f506
commit 03d691fe20
2 changed files with 54 additions and 7 deletions
+52 -5
View File
@@ -480,31 +480,78 @@ void LifeMeterBar::UpdateNonstopLifebar(const int cleared,
if (m_fLifeDifficulty >= 0.4) return;
/* Approximate deductions for a miss
* Life 1: 5%
* Life 2: 5.7%
* Life 3: 6.6%
* Life 4: 8%
* Life 5: 10%
* Life 6: 13.3%
* Life 7: 20%
* Life 8: 26.6%
* Life 9: 32%
* Life 10: 40%
* Life 11: 50%
* Life 12: 57.1%
* Life 13: 66.6%
* Life 14: 80%
* Life 15: 100%
* Life 16+: 200%
*
* Note there is 200%, because boos take off 1/2 as much as
* a miss, and a boo would suck up half of your lifebar.
*
* Everything past 7 is intended mainly for nonstop mode.
*/
// the lifebar is pretty harsh at 0.4 already (you lose
// about 20% of your lifebar); at 0.2 it would be 40%, which
// is too harsh at one difficulty level higher. Override.
if (m_fLifeDifficulty >= 0.2)
if (m_fLifeDifficulty >= 0.2) // judge 8
{
m_fLifeDifficulty = 0.3f;
return;
}
if (m_fLifeDifficulty >= 0)
if (m_fLifeDifficulty >= 0) // judge 9
{
m_fLifeDifficulty = 0.25f;
return;
}
if (m_fLifeDifficulty >= -0.2)
if (m_fLifeDifficulty >= -0.2) // judge 10
{
m_fLifeDifficulty = 0.2f;
return;
}
if (m_fLifeDifficulty >= -0.4)
if (m_fLifeDifficulty >= -0.4) // judge 11
{
m_fLifeDifficulty = 0.16f;
return;
}
m_fLifeDifficulty = 0.1f;
if (m_fLifeDifficulty >= -0.6) // judge 12
{
m_fLifeDifficulty = 0.14f;
return;
}
if (m_fLifeDifficulty >= -0.8) // judge 13
{
m_fLifeDifficulty = 0.12f;
return;
}
if (m_fLifeDifficulty >= -1.0) // judge 14
{
m_fLifeDifficulty = 0.10f;
return;
}
if (m_fLifeDifficulty >= -1.2) // judge 15
{
m_fLifeDifficulty = 0.08f;
return;
}
// judge 16 or higher
m_fLifeDifficulty = 0.04f;
return;
}
+2 -2
View File
@@ -48,8 +48,8 @@ OptionRow g_MachineOptionsLines[NUM_MACHINE_OPTIONS_LINES] = {
OptionRow( "Judge\nDifficulty", "1","2","3","4","5","6","7","8","JUSTICE" ),
OptionRow( "Life\nDifficulty", "1","2","3","4","5","6","7" ),
OptionRow( "Progressive\nLifebar", "OFF","1","2","3","4","5","6","7","8"),
OptionRow( "Progressive\nStage Lifebar", "OFF","1","2","3","4"),
OptionRow( "Progressive\nNonstop Lifebar", "OFF","1","2","3","4"),
OptionRow( "Progressive\nStage Lifebar", "OFF","1","2","3","4","5","6","7","8","INSANITY"),
OptionRow( "Progressive\nNonstop Lifebar", "OFF","1","2","3","4","5","6","7","8","INSANITY"),
OptionRow( "Default\nFail Type", "ARCADE","END OF SONG","OFF" ),
OptionRow( "Show\nStats", "OFF","ON" ),
OptionRow( "Coins Per\nCredit", "1","2","3","4","5","6","7","8" ),