diff options
author | David Vierra <codewarrior@hawaii.rr.com> | 2018-03-07 03:11:11 -1000 |
---|---|---|
committer | David Vierra <codewarrior@hawaii.rr.com> | 2018-03-07 13:58:44 -1000 |
commit | 6d48df5a67acd70d4116827fa7dba729c94b83b7 (patch) | |
tree | e828d82f4b75a895cad93de7c8ae07a34f684bb6 /src/Java/gregtech/api | |
parent | 5fe4110e72a602c45524904204cee7bbe11c86b1 (diff) | |
download | GT5-Unofficial-6d48df5a67acd70d4116827fa7dba729c94b83b7.tar.gz GT5-Unofficial-6d48df5a67acd70d4116827fa7dba729c94b83b7.tar.bz2 GT5-Unofficial-6d48df5a67acd70d4116827fa7dba729c94b83b7.zip |
Substation: Rewrite machine running logic
Implement logic in `onRunningTick` instead of `onPostTick`, allowing
the base maintenance/repair logic to take effect.
Rewrite hatch draining/filling to consider the station's available
energy and the hatch's capacity and throughput, including its amperage.
Energy hatches now correctly supply 2A to the station, and multi-amp
dynamos output the proper number of amps.
Rewrite running costs to consider the actual average voltage instead of
the voltage tier, and increase running costs according to maintenance
problems. Running cost % is now configurable via a constant ENERGY_TAX,
currently 2%. Running costs deliberately ignore hatch amperage to make
multi-amp hatches more appealing.
Also clear the dynamo hatch lists on each machine check to prevent them
filling up with duplicate hatches.
Diffstat (limited to 'src/Java/gregtech/api')
0 files changed, 0 insertions, 0 deletions