Page 1 of 1

How to get "Expected resources" from a mining drill

Posted: Fri Mar 03, 2017 5:11 am
by can00336
Is there a way to get the "Expected resources" of the ore under a mining drill via the Lua API?

Re: How to get "Expected resources" from a mining drill

Posted: Fri Mar 03, 2017 8:31 am
by daniel34
Not directly, you will need to go over each tile in the drill area and add it up yourself.

Re: How to get "Expected resources" from a mining drill

Posted: Fri Mar 03, 2017 8:35 am
by can00336
daniel34 wrote:Not directly, you will need to go over each tile in the drill area and add it up yourself.
I feared that was the case; I couldn't find anything in the API when I perused it. Thank you for the confirmation.

Do you know of a UPS-friendly way to do so? Or is it best to do the usual chunk-by-chunk surface search to find the drills, then another small surface search for the ore tiles?

Thanks!

Re: How to get "Expected resources" from a mining drill

Posted: Fri Mar 03, 2017 9:57 am
by Rseding91
can00336 wrote:
daniel34 wrote:Not directly, you will need to go over each tile in the drill area and add it up yourself.
I feared that was the case; I couldn't find anything in the API when I perused it. Thank you for the confirmation.

Do you know of a UPS-friendly way to do so? Or is it best to do the usual chunk-by-chunk surface search to find the drills, then another small surface search for the ore tiles?

Thanks!
There is none. That's also how the game does it when you hover over the mining drill :)