scaling XP gains for groups

This commit is contained in:
2024-05-21 20:11:03 -05:00
parent ffd65b3641
commit c2c946165c
+6
View File
@@ -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));
}