Skip to content

Commit

Permalink
Fix #33
Browse files Browse the repository at this point in the history
Fix reset
  • Loading branch information
NiHoel committed Jun 5, 2020
1 parent d27e3ae commit b9d883f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AnnoCalculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ class Island {
if (a instanceof Consumer)
a.existingBuildings(0);
if (a instanceof Factory) {
if (a.moduleChecked)
a.moduleChecked(false);
a.percentBoost(100);
a.extraAmount(0);
}
Expand Down Expand Up @@ -542,6 +544,8 @@ class Factory extends Consumer {
this.moduleDemand.updateAmount(0);
return buildings;
});

this.buildings.subscribe(val => this.workforceDemand.updateAmount(Math.max(val, this.buildings())));
}


Expand Down

0 comments on commit b9d883f

Please sign in to comment.