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

Make resource nodes typed #1

Closed ryanjjung closed 9 months ago

ryanjjung commented 9 months ago

A ResourceNode should be fitted with an output type, which is an Item, not an Ingredient, as it does not have a rate or amount. A constraint should be added to miners such that they cannot be set to a recipe that does not accept the resource node's output.

ryanjjung commented 9 months ago

Because a Miner is derived from a Building, it doesn't make sense for a Building to have special logic for Miners in it. The test to ensure that a Miner is hooked to a compatible ResourceNode will come with the test framework, but I have added the data to the class that will allow us to make that determination later.

ryanjjung commented 9 months ago

PR #3