mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
parent
be792a1052
commit
f55039ac6b
@ -8,6 +8,7 @@ Key:
|
|||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
Version 1.4.08-dev
|
Version 1.4.08-dev
|
||||||
|
+ Added the possibility to gain experience when using Fishing "Shake"
|
||||||
|
|
||||||
Version 1.4.07
|
Version 1.4.07
|
||||||
+ Added XP boost to Acrobatics when wearing Boots of Feather Falling
|
+ Added XP boost to Acrobatics when wearing Boots of Feather Falling
|
||||||
|
@ -102,6 +102,10 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
|
|||||||
reason.add("Experience.Fishing.Base should be greater than 0!");
|
reason.add("Experience.Fishing.Base should be greater than 0!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getFishingShakeXP() <= 0) {
|
||||||
|
reason.add("Experience.Fishing.Shake should be greater than 0!");
|
||||||
|
}
|
||||||
|
|
||||||
/* Repair */
|
/* Repair */
|
||||||
if (getRepairXPBase() <= 0) {
|
if (getRepairXPBase() <= 0) {
|
||||||
reason.add("Experience.Repair.Base should be greater than 0!");
|
reason.add("Experience.Repair.Base should be greater than 0!");
|
||||||
@ -197,6 +201,7 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
|
|||||||
|
|
||||||
/* Fishing */
|
/* Fishing */
|
||||||
public int getFishingBaseXP() { return config.getInt("Experience.Fishing.Base", 800); }
|
public int getFishingBaseXP() { return config.getInt("Experience.Fishing.Base", 800); }
|
||||||
|
public int getFishingShakeXP() { return config.getInt("Experience.Fishing.Shake", 50); }
|
||||||
|
|
||||||
/* Repair */
|
/* Repair */
|
||||||
public double getRepairXPBase() { return config.getDouble("Experience.Repair.Base", 1000.0); }
|
public double getRepairXPBase() { return config.getDouble("Experience.Repair.Base", 1000.0); }
|
||||||
|
@ -432,6 +432,7 @@ public class FishingManager extends SkillManager {
|
|||||||
|
|
||||||
Misc.dropItem(target.getLocation(), drop);
|
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.
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ Experience:
|
|||||||
FeatherFall_Multiplier: 2.0
|
FeatherFall_Multiplier: 2.0
|
||||||
Fishing:
|
Fishing:
|
||||||
Base: 800
|
Base: 800
|
||||||
|
Shake: 50
|
||||||
Excavation:
|
Excavation:
|
||||||
Clay: 40
|
Clay: 40
|
||||||
Dirt: 40
|
Dirt: 40
|
||||||
|
Loading…
Reference in New Issue
Block a user