|
|
@ -444,10 +444,12 @@ public class Experience { |
|
|
|
grantedExperience = 1; |
|
|
|
grantedExperience = 1; |
|
|
|
|
|
|
|
|
|
|
|
// Grant the player the EXP
|
|
|
|
// Grant the player the EXP
|
|
|
|
if(!(playerCharacter.level > 74 && mob.getObjectType().equals(Enum.GameObjectType.PlayerCharacter))) |
|
|
|
if(mob.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)) |
|
|
|
return; |
|
|
|
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
|
|
|
|
} else { // Give EXP to a single character
|
|
|
@ -471,7 +473,10 @@ public class Experience { |
|
|
|
grantedExperience *= .6; |
|
|
|
grantedExperience *= .6; |
|
|
|
|
|
|
|
|
|
|
|
// Grant XP
|
|
|
|
// 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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|