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

Tweak EOH stellar plasma consumption #263

Merged
merged 1 commit into from
Dec 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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