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:
@@ -8,6 +8,7 @@ namespace BigShipTycoon
|
||||
private static readonly string[] HelmOrders = { "Stop", "Economy", "Cruise", "Power" };
|
||||
private readonly Button[] helmOrderButtons = new Button[HelmOrders.Length];
|
||||
private Label helmReadout;
|
||||
private Label helmPracticeReadout;
|
||||
private float courseBearing;
|
||||
|
||||
private int HelmOrder => passageHelm.PropulsionStopped ? -1 : livePassage.EngineMode;
|
||||
@@ -15,6 +16,7 @@ namespace BigShipTycoon
|
||||
private void DrawHelmControls(VisualElement overlay)
|
||||
{
|
||||
helmReadout = null;
|
||||
helmPracticeReadout = null;
|
||||
if (!passageBridge && !passageHelm.Manual)
|
||||
return;
|
||||
|
||||
@@ -33,6 +35,8 @@ namespace BigShipTycoon
|
||||
}
|
||||
AddText(station, "A / D rudder · W / S throttle", "helm-help");
|
||||
}
|
||||
if (company.IsCaptainCareer)
|
||||
helmPracticeReadout = AddText(station, "", "helm-practice-readout");
|
||||
station.Add(Action(passageHelm.Manual ? "Return to autopilot H" : "Take the helm H", ToggleHelm,
|
||||
"helm-toggle", "helm-toggle"));
|
||||
UpdateHelmControls();
|
||||
@@ -43,7 +47,14 @@ namespace BigShipTycoon
|
||||
if (passageHelm.Manual)
|
||||
ReleaseHelm();
|
||||
else if (passageBridge)
|
||||
{
|
||||
passageHelm.Manual = true;
|
||||
if (company.IsCaptainCareer && passageSpeed != 1)
|
||||
{
|
||||
SetPassageSpeed(1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
Render();
|
||||
}
|
||||
|
||||
@@ -60,6 +71,8 @@ namespace BigShipTycoon
|
||||
passageHelm.PropulsionStopped = order == -1;
|
||||
if (order >= 0)
|
||||
livePassage.SetEngineMode(order);
|
||||
if (order == 0 && company.IsCaptainCareer)
|
||||
passageHelm.Practice.OrderEconomy(passageHelm);
|
||||
UpdateHelmControls();
|
||||
}
|
||||
|
||||
@@ -70,7 +83,11 @@ namespace BigShipTycoon
|
||||
int heading = Mathf.RoundToInt(Mathf.Repeat(courseBearing + passageHelm.Heading, 360)) % 360;
|
||||
int rudder = Mathf.RoundToInt(passageHelm.Rudder);
|
||||
string rudderText = rudder == 0 ? "Centered" : $"{Mathf.Abs(rudder)}° {(rudder < 0 ? "Port" : "Stbd")}";
|
||||
SetPassageText(helmReadout, $"{heading:000}° true · {passageHelm.Speed:0.0} kn\nRudder {rudderText}");
|
||||
string channel = passageHelm.AtChannelEdge ? "\nShallow water · steer back toward the channel" : "";
|
||||
SetPassageText(helmReadout, $"{heading:000}° true · {passageHelm.Speed:0.0} kn\nRudder {rudderText}{channel}");
|
||||
if (helmPracticeReadout != null)
|
||||
SetPassageText(helmPracticeReadout, passageHelm.Manual || passageHelm.Practice.Qualified
|
||||
? passageHelm.Practice.Instruction(passageHelm, courseBearing) : "Take the helm to work through the check for this class.");
|
||||
if (!passageHelm.Manual)
|
||||
return;
|
||||
for (int i = 0; i < helmOrderButtons.Length; i++)
|
||||
|
||||
Reference in New Issue
Block a user