mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Add power config for analyzer
This commit is contained in:
1 parent
cbc6f9acff
commit
842b9c7199
2 files changed
+4
-1
No files matched your search
@@ -71,6 +71,7 @@ public class Config {
|
||||
|
||||
// Genetics
|
||||
public static boolean pollinateVanillaTrees = true;
|
||||
public static int analyzerEnergyPerWork = 20320;
|
||||
public static float researchMutationBoostMultiplier = 1.5f;
|
||||
public static float maxResearchMutationBoostPercent = 5.0f;
|
||||
|
||||
@@ -239,6 +240,7 @@ public class Config {
|
||||
}
|
||||
|
||||
pollinateVanillaTrees = configCommon.getBooleanLocalized("genetics", "pollinate.vanilla.trees", pollinateVanillaTrees);
|
||||
analyzerEnergyPerWork = configCommon.getIntLocalized("genetics", "analyzerblock.energy.use", 20320, 0, 100000);
|
||||
researchMutationBoostMultiplier = configCommon.getFloatLocalized("genetics.research.boost", "multiplier", researchMutationBoostMultiplier, 1.0f, 1000.f);
|
||||
maxResearchMutationBoostPercent = configCommon.getFloatLocalized("genetics.research.boost", "max.percent", maxResearchMutationBoostPercent, 0.0f, 100.0f);
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ import forestry.api.arboriculture.TreeManager;
|
||||
import forestry.api.core.ForestryAPI;
|
||||
import forestry.api.genetics.AlleleManager;
|
||||
import forestry.api.genetics.IIndividual;
|
||||
import forestry.core.config.Config;
|
||||
import forestry.core.config.Constants;
|
||||
import forestry.core.errors.EnumErrorCode;
|
||||
import forestry.core.fluids.FilteredTank;
|
||||
@@ -54,7 +55,7 @@ import forestry.modules.ForestryModuleUids;
|
||||
public class TileAnalyzer extends TilePowered implements ISidedInventory, ILiquidTankTile, IItemStackDisplay {
|
||||
private static final int TIME_TO_ANALYZE = 125;
|
||||
private static final int HONEY_REQUIRED = 100;
|
||||
private static final int ENERGY_PER_WORK_CYCLE = 20320;
|
||||
private static final int ENERGY_PER_WORK_CYCLE = Config.analyzerEnergyPerWork;
|
||||
|
||||
private final FilteredTank resourceTank;
|
||||
private final TankManager tankManager;
|
||||
|
||||
Reference in new issue
Block a user