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

@@ -178,6 +178,7 @@ namespace BigShipTycoon
Coat(side > 0 ? Paint.StarboardLight : Paint.PortLight).Box(wing + Vector3.forward * (side * 1.13f),
new Vector3(.26f, .14f, .055f));
}
BuildObservationArches(bridge, halfWidth, y);
Vector3 mast = new Vector3(bridge + 2.18f, y + 4.79f, 0);
Coat(Paint.Pearl).Rod(mast, mast + new Vector3(-.21f, 1.03f, 0), .10f, 8);
Coat(Paint.Steel).Rod(mast + new Vector3(-.13f, .65f, -1.24f),
@@ -185,6 +186,32 @@ namespace BigShipTycoon
Coat(Paint.LitGlass).Radome(mast + new Vector3(-.21f, 1.05f, 0), .115f);
}
private void BuildObservationArches(float bridge, float halfWidth, float y)
{
const int segments = 18;
for (int step = 1; step <= segments; step++)
{
Vector3 left = Point(step, -1), right = Point(step, 1);
Vector3 oldLeft = Point(step - 1, -1), oldRight = Point(step - 1, 1);
Coat(Paint.Pearl).Rod(oldLeft, left, .28f, 8, true);
Coat(Paint.Pearl).Rod(oldRight, right, .28f, 8, true);
if (step is > 2 and < segments - 1)
{
Coat(Paint.FritGlass).Quad(oldRight, oldLeft, left, right);
Coat(Paint.FritGlass).Quad(oldLeft, oldRight, right, left);
Coat(Paint.Steel).Rod(left, right, .095f, 6);
}
}
Vector3 Point(int step, int side)
{
float span = Mathf.Lerp(-1, 1, step / (float)segments);
float rise = Mathf.Cos(span * Mathf.PI * .5f);
return new Vector3(bridge + side * (4.65f - 1.45f * rise),
y + 2.78f + 6.58f * rise, span * halfWidth * .55f);
}
}
private void BuildMegaFunnelPavilion(float x, float halfWidth, float y)
{
Vector2 center = new Vector2(x, 0);