Skip to content

Commit

Permalink
Comparison sanity checks, automation pulse condition fix
Browse files Browse the repository at this point in the history
Will no longer show comparison details for temperature or HU/EU output if not set due to missing heat source, automation (indicating that fuel rods will be replaced, so values "before depletion" don't matter so much), etc.
Pulsed automated reactor was not handling pulse timing correctly, hopefully fixed now.
  • Loading branch information
MauveCloud committed Jul 23, 2019
1 parent abf21b9 commit 987aeec
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 171 deletions.
2 changes: 1 addition & 1 deletion src/Ic2ExpReactorPlanner/AutomationSimulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ protected Void doInBackground() throws Exception {
currentInactiveTime++;
if (reactor.isAutomated() && pauseTimer > 0) {
pauseTimer--;
} else if ((reactor.isPulsed() && reactor.getCurrentHeat() <= resumeTemp && (reactorTicks % clockPeriod) < onPulseDuration) || (reactor.isAutomated() && pauseTimer <= 0)) {
} else if ((reactor.isPulsed() && reactor.getCurrentHeat() <= resumeTemp && (reactorTicks % clockPeriod) < onPulseDuration)) {
active = true;
minInactiveTime = Math.min(currentInactiveTime, minInactiveTime);
maxInactiveTime = Math.max(currentInactiveTime, maxInactiveTime);
Expand Down
Loading

0 comments on commit 987aeec

Please sign in to comment.