KirkMcDonald / kirkmcdonald.github.io

Simple web-based calculator for the game Factorio.
Apache License 2.0
553 stars 147 forks source link

Energy usage fixes #191

Open RustyBlade64 opened 4 years ago

RustyBlade64 commented 4 years ago

This PR makes sure that energy usage for assembling is calculated the same as in-game. The difference to the existing implementation is that drain needs to be added to the prototype-defined energy_usage for the time when the machine is active (see screenshots below). It also changes energy calculation for miners to have no drain instead of energy_usage/30, since this default is not applicable to them.

image image