You can open the mining script and you can see the logic behind mining there :)
If you still have more questions after going through the script feel free to post them here.
I've looked through the script, and here is what I understand:
- Get the Ship
- Get the Asteroid
- Draw a fancy line in between
- Play some sounds
- Duration = Difficulty of the Asteroid divided by speed of device
- Cooldown of Device = Duration
- Loop: Calculating the Energy (frame by frame)
So far so good, this was expected.
Now to the more interesting part for me, the mining formula:
total_amount = Math.max(0, Math.floor(Math.pow(Math.max(amount - 50, 0), 0.25) * cont[i].extraction) - 2);
x = Mining Amount - 50 (Where x is at least 0)
x = squareroot of (squareroot of x)
x = x * extraction value of ressource.y (let's say glepsite which is 5-12 depending on type)
Remove everything behind the . from x (so 1.2=1 and 2.9=2)
x = x - 2 (Where the result is at least 0)
When the result is 0 we are done mining ressource.y (glepsite), go to the next ressource.
Okay so going from there I calculated this:
If Mining is 250 (Industrial) and Ressouce is 10 (Glepsite) I get 35.
If Mining is 750 (Industrial) and Ressouce is 10 (Glepsite) I get 49. (Almost my 50)
Reversing the Formula to get 70 Glepsite I need around 2707 mining amount.
(http://www16.picfront.org/picture/7x1WJMwN79K/thb/Mining.png) (http://www.picfront.org/d/9jr1)
Is that correct?
Well, I can say for sure that the basic idea is correct, although I haven't checked the numbers you provided :)