Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
b3brodie and github-actions[bot] authored Dec 15, 2024
1 parent 453b3de commit ddb83e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ int spell_type::get_level( int experience ) const
// you aren't at the next level unless you have the requisite xp, so floor
if( experience_formula == xp_formula::constant ) {
return std::max( static_cast<int>( std::floor( experience / a ) ), 0 );
} else if ( experience_formula == xp_formula::linear ) {
} else if( experience_formula == xp_formula::linear ) {
return std::max( static_cast<int>( std::sqrt( ( 2.0 / a ) * experience + 0.25 ) - 0.5 ), 0 );
} else {
return std::max( static_cast<int>( std::floor( std::log( experience + a ) / b + c ) ), 0 );
Expand Down

0 comments on commit ddb83e8

Please sign in to comment.