mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 19:54:44 +02:00
More party members = more XP share bonus
Sorry, broke your party settings in config.yml. So now when there are more party members near, the party share bonus is increased. :)
This commit is contained in:
@ -50,7 +50,11 @@ public final class ShareHandler {
|
||||
}
|
||||
|
||||
double partySize = nearMembers.size() + 1;
|
||||
double splitXp = xp / partySize * Config.getInstance().getPartyShareBonus();
|
||||
double shareBonus = Config.getInstance().getPartyShareBonusBase() + partySize * Config.getInstance().getPartyShareBonusIncrease();
|
||||
if (shareBonus > Config.getInstance().getPartyShareBonusCap()) {
|
||||
shareBonus = Config.getInstance().getPartyShareBonusCap();
|
||||
}
|
||||
double splitXp = xp / partySize * shareBonus;
|
||||
int roundedXp = (int) Math.ceil(splitXp);
|
||||
|
||||
for (Player member : nearMembers) {
|
||||
|
Reference in New Issue
Block a user