Skip to content

Audit power/energy confusion #398

@DaleStan

Description

@DaleStan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions