From b5d58588df92161820a35f50e9b4adc7a6eceb48 Mon Sep 17 00:00:00 2001 From: b3brodie Date: Sat, 14 Dec 2024 22:10:44 -0800 Subject: [PATCH] fix constant formula --- src/magic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/magic.cpp b/src/magic.cpp index ff13c5a66c571..1ac42a8eeb457 100644 --- a/src/magic.cpp +++ b/src/magic.cpp @@ -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 {