Skip to content

Commit

Permalink
Change computation formula in Research Station for scanner mode (#3877)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Robertz <[email protected]>
  • Loading branch information
StaffiX and Dream-Master authored Feb 1, 2025
1 parent 98c7e6b commit 0d260d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import static gregtech.api.enums.HatchElement.Maintenance;
import static gregtech.api.recipe.RecipeMaps.scannerFakeRecipes;
import static gregtech.api.util.GTStructureUtility.buildHatchAdder;
import static gregtech.api.util.GTUtility.getTier;
import static gregtech.api.util.GTUtility.validMTEList;
import static mcp.mobius.waila.api.SpecialChars.GREEN;
import static mcp.mobius.waila.api.SpecialChars.RED;
Expand Down Expand Up @@ -221,15 +222,13 @@ protected CheckRecipeResult checkProcessing_EM() {
}
this.tRecipe = assRecipe;
// Set property
computationRequired = computationRemaining = (long) assRecipe.mResearchTime
* assRecipe.mResearchVoltage
/ 30;

computationRequired = computationRemaining = (long) (assRecipe.mResearchTime
* Math.pow(2, getTier(assRecipe.mResearchVoltage) - 1));
mMaxProgresstime = 20;
mEfficiencyIncrease = 10000;
eRequiredData = 1;
eAmpereFlow = 1;
mEUt = (int) -TierEU.RECIPE_UV;
mEUt = -Math.max(assRecipe.mResearchVoltage, (int) TierEU.RECIPE_UV);
eHolders.get(0)
.getBaseMetaTileEntity()
.setActive(true);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/assets/tectech/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ gt.blockmachines.multimachine.em.research.desc.2=Needs to be fed with computatio
gt.blockmachines.multimachine.em.research.desc.3=Does not consume the item until the Data Stick is written
gt.blockmachines.multimachine.em.research.desc.4=Use screwdriver to change mode
gt.blockmachines.multimachine.em.research.desc.5=Computation required in scanner mode follows the formula:
gt.blockmachines.multimachine.em.research.desc.6=(Recipe duration in seconds * Recipe voltage) / 30
gt.blockmachines.multimachine.em.research.desc.6=Recipe duration in seconds * (2 ^ Recipe voltage tier)
gt.blockmachines.multimachine.em.research.mode.Assembly_line=Mode: Research Station
gt.blockmachines.multimachine.em.research.mode.Scanner=Mode: Scanner

Expand Down

0 comments on commit 0d260d3

Please sign in to comment.