mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-03 04:55:28 +02:00
Fishing now always gives fish in addition to treasure (configurable)
Fixing salvage oopsies
This commit is contained in:
@@ -606,10 +606,6 @@ public class MainConfig extends ConfigValidated {
|
||||
return getBooleanValue(SKILLS, FISHING, OVERRIDE_VANILLA_TREASURES);
|
||||
}
|
||||
|
||||
public boolean getFishingExtraFish() {
|
||||
return getBooleanValue(SKILLS, FISHING, EXTRA_FISH);
|
||||
}
|
||||
|
||||
public double getFishingLureModifier() {
|
||||
return getDoubleValue(SKILLS, FISHING, LURE_MODIFIER);
|
||||
}
|
||||
|
@@ -165,13 +165,6 @@ public class ExperienceConfig extends ConfigValidated {
|
||||
reason.add(EXPERIENCE + "." + COMBAT + "." + MULTIPLIER + "." + ANIMALS + " should be at least 0!");
|
||||
}
|
||||
|
||||
/* Fishing */
|
||||
// TODO: Add validation for each fish type once enum is available.
|
||||
|
||||
if (getFishingShakeXP() <= 0) {
|
||||
reason.add(EXPERIENCE + "." + FISHING + "." + SHAKE + " should be greater than 0!");
|
||||
}
|
||||
|
||||
/* Repair */
|
||||
if (getRepairXPBase() <= 0) {
|
||||
reason.add(EXPERIENCE + "." + REPAIR + "." + BASE1 + " should be greater than 0!");
|
||||
@@ -374,9 +367,6 @@ public class ExperienceConfig extends ConfigValidated {
|
||||
return BarStyle.SOLID;
|
||||
}
|
||||
|
||||
public int getFishingShakeXP() {
|
||||
return getIntValue(EXPERIENCE, FISHING, SHAKE);
|
||||
}
|
||||
|
||||
/* Repair */
|
||||
public double getRepairXPBase() {
|
||||
|
@@ -1,8 +1,19 @@
|
||||
package com.gmail.nossr50.config.hocon.skills.fishing;
|
||||
|
||||
import ninja.leaping.configurate.objectmapping.Setting;
|
||||
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
|
||||
@ConfigSerializable
|
||||
public class ConfigFishing {
|
||||
|
||||
@Setting(value = "General")
|
||||
private ConfigFishingGeneral fishingGeneral = new ConfigFishingGeneral();
|
||||
|
||||
public ConfigFishingGeneral getFishingGeneral() {
|
||||
return fishingGeneral;
|
||||
}
|
||||
|
||||
public boolean isAlwaysCatchFish() {
|
||||
return fishingGeneral.isAlwaysCatchFish();
|
||||
}
|
||||
}
|
@@ -0,0 +1,18 @@
|
||||
package com.gmail.nossr50.config.hocon.skills.fishing;
|
||||
|
||||
import ninja.leaping.configurate.objectmapping.Setting;
|
||||
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
|
||||
@ConfigSerializable
|
||||
public class ConfigFishingGeneral {
|
||||
|
||||
private static final boolean ALWAYS_CATCH_FISH_DEFAULT = true;
|
||||
|
||||
@Setting(value = "Always-Catch-Fish", comment = "Enables fish to be caught alongside treasure." +
|
||||
"\nDefault value: "+ALWAYS_CATCH_FISH_DEFAULT)
|
||||
private boolean alwaysCatchFish = ALWAYS_CATCH_FISH_DEFAULT;
|
||||
|
||||
public boolean isAlwaysCatchFish() {
|
||||
return alwaysCatchFish;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user