ILLISIS / Constructron-Continued

Other
13 stars 21 forks source link

Feat: add optional optimistic logistics requests #118

Closed ScottHarwoodTech closed 3 months ago

ScottHarwoodTech commented 1 year ago

Sometimes people place Blueprints and do not have all the required resources to start the build. Some people would like the option to allow a request_items job to timeout and let it the job start. This is achieved using the following logic:

Notes:

This is still a draft so the code absolutely needs to by DRYed up.

I am not a lua dev so its probably not the best code 😂

Looks like my editor has done a lot of changes to formatting 😭

ScottHarwoodTech commented 1 year ago

I've not checked everything yet but it looks decent so far from the technical side.

Looks like your formatter got unhappy at a lot of places and decided to rip things apart.

yup, the formatter is not happy one bit.

ScottHarwoodTech commented 1 year ago

@fgardt Ive sorted all those whitespace issues and rebuilt the logic into something much more legible and assessible.