From 82f52c52684e01328380068c5809db2bc1a0383b Mon Sep 17 00:00:00 2001 From: hecht Date: Wed, 11 Jan 2012 23:23:09 +0000 Subject: [PATCH] adjusted the calculation of the clan_fight cronjob --- ag/include/clan_fights.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ag/include/clan_fights.inc.php b/ag/include/clan_fights.inc.php index e966b38..cb4d8f6 100644 --- a/ag/include/clan_fights.inc.php +++ b/ag/include/clan_fights.inc.php @@ -1034,7 +1034,7 @@ function isAuthorizedClanfightCoordinator($clan_id, $user_id, $clan_fight_id = N * @param int $winner the id of the clan that has won */ function calculateClanExperience(array $clan1, array $clan2, $winner) { - $m = 1+pow(($clan2['level'] - $clan1['level'])/20,10); + $m = 1+pow(10, ($clan2['level'] - $clan1['level'])/20); $g = CLAN_EXP_FAKTOR_G; if($clan1['id'] == $winner) { $exp = (($clan1['level'] + $clan2['level'])/2)*$m*$g;