oh great heavens

This commit is contained in:
absolute idiot 2026-06-27 00:42:44 -04:00
parent 24ed4224a8
commit 217b1ae8a4

View File

@ -216,6 +216,12 @@ public class TileEntityPWRController extends TileEntityMachineBase implements IG
if(this.rodTarget > this.rodLevel) this.rodLevel++; if(this.rodTarget > this.rodLevel) this.rodLevel++;
if(this.rodTarget < this.rodLevel) this.rodLevel--; if(this.rodTarget < this.rodLevel) this.rodLevel--;
double multiplier = 1D;
if(tanks[0].getTankType().hasTrait(FT_PWRModerator.class)) {
multiplier = tanks[0].getTankType().getTrait(FT_PWRModerator.class).getMultiplier();
}
int newFlux = this.sourceCount * 20; int newFlux = this.sourceCount * 20;
if(typeLoaded != -1 && amountLoaded > 0) { if(typeLoaded != -1 && amountLoaded > 0) {
@ -227,6 +233,10 @@ public class TileEntityPWRController extends TileEntityMachineBase implements IG
double totalOutput = outputPerRod * amountLoaded * usedRods; double totalOutput = outputPerRod * amountLoaded * usedRods;
double totalHeatOutput = totalOutput * fuel.heatEmission; double totalHeatOutput = totalOutput * fuel.heatEmission;
if(tanks[0].getFill() > 0) {
totalHeatOutput *= multiplier;
}
this.coreHeat += totalHeatOutput; this.coreHeat += totalHeatOutput;
newFlux += totalOutput; newFlux += totalOutput;
@ -266,8 +276,8 @@ public class TileEntityPWRController extends TileEntityMachineBase implements IG
this.flux = newFlux; this.flux = newFlux;
if(tanks[0].getTankType().hasTrait(FT_PWRModerator.class) && tanks[0].getFill() > 0) { if(tanks[0].getFill() > 0) {
this.flux *= tanks[0].getTankType().getTrait(FT_PWRModerator.class).getMultiplier(); this.flux *= multiplier;
} }
if(this.coreHeat > this.coreHeatCapacity) { if(this.coreHeat > this.coreHeatCapacity) {