Talk:Buying/Selling/Transferring

From UFOpaedia
Revision as of 08:30, 12 April 2011 by Volutar (talk | contribs) (Final formulas with example)
Jump to navigation Jump to search

Transferring

Formulas:

 Time = 6 + Globe_Distance(base1.x, base1.y, base2.x, base2.y) / 200

Globe_Distance calculated as sqrt(x*x + y*y + z*z) of 3d coordinate, so maximum from north pole to south isn't surface distance, but straight line through the Earth. Coordinate as far as I see is taken in sin/cos units, i.e. sphere radius is 1024. Thus, maximum distance will be 2048, and according formula it will take 6 + 2048/200 = 16.24 hours. --Volutar 22:24, 11 April 2011 (EDT)

 Cost = Globe_Distance(base1.x, base1.y, base2.x, base2.y) / 20 * item_transfer_cost

where item_transfer_cost calculated for each transferred item ( * Quantity):

 soldier = 5
 craft = 25
 scientists/engineers = 5
 alien corpse = 20
 all other general store items = 1

So one craft transfer cost from one pole to another will be 2048/20 * 25 = $2560 Grenade transfer cost will be 2048/20 * 1 = $102.4 Three grenades 2048/20 * 3 = $307.2 --Volutar 04:30, 12 April 2011 (EDT)