Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
tweak stellar plasma consumption (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
GDCloudstrike authored Dec 3, 2023
1 parent 557e45e commit ae215b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ private void calculateInputFluidExcessValues(final long hydrogenRecipeRequiremen
double hydrogenExcessPercentage = hydrogenStored / hydrogenRecipeRequirement - 1;
double heliumExcessPercentage = heliumStored / heliumRecipeRequirement - 1;
double stellarPlasmaExcessPercentage = stellarPlasmaStored
/ (heliumRecipeRequirement * (9 / 1_000_000f) * parallelAmount) - 1;
/ (heliumRecipeRequirement * (12.4 / 1_000_000f) * parallelAmount) - 1;

hydrogenOverflowProbabilityAdjustment = 1 - exp(-pow(30 * hydrogenExcessPercentage, 2));
heliumOverflowProbabilityAdjustment = 1 - exp(-pow(30 * heliumExcessPercentage, 2));
Expand Down Expand Up @@ -1013,7 +1013,7 @@ public GT_Multiblock_Tooltip_Builder createTooltip() {
.addInfo("instead of helium and hydrogen. Overflow penalties still apply.")
.addInfo(
"The required amount of fluid to start a recipe is " + GREEN
+ "9 / 10^6 * heliumAmount * parallel"
+ "12.4 / 10^6 * heliumAmount * parallel"
+ GRAY
+ ".")
.addInfo("All item & fluid outputs including failure fluid are multiplied by the amount of parallel.")
Expand Down Expand Up @@ -1192,7 +1192,7 @@ public CheckRecipeResult processRecipe(EyeOfHarmonyRecipe recipeObject) {
// Debug mode, overwrites the required fluids to initiate the recipe to 100L of each.
if (parallelAmount > 1) {
if ((EOH_DEBUG_MODE && getStellarPlasmaStored() < 100) || (!EOH_DEBUG_MODE && getStellarPlasmaStored()
< currentRecipe.getHeliumRequirement() * (9 / 1_000_000f) * parallelAmount)) {
< currentRecipe.getHeliumRequirement() * (12.4 / 1_000_000f) * parallelAmount)) {
return SimpleCheckRecipeResult.ofFailure("no_stellarPlasma");
}
}
Expand Down

0 comments on commit ae215b6

Please sign in to comment.