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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user