okay, it is now possible to adjust the char level factor (1 is default)

main
hecht 13 years ago
parent 6b801380ad
commit e7a7b0e705

@ -8,7 +8,9 @@
include_once (ROOT_PATH . '/include/char.inc.php');
include_once (ROOT_PATH . '/include/arena.inc.php');
include_once (ROOT_PATH . '/include/defines.inc.php');
defineIfNotDefined('CHAR_LEVEL_EXP_FACTOR', 1);
function beautifyNumericValue($value, $step){
// RUNDEN(POTENZ(10;ABRUNDEN(MAX(LOG(I3;10);2)))/4;0)
@ -30,7 +32,9 @@ function calculateRequiredExpChars($level){
$g09 = pow($level*$level,9) * pow(10,-30);
$g10 = pow($level*$level,10) * pow(10,-33);
return beautifyNumericValue($g01 + $g02 + $g03 + $g04 + $g06 + $g07 + $g08 + $g09 + $g10, 8);
$result = $g01 + $g02 + $g03 + $g04 + $g06 + $g07 + $g08 + $g09 + $g10;
$result = round($result * CHAR_LEVEL_EXP_FACTOR,0);
return beautifyNumericValue($result, 8);
// return $g01 + $g02 + $g03 + $g04 + $g06 + $g07 + $g08 + $g09 + $g10;
}

Loading…
Cancel
Save