• Welcome to AtomicTorch Studio Forums.
 
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - artforz

#1
Game discussion / Re: thoughts on mining
April 06, 2014, 04:11:02 AM
I suspect it's simply a bug in the mined amount calculation.

asteroid resource extraction value: number mined by civilian(amount 75)/standard(100)/industrial(300)/hypothetical mining device with amount 500:
1: 0/1/101/103
2: 1/2/103/107
5: 3/5/109/119
10: 7/10/119/139

That scaling makes no sense at all.

Changing data\scripts\devices\ModuleMining.js line 71 from
total_amount = Math.floor( 100 + (amount - 100) * Math.pow( (1.0 - extraction_diff/50.0), Q) * extraction_diff );
to
total_amount = Math.floor( ( 100 + (amount - 100) * Math.pow( (1.0 - extraction_diff/50.0), Q) ) * extraction_diff );

notice the extra brackets

changes the extracted amounts to this:
1: 0/1/2/4
2: 1/2/5/9
5: 3/5/14/24
10: 7/10/29/49

So a industrial miner takes twice as long as a standard and gets 2~3 times as much instead of always getting 100+.