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:
@@ -121,6 +121,8 @@ namespace BigShipTycoon
|
||||
rudder = ReadNavigationControls();
|
||||
|
||||
passageHelm.Advance(delta * passageSpeed, rudder, livePassage.SpeedFactor, underway.Weather);
|
||||
if (company.IsCaptainCareer && !fleetOpen && !ShorePlanningOpen && !crewManifestOpen && !voyageMapOpen)
|
||||
passageHelm.Practice.Advance(passageHelm, delta, rudder);
|
||||
float progress = passageHelm.Progress;
|
||||
UpdatePortApproach();
|
||||
bool performanceWasActive = livePassage.PerformanceActive;
|
||||
@@ -256,7 +258,8 @@ namespace BigShipTycoon
|
||||
private static float PassageDuration(Voyage voyage)
|
||||
{
|
||||
float weather = voyage.Weather switch { WeatherCondition.Swell => 1.14f, WeatherCondition.Storm => 1.32f, _ => 1 };
|
||||
return Mathf.Clamp((135f + voyage.Miles * .18f + voyage.Days * 8f) * weather, 175f, 540f);
|
||||
return voyage.Miles <= 30 ? Mathf.Clamp((76f + voyage.Miles * 1.5f) * weather, 78f, 135f)
|
||||
: Mathf.Clamp((135f + voyage.Miles * .18f + voyage.Days * 8f) * weather, 175f, 540f);
|
||||
}
|
||||
|
||||
private bool EditingText()
|
||||
@@ -279,7 +282,8 @@ namespace BigShipTycoon
|
||||
return;
|
||||
}
|
||||
|
||||
var passage = new FleetPassage(ship, quote, company.Voyages < 3 && ship.HullIndex == 0);
|
||||
bool assisted = ship.HullIndex == Market.River || company.Voyages < 3 && ship.HullIndex == Market.Coastal;
|
||||
var passage = new FleetPassage(ship, quote, assisted);
|
||||
ResetShorePlanning();
|
||||
fleetPassages.Add(ship, passage);
|
||||
UpdateVoyageReserves();
|
||||
@@ -375,6 +379,8 @@ namespace BigShipTycoon
|
||||
{
|
||||
if (underway == null || (speed != 1 && speed != 2 && speed != 4) || speed == passageSpeed)
|
||||
return;
|
||||
if (speed != 1 && company.IsCaptainCareer && passageHelm.Manual)
|
||||
return;
|
||||
passageSpeed = speed;
|
||||
if (fleetPassages.TryGetValue(Ship, out FleetPassage passage))
|
||||
passage.Speed = speed;
|
||||
@@ -387,6 +393,7 @@ namespace BigShipTycoon
|
||||
return;
|
||||
ResetShorePlanning();
|
||||
Voyage voyage = underway;
|
||||
bool helmQualified = company.IsCaptainCareer && passageHelm.Arrived && passageHelm.Practice.Qualified;
|
||||
string failure = SettleFleetPassage(Ship, livePassage);
|
||||
if (failure != null)
|
||||
{
|
||||
@@ -408,6 +415,8 @@ namespace BigShipTycoon
|
||||
arrival += Ship.Itinerary is { HasNext: true } itinerary
|
||||
? $" Next call is {Market.Ports[itinerary.NextPort].Name}."
|
||||
: " Itinerary complete.";
|
||||
if (helmQualified)
|
||||
arrival += " Helm qualification logged.";
|
||||
Notify(arrival);
|
||||
Save();
|
||||
if (fleetOpen)
|
||||
|
||||
Reference in New Issue
Block a user