diff --git a/src/main/java/iguanaman/iguanatweakstconstruct/IguanaTweaksTConstruct.java b/src/main/java/iguanaman/iguanatweakstconstruct/IguanaTweaksTConstruct.java index 1c0f170..65eb3d1 100644 --- a/src/main/java/iguanaman/iguanatweakstconstruct/IguanaTweaksTConstruct.java +++ b/src/main/java/iguanaman/iguanatweakstconstruct/IguanaTweaksTConstruct.java @@ -32,20 +32,6 @@ import net.minecraft.item.Item; import java.util.List; import java.util.Random; -// inofficial todo list: -// todo: check out what mining-maxlvl i wont for emerald/diamond modifier. -// todo: check if it's possible to remove pickaxe harvestability from regular picks... or make them stone mininglevel -// todo: find a solution to stone-head-tools not having xp even when head is replaced (maybe like old iguana, disallow stone tools?) -// todo: add randomly generated weapons with random bonuses(!!!!) to dungeon loot :D:D:D - -// todo: Unknown blocks get incorrect mining level. (just check if they're higher than the places where i added additional harvest levels and add the proper ammount to match up with the old mining level) -// todo: add hardcoded ExtraTic mining levels - -// todo: add batman-hat (enderman-head without jaw and eyes) -// todo: add enderman-jaw helmet as a very rare enderman drop :D -// todo: bucket hattt -// todo: cracked clay bucket? randomly obtainable when transporting lava? :D - @Mod(modid= Reference.MOD_ID, name= Reference.MOD_NAME, version="${version}", dependencies = "required-after:" + Reference.TCON_MOD_ID + ";after:*") public class IguanaTweaksTConstruct { diff --git a/src/main/java/iguanaman/iguanatweakstconstruct/leveling/LevelingLogic.java b/src/main/java/iguanaman/iguanatweakstconstruct/leveling/LevelingLogic.java index b6589cb..d4693c6 100644 --- a/src/main/java/iguanaman/iguanatweakstconstruct/leveling/LevelingLogic.java +++ b/src/main/java/iguanaman/iguanatweakstconstruct/leveling/LevelingLogic.java @@ -213,7 +213,7 @@ public abstract class LevelingLogic { { int harvestLevelCopper = HarvestLevels._2_copper; int harvestLevel = TConstructRegistry.getMaterial(tags.getInteger("Head")).harvestLevel(); - if (harvestLevel >= harvestLevelCopper) base *= Math.pow(Config.xpPerLevelMultiplier, harvestLevel - harvestLevelCopper); + if (harvestLevel >= harvestLevelCopper) base *= Math.pow(Config.xpPerBoostLevelMultiplier, harvestLevel - harvestLevelCopper); base *= Config.levelingPickaxeBoostXpPercentage / 100f; } else diff --git a/src/main/java/iguanaman/iguanatweakstconstruct/reference/Config.java b/src/main/java/iguanaman/iguanatweakstconstruct/reference/Config.java index 247c5dd..19b57db 100644 --- a/src/main/java/iguanaman/iguanatweakstconstruct/reference/Config.java +++ b/src/main/java/iguanaman/iguanatweakstconstruct/reference/Config.java @@ -35,6 +35,7 @@ public class Config { public static boolean mobHeadRequiresModifier; public static boolean levelingPickaxeBoost; public static int levelingPickaxeBoostXpPercentage; + public static float xpPerBoostLevelMultiplier; // Harvest Leveling public static boolean nerfBronze; @@ -88,7 +89,7 @@ public class Config { // modifying leveling behaviour xpRequiredToolsPercentage = configfile.getInt("xpRequiredToolsPercentage", CATEGORY_Leveling, 100, 1, 999, "Change the XP required to level up tools in % (higher = more xp needed)"); xpRequiredWeaponsPercentage = configfile.getInt("xpRequiredWeaponsPercentage", CATEGORY_Leveling, 100, 1, 999, "Change the XP required to level up weapons in % (higher = more xp needed)"); - xpPerLevelMultiplier = configfile.getFloat("xpPerLevelMultiplier", CATEGORY_Leveling, 1.15f, 0.01f, 9.99f, "Exponential multiplier for required xp per level"); + xpPerLevelMultiplier = configfile.getFloat("xpPerLevelMultiplier", CATEGORY_Leveling, 1.15f, 1.0f, 9.99f, "Exponential multiplier for required xp per level"); // tooltip things showTooltipXP = configfile.getBoolean("showTooltipXP", CATEGORY_Leveling, true, "Current XP is shown when hovering over a tool"); @@ -114,6 +115,7 @@ public class Config { mobHeadRequiresModifier = configfile.getBoolean("mobHeadBoostNeedsModifier", CATEGORY_PickLeveling, false, "Mob head boosting requires a free modifier"); levelingPickaxeBoostXpPercentage = configfile.getInt("xpRequiredPickBoostPercentage", CATEGORY_PickLeveling, 100, 1, 999, "Change the percentage of XP required to boost a pick (i.e. 200 means 2x normal boost xp required)"); + xpPerBoostLevelMultiplier = configfile.getFloat("xpPerBoostLevelMultiplier", CATEGORY_Leveling, 1.12f, 1.0f, 9.99f, "Exponential multiplier for required boost xp per level"); /** HarvestLevel Module **/ configfile.setCategoryComment(CATEGORY_HarvestLevels, "Harvest Level Tweak Module: Introduces a slower mining level progression.");