Add riverboat captain career and distinct ship classes

Add class-specific vessel geometry and sea motion, a guided helm qualification path, dockside sailing orders, and local excursions at all 24 ports.
This commit is contained in:
josh
2026-11-29 20:41:00 -05:00
parent 46624bf5ba
commit 290e4cb45d
67 changed files with 1783 additions and 301 deletions

View File

@@ -83,8 +83,9 @@ namespace BigShipTycoon
PortSpec port = Market.Ports[destination];
if (!Permits[destination])
return $"Acquire the permit for {port.Name} first.";
if (ship.HullIndex < port.MinimumHull)
return $"{port.Name} requires a {Market.Hulls[port.MinimumHull].Name} hull.";
if (!Market.CanVisit(ship.HullIndex, destination))
return ship.HullIndex == Market.River ? "Choose a port on the local river chart."
: $"{port.Name} requires a {Market.Hulls[port.MinimumHull].Name} hull.";
var (burn, reserve) = LegFuel(ship, miles);
if (burn + reserve > ship.Tank)
return $"This leg needs {burn + reserve} t including reserve. Fit a larger fuel tank first.";
@@ -108,7 +109,7 @@ namespace BigShipTycoon
int origin = itinerary.Origin;
foreach (int port in itinerary.Stops)
{
if (port < 0 || port >= Market.Ports.Count || !Market.TryDistance(origin, port, out _))
if ((uint)port >= (uint)Market.Ports.Count || !Market.CanVisit(ship.HullIndex, port) || !Market.TryDistance(origin, port, out _))
return false;
origin = port;
}