Kailric
Jack of All Trades
Here is the upload with my latest changes.
Fishing works like I explained above. You have to have a City set to Import food and another to Export food in order for the Whaler to unload at a city that imports food. If not it will just unload at nearest city. In my testing if a single city had both Import and Export food for some reason the Whaler sailed to Europe first. Then when you send it back it then goes to the Import food city.
I will have to go through the Trade Routes code and find out exactly what is going on there, but what I want the Whaler to do is go to the nearest City that imports Food regardless of wither there is a city that Exports food. I'll have that in the next update hopefully.
In this upload the Whaler will give you three red warning text if he can't fish. A check for the Bonus, a check for if another Whaler is present, and also a check for if the Unit is Completely full. The last one I just finished coding and it checks the Whaler for room to carry more Food. If a Whaler has a food unit already in its cargo it does a check to see how much yield is actually in that Food Unit and if there is room for more Food then it will allow the Whaler to fish.
I also added help text so when you mouse over a unit that is whaling it tells you what its doing and how much Food per turn it brings in, much like a Pioneer when he works.
Fishing works like I explained above. You have to have a City set to Import food and another to Export food in order for the Whaler to unload at a city that imports food. If not it will just unload at nearest city. In my testing if a single city had both Import and Export food for some reason the Whaler sailed to Europe first. Then when you send it back it then goes to the Import food city.
I will have to go through the Trade Routes code and find out exactly what is going on there, but what I want the Whaler to do is go to the nearest City that imports Food regardless of wither there is a city that Exports food. I'll have that in the next update hopefully.
In this upload the Whaler will give you three red warning text if he can't fish. A check for the Bonus, a check for if another Whaler is present, and also a check for if the Unit is Completely full. The last one I just finished coding and it checks the Whaler for room to carry more Food. If a Whaler has a food unit already in its cargo it does a check to see how much yield is actually in that Food Unit and if there is room for more Food then it will allow the Whaler to fish.
I also added help text so when you mouse over a unit that is whaling it tells you what its doing and how much Food per turn it brings in, much like a Pioneer when he works.