ryanjjung / satisfactor-py

A Python utility for planning factories in the video game Satisfactory
GNU General Public License v3.0
0 stars 0 forks source link

Build error compilation as a function of factories #31

Closed ryanjjung closed 5 months ago

ryanjjung commented 5 months ago

Today, when you simulate a factory, you have to do something like this afterward to get to its errors:

factory.simulate()
errors = {
    component.name: [error.to_dict() for error in component.errors]
    for component in factory.components
    if len(component.errors) > 0
}

That (or a more feature-rich version of it) should be a function of a factory.

ryanjjung commented 5 months ago

Fixed in #33