Skip to content

Commit

Permalink
Added separate resource string for showing cooldown heat output in fl…
Browse files Browse the repository at this point in the history
…uid reactor.
  • Loading branch information
MauveCloud committed Feb 27, 2018
1 parent 1044bbe commit 9a79425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Ic2ExpReactorPlanner/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ ACTIVE_TIME=Reactor was active for a total of %,d seconds (%,d to %,d seconds at
INACTIVE_TIME=Reactor was inactive for a total of %,d seconds.\n
COMPONENTS_REPLACED=Components replaced:\n%s
HEAT_OUTPUTS=Total heat output: %,.0f\nAverage heat output before fuel rods stopped: %.2f Hu/s\nMinimum heat output: %.2f Hu/s\nMaximum heat output: %.2f Hu/s\n
HEAT_OUTPUTS_COOLDOWN=Total heat output: %,.0f\nAverage heat output during cooldown: %.2f Hu/s\nMinimum heat output: %.2f Hu/s\nMaximum heat output: %.2f Hu/s\n
EFFICIENCY=Efficiency: %.2f average, %.2f minimum, %.2f maximum\n
EU_OUTPUTS=Total EU output: %,.0f (%.2f EU/t min, %.2f EU/t max, %.2f EU/t average)\n
REACTOR_REMAINING_HEAT=Reactor remained at %,.2f heat after cycle.\n
Expand Down
4 changes: 2 additions & 2 deletions src/Ic2ExpReactorPlanner/SimpleSimulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ protected Void doInBackground() throws Exception {
}
}
}
} while (lastHeatOutput > 0 && cooldownTicks < 20000);
} while (lastHeatOutput > 0 && cooldownTicks < 50000);
if (reactor.getCurrentHeat() < reactor.getMaxHeat()) {
if (reactor.getCurrentHeat() == 0.0) {
publish(String.format(java.util.ResourceBundle.getBundle("Ic2ExpReactorPlanner/Bundle").getString("REACTOR_COOLDOWN_TIME"), reactorCooldownTime));
Expand All @@ -282,7 +282,7 @@ protected Void doInBackground() throws Exception {
publish(String.format(java.util.ResourceBundle.getBundle("Ic2ExpReactorPlanner/Bundle").getString("REACTOR_OVERHEATED_TIME"), reactorTicks));
}
if (reactor.isFluid()) {
publish(String.format(java.util.ResourceBundle.getBundle("Ic2ExpReactorPlanner/Bundle").getString("HEAT_OUTPUTS"), 2 * totalHeatOutput, 2 * totalHeatOutput / cooldownTicks, 2 * minHeatOutput, 2 * maxHeatOutput));
publish(String.format(java.util.ResourceBundle.getBundle("Ic2ExpReactorPlanner/Bundle").getString("HEAT_OUTPUTS_COOLDOWN"), 2 * totalHeatOutput, 2 * totalHeatOutput / cooldownTicks, 2 * minHeatOutput, 2 * maxHeatOutput));
}
double totalEffectiveVentCooling = 0.0;
double totalVentCoolingCapacity = 0.0;
Expand Down

0 comments on commit 9a79425

Please sign in to comment.