Calculation of clan exp reprogrammed

main
hecht 13 years ago
parent fa386850b8
commit 9756a4d6aa

@ -8,6 +8,7 @@
include_once (ROOT_PATH . '/include/defines.inc.php');
include_once (ROOT_PATH . '/include/clan_fights.inc.php');
include_once (ROOT_PATH . '/include/exp.inc.php');
defineIfNotDefined('MAX_CHARS_CLANSIGN', 8);
$GLOBALS['clan_buffered_instances'] = array ();
@ -87,10 +88,14 @@ function getMaximumMembers($clanid) {
}
function getRequiredClanExp($level) {
return pow(2, $level) * 10;
//return pow(2, $level) * 10;
$level = $level + 1;
// 12,5*(neuesLevel)^2-22,5*(neues Level)+10
$value = 12.5 * pow($level, 2) - 22.5 * $level + 10;
$value = beautifyNumericValue($value, 5);
return $value;
}
function revokeInvitation($user, $userid, $clan = NULL){
if($user['clan'] === NULL) {
return 'Du bist in keinem Clan!';

Loading…
Cancel
Save