fixed #71 now the clanlevel will be like described there!

main
hecht 13 years ago
parent ce2579aff6
commit 9f5d79dbf7

@ -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']) {

Loading…
Cancel
Save