From c2c946165c38e13da3e708481df2991d0cc840d4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 21 May 2024 20:11:03 -0500 Subject: [PATCH] scaling XP gains for groups --- src/engine/objects/Experience.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/objects/Experience.java b/src/engine/objects/Experience.java index 62561060..653a2ac1 100644 --- a/src/engine/objects/Experience.java +++ b/src/engine/objects/Experience.java @@ -9,6 +9,7 @@ package engine.objects; +import engine.Enum; import engine.Enum.TargetColor; import engine.gameManager.ZoneManager; import engine.math.Vector3fImmutable; @@ -410,6 +411,8 @@ public class Experience { // Process XP for this member + grantedExperience *= (1/giveEXPTo.size()+0.9); + penalty = getGroupMemberPenalty(leadership, playerCharacter, giveEXPTo, highestLevel); @@ -441,6 +444,9 @@ public class Experience { grantedExperience = 1; // Grant the player the EXP + if(!(playerCharacter.level > 74 && mob.getObjectType().equals(Enum.GameObjectType.PlayerCharacter))) + return; + playerCharacter.grantXP((int) Math.floor(grantedExperience)); }