Difference between revisions of "Talk:Buying/Selling/Transferring"
Jump to navigation
Jump to search
(Transferring) |
(transfer cost) |
||
Line 2: | Line 2: | ||
Formulas: | Formulas: | ||
− | Time = 6 + Globe_Distance(base1.x, base1.y, base2.x, base2.y) / 200 | + | 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. | 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. | ||
Line 8: | Line 8: | ||
Thus, maximum distance will be 2048, and according formula it will take 6 + 2048/200 = 16.24 hours. | Thus, maximum distance will be 2048, and according formula it will take 6 + 2048/200 = 16.24 hours. | ||
--[[User:Volutar|Volutar]] 22:24, 11 April 2011 (EDT) | --[[User:Volutar|Volutar]] 22:24, 11 April 2011 (EDT) | ||
+ | |||
+ | Cost = Globe_Distance(base1.x, base1.y, base2.x, base2.y) / 100 * item_transfer_cost | ||
+ | |||
+ | where item_transfer_cost calculated for each transferred line: | ||
+ | |||
+ | soldier = 5 | ||
+ | craft = 25 | ||
+ | generalstore items = category!=0? 5*quantity : purchase_category_ref==6? 20*quantity : quantity | ||
+ | |||
+ | This isn't final formula | ||
+ | --[[User:Volutar|Volutar]] 02:45, 12 April 2011 (EDT) |
Revision as of 06:45, 12 April 2011
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) / 100 * item_transfer_cost
where item_transfer_cost calculated for each transferred line:
soldier = 5 craft = 25 generalstore items = category!=0? 5*quantity : purchase_category_ref==6? 20*quantity : quantity
This isn't final formula --Volutar 02:45, 12 April 2011 (EDT)