Skip to content

Commit

Permalink
fix constant formula
Browse files Browse the repository at this point in the history
  • Loading branch information
b3brodie committed Dec 15, 2024
1 parent 0e25b8e commit b5d5858
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 @@ -1787,7 +1787,7 @@ int spell_type::exp_for_level( int level ) const
return 0;
}
if( experience_formula == xp_formula::constant ) {
return std::ceil( a );
return std::ceil( a * level );
} else if( experience_formula == xp_formula::linear ) {
return std::ceil( a * 0.5 * level * ( level + 1 ) );
} else {
Expand Down

0 comments on commit b5d5858

Please sign in to comment.