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:
@@ -12,6 +12,7 @@ namespace BigShipTycoon
|
||||
|
||||
private const int StarterCabinModules = 4;
|
||||
private static int StarterBerths => StarterCabinModules * Market.Facilities[(int)Facility.Cabin].Capacity;
|
||||
private static int GuideBerths(Ship ship) => ship.HullIndex == Market.River ? Market.Facilities[(int)Facility.Cabin].Capacity : StarterBerths;
|
||||
private GuideStep guideContext;
|
||||
private Ship guideFareShip;
|
||||
private int guideInitialFare;
|
||||
@@ -70,13 +71,13 @@ namespace BigShipTycoon
|
||||
return GuideStep.Review;
|
||||
if (ship == null)
|
||||
return GuideStep.GetShip;
|
||||
if (ship.Beds < StarterBerths)
|
||||
if (ship.Beds < GuideBerths(ship))
|
||||
return GuideStep.Cabins;
|
||||
if (ship.Meals < StarterBerths)
|
||||
if (ship.Meals < GuideBerths(ship))
|
||||
return GuideStep.Dining;
|
||||
|
||||
Voyage quote = page == 3 ? company.Forecast(ship, inspectedPort) : null;
|
||||
if (quote == null || !company.Permits[quote.Destination] || ship.HullIndex < Market.Ports[quote.Destination].MinimumHull)
|
||||
if (quote == null || !company.Permits[quote.Destination] || !Market.CanVisit(ship.HullIndex, quote.Destination))
|
||||
return GuideStep.SetCourse;
|
||||
if (ship.Fuel < quote.RequiredFuel)
|
||||
return GuideStep.Bunker;
|
||||
@@ -125,9 +126,9 @@ namespace BigShipTycoon
|
||||
return ("Register your first ship", "Choose a hull you can afford and sign the commission or purchase.", "buy-ship");
|
||||
|
||||
case GuideStep.Cabins:
|
||||
return GuideFacility(Facility.Cabin, $"Outfit passenger cabins · {Ship.Beds}/{StarterBerths} berths");
|
||||
return GuideFacility(Facility.Cabin, $"Outfit passenger cabins · {Ship.Beds}/{GuideBerths(Ship)} berths");
|
||||
case GuideStep.Dining:
|
||||
return GuideFacility(Facility.Dining, $"Fit dining for {StarterBerths} guests");
|
||||
return GuideFacility(Facility.Dining, $"Fit dining for {GuideBerths(Ship)} guests");
|
||||
|
||||
case GuideStep.Bunker:
|
||||
Voyage crossing = company.Forecast(Ship, inspectedPort);
|
||||
@@ -146,7 +147,9 @@ namespace BigShipTycoon
|
||||
string blocker = company.DepartureBlock(Ship, departure);
|
||||
if (blocker != null)
|
||||
return ("Clear departure", blocker, null);
|
||||
return ("Clear departure", "Choose Cast off. Watch the crossing or skip to arrival.", "dispatch");
|
||||
return company.IsCaptainCareer
|
||||
? ("Clear departure", "Choose Cast off, then open the bridge to try your first helm check.", "dispatch")
|
||||
: ("Clear departure", "Choose Cast off. Watch the crossing or skip to arrival.", "dispatch");
|
||||
|
||||
case GuideStep.Review:
|
||||
if (page != 4)
|
||||
@@ -158,6 +161,10 @@ namespace BigShipTycoon
|
||||
case GuideStep.AtSea:
|
||||
if (passageServiceArea >= 0)
|
||||
return ("Work the service deck", "Walk up to the equipment and press F when the station prompt appears. You can switch operating modes here.", "service-assist");
|
||||
if (company.IsCaptainCareer && !passageHelm.Practice.Qualified && !passageExploring)
|
||||
return passageBridge
|
||||
? ("Practise at the helm", "Use the heading and rudder readouts to complete the bridge check.", passageHelm.Manual ? null : "helm-toggle")
|
||||
: ("Start your helm check", "Open the bridge and take the helm to log a qualification for this class.", "passage-bridge");
|
||||
if (passageBridge)
|
||||
return ("Navigate from the bridge", "Face the wheel and press F to take the helm. Return to autopilot to walk around again.", "helm-toggle");
|
||||
if (passageExploring)
|
||||
@@ -200,11 +207,11 @@ namespace BigShipTycoon
|
||||
foreach (Lane lane in Market.Lanes)
|
||||
{
|
||||
int next = lane.Other(Ship.Port);
|
||||
if (next < 0 || !company.Permits[next] || Ship.HullIndex < Market.Ports[next].MinimumHull)
|
||||
if (next < 0 || !company.Permits[next] || !Market.CanVisit(Ship.HullIndex, next))
|
||||
continue;
|
||||
|
||||
string port = Market.Ports[next].Name;
|
||||
if (!worldChart && next >= Market.StarterPortCount)
|
||||
if (!RiverChart && !worldChart && next >= Market.StarterPortCount)
|
||||
return (heading, $"Switch to World and select {port} to review that sailing.", "chart-world");
|
||||
return (heading, $"Select {port}, an open port linked to your current berth.", $"port-{next}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user