From 9756a4d6aaa8ecf554273da153eb9669686ed522 Mon Sep 17 00:00:00 2001 From: hecht Date: Mon, 21 Nov 2011 21:30:34 +0000 Subject: [PATCH] Calculation of clan exp reprogrammed --- ag/include/clan.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ag/include/clan.inc.php b/ag/include/clan.inc.php index 3ff1c5f..c0096f6 100644 --- a/ag/include/clan.inc.php +++ b/ag/include/clan.inc.php @@ -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!';