Comply with Initial Review
This commit is contained in:
parent
382fa8c4c5
commit
6bc6af4641
6 changed files with 31 additions and 107 deletions
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
const registerTFGRecipes = (event) =>
|
||||
{
|
||||
var registerVatRecipe = (id, inputItem, fluid, fluidAmount, output) =>
|
||||
var generateVatRecipe = (id, inputItem, fluid, fluidAmount, output) =>
|
||||
{
|
||||
event.custom({
|
||||
"type": "firmalife:vat",
|
||||
|
|
@ -19,6 +19,23 @@ const registerTFGRecipes = (event) =>
|
|||
}
|
||||
}).id(id)
|
||||
}
|
||||
|
||||
var generatePotRecipe = (id, maxAmountOfInputItems, inputItem, inputFluid, inputFluidAmount, outputItem, ticks, temperature) =>
|
||||
{
|
||||
for(let i = 0; i < maxAmountOfInputItems; i++)
|
||||
{
|
||||
var iPlusOne = i + 1
|
||||
let inputsArray = new Array(iPlusOne)
|
||||
for(let j = 0; j < iPlusOne; j++)
|
||||
{
|
||||
inputsArray[j] = inputItem
|
||||
}
|
||||
|
||||
event.recipes.tfc.pot(inputsArray, Fluid.of(inputFluid, inputFluidAmount * iPlusOne), ticks, temperature)
|
||||
.itemOutput(`${iPlusOne}x ${outputItem}`)
|
||||
.id(`tfg:pot/${iPlusOne}x_${id}`)
|
||||
}
|
||||
}
|
||||
//remove chemical bath recipe
|
||||
event.remove({id: 'gtceu:chemical_bath/paper_from_wood_dust'})
|
||||
event.remove({id: 'gtceu:chemical_bath/paper_from_wood_dust_distilled'})
|
||||
|
|
@ -87,9 +104,12 @@ const registerTFGRecipes = (event) =>
|
|||
.id('tfg:quern/soaked_hardwood_strip')
|
||||
|
||||
//Cook hardwood dust in lye
|
||||
registerVatRecipe('tfg:vat/thermochemically_treat_hardwood_dust', 'gtceu:hardwood_dust', 'tfc:lye', 300, 'gtceu:thermochemically_treated_hardwood_dust')
|
||||
registerVatRecipe('tfg:vat/thermochemically_treat_small_hardwood_dust', 'gtceu:small_hardwood_dust', 'tfc:lye', 75, 'gtceu:small_thermochemically_treated_hardwood_dust')
|
||||
registerVatRecipe('tfg:vat/thermochemically_treat_tiny_hardwood_dust', 'gtceu:tiny_hardwood_dust', 'tfc:lye', 33, 'gtceu:tiny_thermochemically_treated_hardwood_dust')
|
||||
generateVatRecipe('tfg:vat/thermochemically_treat_hardwood_dust', 'gtceu:hardwood_dust', 'tfc:lye', 300, 'gtceu:thermochemically_treated_hardwood_dust')
|
||||
generateVatRecipe('tfg:vat/thermochemically_treat_small_hardwood_dust', 'gtceu:small_hardwood_dust', 'tfc:lye', 75, 'gtceu:small_thermochemically_treated_hardwood_dust')
|
||||
generateVatRecipe('tfg:vat/thermochemically_treat_tiny_hardwood_dust', 'gtceu:tiny_hardwood_dust', 'tfc:lye', 33, 'gtceu:tiny_thermochemically_treated_hardwood_dust')
|
||||
generatePotRecipe('thermochemically_treat_hardwood_dust', 3, 'gtceu:hardwood_dust', 'tfc:lye', 300, 'gtceu:thermochemically_treated_hardwood_dust', 600, 300)
|
||||
generatePotRecipe('thermochemically_treat_small_hardwood_dust', 5, 'gtceu:small_hardwood_dust', 'tfc:lye', 75, 'gtceu:small_thermochemically_treated_hardwood_dust', 600, 300)
|
||||
generatePotRecipe('thermochemically_treat_tiny_hardwood_dust', 5, 'gtceu:tiny_hardwood_dust', 'tfc:lye', 33, 'gtceu:tiny_thermochemically_treated_hardwood_dust', 600, 300)
|
||||
generateMixerRecipe(event, 'gtceu:hardwood_dust', Fluid.of('tfc:lye', 150), 'gtceu:thermochemically_treated_hardwood_dust', null, [], 150, 4, 64, 'tfg:mixer/mix_hardwood_dust_with_lye')
|
||||
generateMixerRecipe(event, 'gtceu:small_hardwood_dust', Fluid.of('tfc:lye', 37), 'gtceu:small_thermochemically_treated_hardwood_dust', null, [], 100, 3, 64, 'tfg:mixer/mix_small_hardwood_dust_with_lye')
|
||||
generateMixerRecipe(event, 'gtceu:tiny_hardwood_dust', Fluid.of('tfc:lye', 16), 'gtceu:tiny_thermochemically_treated_hardwood_dust', null, [], 50, 2, 64, 'tfg:mixer/mix_tiny_hardwood_dust_with_lye')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue