Refactor & update to gt7
* gt7 removed credits/coins * port gregtech additions to java * add eslint locally * add style linting * switch target ECMA standard * run linter * clean up a bunch of linter errors * remove outdated greate API calls * forgot about the TFC multi compat issue * reverted greate recipe removals * some more linting stuff * fix some issues with greenhouse recipes * fix up some material stuff * fix recipe types * - Fixed single block machine rendering (#1465) * minor fixes and changes --------- Signed-off-by: Pyritie <pyritie@gmail.com> Co-authored-by: Pyritie <pyritie@gmail.com> Co-authored-by: Redeix <59435925+Redeix@users.noreply.github.com>
This commit is contained in:
parent
d0af2cd96f
commit
f3dfa471ec
249 changed files with 2359 additions and 792 deletions
|
|
@ -1083,13 +1083,13 @@ global.TFC_MAGMA_BLOCKS = [
|
|||
|
||||
global.calcAmountOfMetal = (defaultAmount, percents) => {
|
||||
const value = defaultAmount / (100 / percents)
|
||||
return (value % 2 == 0) ? value : Math.round(value) - 1
|
||||
return (value % 2 === 0) ? value : Math.round(value) - 1
|
||||
}
|
||||
|
||||
// This prevents the "exploit" where Cassiterite dust gives 2x as much from melting as smelting in a furnace
|
||||
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
|
||||
return (value % 2 === 0) ? value : Math.round(value) - 1
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,12 +48,10 @@ function calcCurrentTemp(averageTemp, seaLevel, playerY, calendarTicks, tempRang
|
|||
// This is taken from TFC's OverworldClimateModel.java
|
||||
let elevationTemp = clamp((playerY - seaLevel) * 0.16225, 0, 17.822);
|
||||
return averageTemp - elevationTemp + tempDiff;
|
||||
}
|
||||
else if (playerY > 20) {
|
||||
} else if (playerY > 20) {
|
||||
|
||||
return averageTemp + (tempDiff * (playerY / seaLevel));
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
|
||||
// TODO: check this
|
||||
let depthPercent = 1 - (playerY / 20);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue