mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-08-10 17:55:44 +00:00
oh great heavens
This commit is contained in:
parent
24ed4224a8
commit
217b1ae8a4
@ -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--;
|
||||
|
||||
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;
|
||||
|
||||
if(typeLoaded != -1 && amountLoaded > 0) {
|
||||
@ -227,6 +233,10 @@ public class TileEntityPWRController extends TileEntityMachineBase implements IG
|
||||
double totalOutput = outputPerRod * amountLoaded * usedRods;
|
||||
double totalHeatOutput = totalOutput * fuel.heatEmission;
|
||||
|
||||
if(tanks[0].getFill() > 0) {
|
||||
totalHeatOutput *= multiplier;
|
||||
}
|
||||
|
||||
this.coreHeat += totalHeatOutput;
|
||||
newFlux += totalOutput;
|
||||
|
||||
@ -266,8 +276,8 @@ public class TileEntityPWRController extends TileEntityMachineBase implements IG
|
||||
|
||||
this.flux = newFlux;
|
||||
|
||||
if(tanks[0].getTankType().hasTrait(FT_PWRModerator.class) && tanks[0].getFill() > 0) {
|
||||
this.flux *= tanks[0].getTankType().getTrait(FT_PWRModerator.class).getMultiplier();
|
||||
if(tanks[0].getFill() > 0) {
|
||||
this.flux *= multiplier;
|
||||
}
|
||||
|
||||
if(this.coreHeat > this.coreHeatCapacity) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user