Browse Source

scaling XP gains for groups

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
c2c946165c
  1. 6
      src/engine/objects/Experience.java

6
src/engine/objects/Experience.java

@ -9,6 +9,7 @@ @@ -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 { @@ -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 { @@ -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));
}

Loading…
Cancel
Save