From e9c78bd3c57a0a499132de892a94fb6d7fffb32e Mon Sep 17 00:00:00 2001 From: Elisis Date: Mon, 22 Jul 2024 22:02:54 +1000 Subject: Beamline Balancing and Fix (#2749) * Fix weird t2 antenna issue and partly the electron scaling issue * Decrease LINAC energy scaling but increase max possible energy * Improve antenna tier scaling, make input-output energy curve more shallow at lower input energies * Spotless apply for branch beamline-fixes-1 for #2749 (#2750) spotlessApply Co-authored-by: GitHub GTNH Actions <> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../com/elisis/gtnhlanth/common/tileentity/LINAC.java | 4 ++-- .../elisis/gtnhlanth/common/tileentity/Synchrotron.java | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/main/java/com/elisis/gtnhlanth/common/tileentity/LINAC.java b/src/main/java/com/elisis/gtnhlanth/common/tileentity/LINAC.java index c9d9b125b4..e456813bc6 100644 --- a/src/main/java/com/elisis/gtnhlanth/common/tileentity/LINAC.java +++ b/src/main/java/com/elisis/gtnhlanth/common/tileentity/LINAC.java @@ -343,7 +343,7 @@ public class LINAC extends GT_MetaTileEntity_EnhancedMultiBlockBase imple outputEnergy = Math.min( (1 + inputEnergy / Particle.getParticleFromId(outputParticle) .maxSourceEnergy()) * machineEnergy, - 100_000); // TODO more complex calculation than just + 120_000); // TODO more complex calculation than just // addition inputRate = this.getInputInformation() @@ -554,7 +554,7 @@ public class LINAC extends GT_MetaTileEntity_EnhancedMultiBlockBase imple private static float calculateVoltageFactor(long voltage) { - float factor = (float) Math.pow(1.00009, -(voltage - 125000)); + float factor = (float) Math.pow(1.00009, -(0.1 * voltage - 114000)); return factor; } diff --git a/src/main/java/com/elisis/gtnhlanth/common/tileentity/Synchrotron.java b/src/main/java/com/elisis/gtnhlanth/common/tileentity/Synchrotron.java index 3eaa682381..6733bc5338 100644 --- a/src/main/java/com/elisis/gtnhlanth/common/tileentity/Synchrotron.java +++ b/src/main/java/com/elisis/gtnhlanth/common/tileentity/Synchrotron.java @@ -764,6 +764,7 @@ public class Synchrotron extends GT_MetaTileEntity_EnhancedMultiBlockBase