forked from MagicBane/Server
PVP experience only after level 75
This commit is contained in:
@@ -444,10 +444,12 @@ public class Experience {
|
||||
grantedExperience = 1;
|
||||
|
||||
// Grant the player the EXP
|
||||
if(!(playerCharacter.level > 74 && mob.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)))
|
||||
return;
|
||||
if(mob.getObjectType().equals(Enum.GameObjectType.PlayerCharacter))
|
||||
playerCharacter.grantXP((int) Math.floor(grantedExperience), true);
|
||||
else
|
||||
playerCharacter.grantXP((int) Math.floor(grantedExperience),false);
|
||||
|
||||
|
||||
playerCharacter.grantXP((int) Math.floor(grantedExperience));
|
||||
}
|
||||
|
||||
} else { // Give EXP to a single character
|
||||
@@ -471,7 +473,10 @@ public class Experience {
|
||||
grantedExperience *= .6;
|
||||
|
||||
// Grant XP
|
||||
killer.grantXP((int) Math.floor(grantedExperience));
|
||||
if(mob.getObjectType().equals(Enum.GameObjectType.PlayerCharacter))
|
||||
killer.grantXP((int) Math.floor(grantedExperience), true);
|
||||
else
|
||||
killer.grantXP((int) Math.floor(grantedExperience),false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user