forked from ShadowTheAge/yafc
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
The words and units for power and energy are used somewhat interchangeably by the Factorio devs. We should audit the values in data.raw and determine if (a) power values in joules are reliably energy-per-tick, (b) power values in watts are reliably watts, and (c) energy values are reliably in joules.
If so, ParseEnergy should be refactored so the caller must specify whether they're reading an energy value or a power value. A ParsePower call should detect joules/tick vs watts and convert both to MW (collecting all the scattered * 60s into a single place), while ParseEnergy should reject values in MW.
veger