Merge pull request #755 from SverhRazum-Nah/TFC-magma-as-passive-boiler-heater

Tfc magma as passive boiler heater
This commit is contained in:
Dmitry 2025-01-25 23:48:43 +07:00 committed by GitHub
commit 8025dccf40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 1 deletions

View file

@ -258,6 +258,13 @@ const registerTFCBlockTags = (event) => {
// Удаление тегов у руд
event.removeAllTagsFrom("/tfc:ore/[^*]+/[^*]+/")
//#region Позволяем ТФК магме греть бойлер из Create
global.TFC_MAGMA_BLOCKS.forEach(el => {
event.add('create:passive_boiler_heaters', el)
})
//#endregion
}
const registerTFCFluidTags = (event) => {

View file

@ -1067,6 +1067,16 @@ global.TFC_MILKS = [
{id: 'firmalife:coconut_milk'},
];
global.TFC_MAGMA_BLOCKS = [
'tfc:rock/magma/granite',
'tfc:rock/magma/diorite',
'tfc:rock/magma/gabbro',
'tfc:rock/magma/rhyolite',
'tfc:rock/magma/basalt',
'tfc:rock/magma/andesite',
'tfc:rock/magma/dacite'
];
global.calcAmountOfMetal = (defaultAmount, percents) => {
const value = defaultAmount / (100 / percents)
return (value % 2 == 0) ? value : Math.round(value) - 1
@ -1077,4 +1087,5 @@ global.calcAmountOfMetalProcessed = (defaultAmount, percents) => {
const percentPerItem = percents / Math.ceil(percents / 100)
const value = defaultAmount * (percentPerItem / 100)
return (value % 2 == 0) ? value : Math.round(value) - 1
}
}