You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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. AParsePower
call should detect joules/tick vs watts and convert both to MW (collecting all the scattered* 60
s into a single place), whileParseEnergy
should reject values in MW.The text was updated successfully, but these errors were encountered: