From 17aee68575bd0951175819f733dfb78a100a6ea4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 11 May 2024 17:38:49 -0500 Subject: [PATCH] 2x xp for solo players without a group --- src/engine/objects/PlayerCharacter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 5438d1c1..642a36e8 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -2899,7 +2899,9 @@ public class PlayerCharacter extends AbstractCharacter { public synchronized void grantXP(int xp) { - xp *= Float.parseFloat(ConfigManager.MB_NORMAL_EXP_RATE.getValue()); + if(GroupManager.getGroup(this) == null) + xp *= 2; + // Stop players from getting experience past the cap if (this.exp + xp >= Experience.getBaseExperience(MBServerStatics.LEVELCAP)) xp = Experience.getBaseExperience(MBServerStatics.LEVELCAP) - this.exp + 1;