Dancing Hoskuld
Deity
UNIT_MERCHANTFLEET is provided by an event.UNIT_MERCHANTFLEET appears to be the one I was recalling that doesn't have a build cost so is given to players through another means. (Not sure what means that is exactly though.)
UNIT_CARRACK_MERCHANT does have a build cost so you are correct on that. The XML that activates its mission is:
Which states to the DLL that it can perform a trade mission and if it does so, the parameters in which it operates.Code:<iBaseTrade>65</iBaseTrade> <iTradeMultiplier>3</iTradeMultiplier>
Now... with that said, there COULD be some hidden python I don't know about but the amounts are working properly here. It looks like I need to take another look at the 'return to base' teleportation portion. If there is python on this, it should be eliminated because it could be causing a second 'teleportation' that would be not only unnecessary but incorrect.
Yeah, I needed to change trading units to being sent back to the city of origin instead. Of course for those who think they can now train their merchants and merchant ships on the border to get the fastest routing, they should be aware that the distance between city of origin and city where the mission is enacted does make a difference in how much gold is obtained by the mission. My next commit will have trade units going back to city of origin instead.
The way the unit returns to capital is via a flag somewhere just like the for the Spy. I don't know where that is. It will cause problem for merchant ships if the capital is land locked.
There is a mod that returns any using this flag/tag to the nearest city it can travel to but none from place it was built. As far as I know there is no information held on the unit to identify where it was built. It would be quite useful if there was.
Having the merchant return to where it was built is fairly useless as a model since historically and in game most ships are built in your navel yards. If you could set the home port on a merchant ship then it would be useful.
Also I thought we were going to make the merchant ships traverse rather than teleport to make piracy better,