Add GameState::EditAllowedForExtra metric.

This commit is contained in:
Jason Felds
2011-09-29 22:09:52 -04:00
parent 91dc1deeef
commit 91999148d8
3 changed files with 8 additions and 1 deletions
+3
View File
@@ -11,6 +11,9 @@ StepMania 5.0 $next | 201110??
2011/09/29
----------
* [Fallback theme] Fix ImmediateHoldLetGo function. [Wolfman2000]
* [GameState] Add the EditAllowedForExtra metric. Use this if you want edit
steps to be allowed for accessing the extra stage. By default, this is
false. [Wolfman2000]
2011/09/26
----------
+2
View File
@@ -490,6 +490,8 @@ LockExtraStageSelection=true
# [sm-ssc] Normally, in event mode, the premium value is ignored. Set this
# metric to true to re-gain that behavior.
DisablePremiumInEventMode=false
# Let edit steps be allowed for earning extra stages.
EditAllowedForExtra=false
[GrooveRadar]
# Polar graph that shows difficulty stuff in depth
+3 -1
View File
@@ -94,6 +94,7 @@ Song* GameState::GetDefaultSong() const
return sid.ToSong();
}
static const ThemeMetric<bool> EDIT_ALLOWED_FOR_EXTRA ("GameState","EditAllowedForExtra");
static const ThemeMetric<Difficulty> MIN_DIFFICULTY_FOR_EXTRA ("GameState","MinDifficultyForExtra");
static const ThemeMetric<Grade> GRADE_TIER_FOR_EXTRA_1 ("GameState","GradeTierForExtra1");
static const ThemeMetric<bool> ALLOW_EXTRA_2 ("GameState","AllowExtra2");
@@ -1297,7 +1298,8 @@ EarnedExtraStage GameState::CalculateEarnedExtraStage() const
switch( dc )
{
case Difficulty_Edit:
continue; // can't use edit steps
if( !EDIT_ALLOWED_FOR_EXTRA )
continue; // can't use edit steps
break;
default:
if( dc < MIN_DIFFICULTY_FOR_EXTRA )