This commit is contained in:
Kounan 2015-11-18 23:09:08 -08:00
parent 9718123292
commit 5b6c6fee51

View File

@ -44,7 +44,7 @@ public final class ShareHandler {
nearMembers.add(mcMMOPlayer.getPlayer()); nearMembers.add(mcMMOPlayer.getPlayer());
int partySize = nearMembers.size(); int partySize = nearMembers.size();
double shareBonus = Math.min(Config.getInstance().getPartyShareBonusBase() + (partySize * Config.getInstance().getPartyShareBonusIncrease()), Config.getInstance().getPartyShareBonusCap()); double shareBonus = Math.min(Config.getInstance().getPartyShareBonusBase() * Math.pow(Config.getInstance().getPartyShareBonusIncrease(), partySize), Config.getInstance().getPartyShareBonusCap());
float splitXp = (float) (xp / partySize * shareBonus); float splitXp = (float) (xp / partySize * shareBonus);
for (Player member : nearMembers) { for (Player member : nearMembers) {