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; return 0;
case 4: case 4:
case 5: case 5:
case 6:
return 1; return 1;
case 6:
case 7: case 7:
case 8:
return 2; return 2;
case 8:
case 9: case 9:
case 10:
return 3; return 3;
case 10:
case 11: case 11:
case 12: case 12:
return 4;
case 13: case 13:
case 14: case 14:
return 5;
case 15: case 15:
case 16: case 16:
return 6;
case 17: case 17:
return 7;
default: default:
return 8; return 4;
} }
} }
@ -78,7 +74,7 @@ function getMaximumMembers($clanid) {
$clan = getClan($clanid); $clan = getClan($clanid);
if($clan === NULL){ return 0; } if($clan === NULL){ return 0; }
$base = 12; $base = 8;
$members_by_level = getClanMemberBonusByLevel($clan['level']); $members_by_level = getClanMemberBonusByLevel($clan['level']);
$malus = 0; $malus = 0;
if($clan['co_leader'] == NULL || $clan['co_leader'] == $clan['leader']) { if($clan['co_leader'] == NULL || $clan['co_leader'] == $clan['leader']) {

Loading…
Cancel
Save