We-the-People-civ4col-mod / Mod

This is the repository where the mod resides.
84 stars 36 forks source link

Coastal ships can spawn in Europe #993

Open Nightinggale opened 4 months ago

Nightinggale commented 4 months ago

Forum post

Looks like if event or FF spawns a coastal ship (in this case Ivan Aleksandrovich Kuskov) and all harbors are full or none exist, then the fallback code will make the ship spawn in Europe. This is intended in general, but obviously not intended for ships, which can't move from Europe to the colonies.

Not sure what to do about this. We could violate the harbor limit, but then we won't fix the case where this happens while the player has no coastal colonies.

Razonatair commented 4 months ago

Could check if there are any valid plots to spawn the ship on outside any coastal colonies. If there aren't any coastal colonies, might have to go with just picking the nearest coast plot that has a valid path to a sealane.