Closed ScottHarwoodTech closed 3 months 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.
@fgardt Ive sorted all those whitespace issues and rebuilt the logic into something much more legible and assessible.
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:logistics_fullfillment_timeout
when set to -1 disables all the timeout logic.optimistic_logistics_items
which is a comma delimited list of items that we would LIKE to place but if we dont have them we can still attempt to place them (think modules)request_done
is evaluated we check to see if thelogistics_fullfillment_timeout
has lapsed if it has we get what different item types havent been fulfilled, if the only items havent been fulfilled are optimistic then we will mark therequest_items
job as donerequest_items
job definition we dont add it the only items in thecombined_chunks.requested_items
table are optimistic (to avoid empty bot looping)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 😭