Archery distance XP bonus cannot exceed indefinitely anymore

Fixes #2465
This commit is contained in:
TfT_02 2015-02-21 09:42:22 +01:00
parent ca6dc5195d
commit 5670e6696a
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ Version 1.5.02-dev
! Changed Flux Mining mechanics. In order to use the ability, you need to infuse a pickaxe with furnace powers first.
! Scoreboard tips are only shown a couple of times to the player, instead of once per login session
! Changed Archery distance multiplier to be configurable
! Archery distance XP bonus cannot exceed indefinitely anymore
Version 1.5.01
+ Added new child skill; Salvage

View File

@ -49,7 +49,7 @@ public class ArcheryManager extends SkillManager {
return;
}
applyXpGain((int) (firedLocation.distanceSquared(targetLocation) * Archery.DISTANCE_XP_MULTIPLIER), getXPGainReason(target, damager));
applyXpGain((int) (Math.min(firedLocation.distanceSquared(targetLocation), 2500) * Archery.DISTANCE_XP_MULTIPLIER), getXPGainReason(target, damager));
}
/**