Earn XP when using Shake

Adds #1564
This commit is contained in:
TfT_02 2013-10-28 17:38:03 +01:00
parent be792a1052
commit f55039ac6b
4 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Key:
- Removal
Version 1.4.08-dev
+ Added the possibility to gain experience when using Fishing "Shake"
Version 1.4.07
+ Added XP boost to Acrobatics when wearing Boots of Feather Falling

View File

@ -102,6 +102,10 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
reason.add("Experience.Fishing.Base should be greater than 0!");
}
if (getFishingShakeXP() <= 0) {
reason.add("Experience.Fishing.Shake should be greater than 0!");
}
/* Repair */
if (getRepairXPBase() <= 0) {
reason.add("Experience.Repair.Base should be greater than 0!");
@ -197,6 +201,7 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
/* Fishing */
public int getFishingBaseXP() { return config.getInt("Experience.Fishing.Base", 800); }
public int getFishingShakeXP() { return config.getInt("Experience.Fishing.Shake", 50); }
/* Repair */
public double getRepairXPBase() { return config.getDouble("Experience.Repair.Base", 1000.0); }

View File

@ -432,6 +432,7 @@ public class FishingManager extends SkillManager {
Misc.dropItem(target.getLocation(), drop);
CombatUtils.dealDamage(target, Math.max(target.getMaxHealth() / 4, 1)); // Make it so you can shake a mob no more than 4 times.
applyXpGain(ExperienceConfig.getInstance().getFishingShakeXP());
}
}

View File

@ -75,6 +75,7 @@ Experience:
FeatherFall_Multiplier: 2.0
Fishing:
Base: 800
Shake: 50
Excavation:
Clay: 40
Dirt: 40