From 9f5d79dbf7823d673413525e57b5429b1ccf7823 Mon Sep 17 00:00:00 2001 From: hecht Date: Thu, 1 Dec 2011 21:08:25 +0000 Subject: [PATCH] fixed #71 now the clanlevel will be like described there! --- ag/include/clan.inc.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/ag/include/clan.inc.php b/ag/include/clan.inc.php index 90d3d31..f1c6c2f 100644 --- a/ag/include/clan.inc.php +++ b/ag/include/clan.inc.php @@ -47,27 +47,23 @@ function getClanMemberBonusByLevel($level) { return 0; case 4: case 5: - case 6: return 1; + case 6: case 7: - case 8: return 2; + case 8: case 9: - case 10: return 3; + case 10: case 11: case 12: - return 4; case 13: case 14: - return 5; case 15: case 16: - return 6; case 17: - return 7; default: - return 8; + return 4; } } @@ -78,7 +74,7 @@ function getMaximumMembers($clanid) { $clan = getClan($clanid); if($clan === NULL){ return 0; } - $base = 12; + $base = 8; $members_by_level = getClanMemberBonusByLevel($clan['level']); $malus = 0; if($clan['co_leader'] == NULL || $clan['co_leader'] == $clan['leader']) {