Issue description
The gold for crude oil contract appears to calculate the unity cost per ship based on the number of gold on the ship rather than the amount of oil that can be returned. Using a 4 module cargo depot (3 oil, 1 gold), charges 6.12 unity per ship instead of the 2.2 unity displayed in the trade interface. All excess gold is still on the ship when it returns and the cargo depot tries to fully load the ship before it departs.
As an experiment, I sent the ship with less gold bars and checked the unity cost:
360 gold cost 6.12 unity
169 gold cost 2.24 unity
Both cases returned 1320 crude oil and any gold above the 132 required for the trade.
I have only tested this with the gold for oil contract, so I do not know if it happens with other contracts as well.
Expected behavior
One ship to trade 132 gold for 1320 crude oil with a unity cost of 2.2 unity
Reproduction steps
- Establish the gold to crude oil contract and assign it to a cargo depot 4 with one module for gold and 3 modules for crude oil
- Supply the unit module with sufficient gold to fully load the one slot on the ship assigned to gold
- Allow the ship to depart and observe the unity cost
Game version
v0.4.12e