Add a config option for only obtaining useful modifiers

This commit is contained in:
Bernhard Bonigl committed 2014-08-02 13:50:49 +02:00
1 parent ec4e6b010f
commit bec7ea2846
4 files changed
+48 -29

No files matched your search

@@ -26,7 +26,7 @@ public class Config {
public static boolean toolLevelingExtraModifiers;
public static int[] toolModifiersAtLevels;
public static boolean toolLevelingRandomBonuses;
//public static boolean randomBonusesAreUseful;
public static boolean randomBonusesAreUseful;
public static boolean randomBonusesAreRandom;
// pick boost
@@ -99,7 +99,7 @@ public class Config {
toolLevelingExtraModifiers = configfile.getBoolean("ExtraModifiers", CATEGORY_Leveling, true, "Removes modifiers on new tools and gives them through leveling (requires 'toolLeveling=true')");
toolLevelingRandomBonuses = configfile.getBoolean("RandomBonuses", CATEGORY_Leveling, true, "Gives a random bonus every level, if false and levelling is on modifiers are given at levels 2 and 4 (requires 'toolLeveling=true')");
toolModifiersAtLevels = configfile.get(CATEGORY_Leveling, "ModifiersAtLevels", new int[]{2,4,6}, "Adds an extra modifier on these levleups if 'toolLevelingExtraModifiers' is enabled").getIntList();
//randomBonusesAreUseful = configfile.getBoolean("UsefulBonuses", CATEGORY_Leveling, true, "Increases chance of getting a useful modifier for the tool drastically (compared to completely random)");
randomBonusesAreUseful = configfile.getBoolean("UsefulBonuses", CATEGORY_Leveling, true, "Disables less-useful modifiers on levelups. Like a sword with silktouch, or a pickaxe with beheading.");
randomBonusesAreRandom = configfile.getBoolean("CompletelyRandomBonuses", CATEGORY_Leveling, false, "Each modifier is equally likely on levelup. Disables useful bonuses.");
@@ -127,7 +127,6 @@ public class Config {
partReplacementBoostXpPenality = configfile.getInt("PickBoostXpPenality", CATEGORY_PartReplacement, 5, 0, 100, "How much of the current XP% to the next mining level shall be removed when replacing the pickaxe head. Useful to remove the mining level boost on part replacement.");
/** MobHeads **/
// todo: implement
configfile.setCategoryComment(CATEGORY_Heads, "Mob Head Module: Adds additional Mob heads and drops");
// drop behaviour