Alternative Hull Recipes with Higher Tier Plastics (#1027)

[BALANCING]
This commit is contained in:
Integer Limit 2024-10-05 10:40:30 +10:00 committed by GitHub
parent c7f47ba3e2
commit 38030cfb5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,40 @@
import com.nomiceu.nomilabs.groovy.ChangeRecipeBuilder
import gregtech.api.recipes.RecipeBuilder
import static gregtech.api.GTValues.*
import static gregtech.loaders.recipe.CraftingComponent.*
// Allows Higher Tier Fluids (PTFE/PBI) for Hulls' Assembler Recipes
var peHulls = [ULV, LV, MV, HV, EV]
var ptfeHulls = [IV, LuV]
var ptfe = fluid('polytetrafluoroethylene')
var pbi = fluid('polybenzimidazole')
for (var tier : peHulls) {
var peRecipes = mods.gregtech.assembler.changeByOutput([HULL.getIngredient(tier)], null)
peRecipes.forEach { ChangeRecipeBuilder it ->
it.builder { RecipeBuilder builder ->
builder.clearFluidInputs()
.fluidInputs(ptfe * 144)
}.buildAndRegister()
}
peRecipes.forEach { ChangeRecipeBuilder it ->
it.copyOriginal()
.builder { RecipeBuilder builder ->
builder.clearFluidInputs()
.fluidInputs(pbi * 72)
}.buildAndRegister()
}
}
for (var tier : ptfeHulls) {
mods.gregtech.assembler.changeByOutput([HULL.getIngredient(tier)], null)
.forEach { ChangeRecipeBuilder it ->
it.builder { RecipeBuilder builder ->
builder.clearFluidInputs()
.fluidInputs(pbi * 144)
}.buildAndRegister()
}
}