瀏覽代碼

Archery distance XP bonus cannot exceed indefinitely anymore

Fixes #2465
TfT_02 10 年之前
父節點
當前提交
5670e6696a
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java

+ 1 - 0
Changelog.txt

@@ -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

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java

@@ -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));
     }
 
     /**