Commits

David Stone committed 1c302d2

Used the constexpr variable rather than explicitly naming the same template parameter.

  • Participants
  • Parent commits ae309d6

Comments (0)

Files changed (1)

File source/stat/stat.cpp

 	constexpr auto stat = Stat::SPD;
 	auto defense = calculate_initial_stat<stat>(defender);
 	
-	defense *= defender.stage_modifier<Stat::SPD>(ch);
+	defense *= defender.stage_modifier<stat>(ch);
 
-	defense *= Ability::stat_modifier<Stat::SPD>(defender, weather);	
-	defense *= item_modifier<Stat::SPD>(defender);
+	defense *= Ability::stat_modifier<stat>(defender, weather);	
+	defense *= item_modifier<stat>(defender);
 	
 	defense *= special_defense_sandstorm_boost(defender, weather);