mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
Removed Shake_UnlockLevel config option
because it is no longer needed.
This commit is contained in:
parent
2eda3a9c83
commit
68eb51a3d0
@ -67,6 +67,7 @@ Version 1.4.07-dev
|
||||
! Mob healthbars are automatically disabled when the plugin "HealthBar" is found
|
||||
- The /mmoupdate command has been removed. It is replaced by /mcconvert database
|
||||
- Removed Abilities.Tools.Durability_Loss_Enabled, set Abilities.Tools.Durability_Loss to 0 to disable instead.
|
||||
- Removed Skills.Fishing.Shake_UnlockLevel from advanced.yml, now using Skills.Fishing.Rank_Levels.Rank_1 instead.
|
||||
- Removed SpoutPlugin support
|
||||
|
||||
Version 1.4.06
|
||||
|
@ -143,7 +143,7 @@ public class FishingCommand extends SkillCommand {
|
||||
}
|
||||
|
||||
if (canShake) {
|
||||
int unlockLevel = AdvancedConfig.getInstance().getShakeUnlockLevel();
|
||||
int unlockLevel = AdvancedConfig.getInstance().getFishingTierLevelsTier1();
|
||||
|
||||
if (skillValue < unlockLevel) {
|
||||
player.sendMessage(LocaleLoader.getString("Ability.Generic.Template.Lock", LocaleLoader.getString("Fishing.Ability.Locked.0", unlockLevel)));
|
||||
|
@ -213,10 +213,6 @@ public class AdvancedConfig extends AutoUpdateConfigLoader {
|
||||
reason.add("Skills.Fishing.Ice_Fishing_UnlockLevel should be at least 1!");
|
||||
}
|
||||
|
||||
if (getShakeUnlockLevel() < 1) {
|
||||
reason.add("Skills.Fishing.Shake_UnlockLevel should be at least 1!");
|
||||
}
|
||||
|
||||
if (getShakeChanceRank1() > getShakeChanceRank2()) {
|
||||
reason.add("Skills.Fishing.Shake_Chance.Rank_1 should be less or equal to Skills.Fishing.Shake_Chance.Rank_2!");
|
||||
}
|
||||
@ -979,7 +975,6 @@ public class AdvancedConfig extends AutoUpdateConfigLoader {
|
||||
public int getIceFishingUnlockLevel() { return config.getInt("Skills.Fishing.Ice_Fishing_UnlockLevel", 50); }
|
||||
|
||||
/* Shake */
|
||||
public int getShakeUnlockLevel() { return config.getInt("Skills.Fishing.Shake_UnlockLevel", 150); }
|
||||
public double getShakeChanceRank1() { return config.getDouble("Skills.Fishing.Shake_Chance.Rank_1", 25.0D); }
|
||||
public double getShakeChanceRank2() { return config.getDouble("Skills.Fishing.Shake_Chance.Rank_2", 25.0D); }
|
||||
public double getShakeChanceRank3() { return config.getDouble("Skills.Fishing.Shake_Chance.Rank_3", 35.0D); }
|
||||
|
@ -68,7 +68,7 @@ public class FishingManager extends SkillManager {
|
||||
}
|
||||
|
||||
public boolean canShake(Entity target) {
|
||||
return target instanceof LivingEntity && getSkillLevel() >= AdvancedConfig.getInstance().getShakeUnlockLevel() && Permissions.shake(getPlayer());
|
||||
return target instanceof LivingEntity && getSkillLevel() >= AdvancedConfig.getInstance().getFishingTierLevelsTier1() && Permissions.shake(getPlayer());
|
||||
}
|
||||
|
||||
public boolean canMasterAngler() {
|
||||
|
@ -116,9 +116,6 @@ Skills:
|
||||
# Settings for Fishing
|
||||
###
|
||||
Fishing:
|
||||
# Shake_UnlockLevel: Fishing level when the Shake ability unlocks
|
||||
Shake_UnlockLevel: 150
|
||||
|
||||
# Rank_Levels: Fishing level where rank gets unlocked
|
||||
Rank_Levels:
|
||||
Rank_1: 125
|
||||
|
Loading…
Reference in New Issue
Block a user