fixed unobtainable cobalt brass buzzsaw before mv
This commit is contained in:
parent
5c95e4bc0f
commit
891bae53e9
1 changed files with 13 additions and 2 deletions
|
|
@ -958,15 +958,26 @@ function registerGTCEUMetalRecipes(event) {
|
||||||
|
|
||||||
const processBuzzsawBlade = (material) => {
|
const processBuzzsawBlade = (material) => {
|
||||||
const buzzsawBladeItem = ChemicalHelper.get(TagPrefix.toolHeadBuzzSaw, material, 1)
|
const buzzsawBladeItem = ChemicalHelper.get(TagPrefix.toolHeadBuzzSaw, material, 1)
|
||||||
const doublePlateItem = ChemicalHelper.get(TagPrefix.plateDouble, material, 2)
|
const doublePlateItem = ChemicalHelper.get(TagPrefix.plateDouble, material, 1)
|
||||||
if (buzzsawBladeItem == null || doublePlateItem == null)
|
if (buzzsawBladeItem == null || doublePlateItem == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
var isLowTier = material == GTMaterials.CobaltBrass || material.hasProperty(TFGPropertyKey.TFC_PROPERTY)
|
||||||
|
|
||||||
event.recipes.gtceu.lathe(`buzzsaw_gear_${material.getName()}`)
|
event.recipes.gtceu.lathe(`buzzsaw_gear_${material.getName()}`)
|
||||||
.itemInputs(doublePlateItem)
|
.itemInputs(doublePlateItem)
|
||||||
.itemOutputs(buzzsawBladeItem)
|
.itemOutputs(buzzsawBladeItem)
|
||||||
.duration(material.getMass() * 6)
|
.duration(material.getMass() * 6)
|
||||||
.EUt(GTValues.VA[GTValues.MV])
|
.EUt(GTValues.VA[isLowTier ? GTValues.LV : GTValues.MV])
|
||||||
|
|
||||||
|
if (isLowTier) {
|
||||||
|
event.custom({
|
||||||
|
type: 'vintageimprovements:turning',
|
||||||
|
ingredients: [doublePlateItem],
|
||||||
|
results: [buzzsawBladeItem],
|
||||||
|
processingTime: material.getMass() * global.VINTAGE_IMPROVEMENTS_DURATION_MULTIPLIER
|
||||||
|
}).id(`tfg:vi/lathe/${material.getName()}_buzzsaw`)
|
||||||
|
}
|
||||||
|
|
||||||
event.remove({ id: `gtceu:shaped/buzzsaw_blade_${material.getName()}` })
|
event.remove({ id: `gtceu:shaped/buzzsaw_blade_${material.getName()}` })
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue