Skip to content

Commit

Permalink
Dark Energy Antimatter Windmill fix
Browse files Browse the repository at this point in the history
Dark Energy now applies to windmills in antimatter universe
  • Loading branch information
pmotschmann committed Oct 29, 2019
1 parent 578ae6e commit f47df42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#### 0.6.23 - 10/28/2019 ####
Exotic mass now counts towards Galactic Landfill and Supermassive<br>
Fixed issues with queue timers and kindling kindred trait<br>
Dark Energy now applies to windmills in antimatter universe<br>

#### 0.6.22 - 10/26/2019 ####
Game optimizations<br>
Expand Down
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,16 +902,17 @@ function fastLoop(){
}

if (global.city['mill'] && global.tech['agriculture'] && global.tech['agriculture'] >= 6){
let power = global.city.mill.on * actions.city.mill.powered();
let power = powerModifier(global.city.mill.on * actions.city.mill.powered());
max_power += power;
power_grid -= power;
power_generated[loc('city_mill_title2')] = -(power);
}

if (global.city['windmill'] && global.tech['wind_plant'] && (global.race['soul_eater'] || global.race['carnivore'])){
max_power -= global.city.windmill.count;
power_grid += global.city.windmill.count;
power_generated[loc('city_mill_title2')] = global.city.windmill.count;
let power = powerModifier(global.city.windmill.count);
max_power -= power;
power_grid += power;
power_generated[loc('city_mill_title2')] = power;
}

// Power usage
Expand Down

0 comments on commit f47df42

Please sign in to comment.