diff options
author | Maya <10861407+serenibyss@users.noreply.github.com> | 2024-09-12 13:01:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 20:01:25 +0200 |
commit | 544a7b3aa81a0478faa9de670d12af60ed830d89 (patch) | |
tree | 55b27e5aba3ea40aab15f635e26fe852b36d3346 /src/main/java/gregtech/api/recipe | |
parent | e003cddca9a3ac0a2d7b5a0b7be79f3cf6e03481 (diff) | |
download | GT5-Unofficial-544a7b3aa81a0478faa9de670d12af60ed830d89.tar.gz GT5-Unofficial-544a7b3aa81a0478faa9de670d12af60ed830d89.tar.bz2 GT5-Unofficial-544a7b3aa81a0478faa9de670d12af60ed830d89.zip |
2.7 Stargate (#3105)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: NotAPenguin <michiel.vandeginste@gmail.com>
Diffstat (limited to 'src/main/java/gregtech/api/recipe')
-rw-r--r-- | src/main/java/gregtech/api/recipe/maps/TranscendentPlasmaMixerFrontend.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/recipe/maps/TranscendentPlasmaMixerFrontend.java b/src/main/java/gregtech/api/recipe/maps/TranscendentPlasmaMixerFrontend.java index 7a4036e7ba..0e8a3e49fa 100644 --- a/src/main/java/gregtech/api/recipe/maps/TranscendentPlasmaMixerFrontend.java +++ b/src/main/java/gregtech/api/recipe/maps/TranscendentPlasmaMixerFrontend.java @@ -1,5 +1,6 @@ package gregtech.api.recipe.maps; +import static gregtech.api.util.GTRecipeConstants.EU_MULTIPLIER; import static gregtech.api.util.GTUtility.formatNumbers; import java.util.List; @@ -44,12 +45,13 @@ public class TranscendentPlasmaMixerFrontend extends RecipeMapFrontend { protected void drawEnergyInfo(RecipeDisplayInfo recipeInfo) { // These look odd because recipeInfo.recipe.mEUt is actually the EU per litre of fluid processed, not // the EU/t. + long multiplier = recipeInfo.recipe.getMetadataOrDefault(EU_MULTIPLIER, 10); recipeInfo.drawText( GTUtility.trans("152", "Total: ") - + formatNumbers(1000L * recipeInfo.recipe.mDuration / 100L * recipeInfo.recipe.mEUt) + + formatNumbers(multiplier * recipeInfo.recipe.mDuration * recipeInfo.recipe.mEUt) + " EU"); // 1000 / (20 ticks * 5 seconds) = 10L/t. 10L/t * x EU/L = 10 * x EU/t. - long averageUsage = 10L * recipeInfo.recipe.mEUt; + long averageUsage = multiplier * recipeInfo.recipe.mEUt; recipeInfo.drawText( "Average: " + formatNumbers(averageUsage) + " EU/t" + GTUtility.getTierNameWithParentheses(averageUsage)); } |