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

@@ -132,14 +132,17 @@ namespace BigShipTycoon
public static class Market
{
public const int StarterPortCount = 8;
public static int UsedPrice(int hull) => hull == 0 ? 105000 : 245000;
public static int UsedPrice(int hull) => hull switch { River => 54000, Coastal => 105000, _ => 245000 };
public const int MaxFleet = 8;
public const int Coastal = 0;
public const int Regional = 1;
public const int Ocean = 2;
public const int Mega = 3;
public const int River = 4;
public const int Bermuda = 5;
public const int Lisbon = 7;
public const int Brickell = 22;
public const int Mangrove = 23;
public const int MinFare = 150;
public const int MaxFare = 4000;
@@ -214,7 +217,9 @@ namespace BigShipTycoon
new HullSpec("Regional", "More deck space and range for island chains.", 8, 3, 4, 5, 355000, 3, 24, 185, .121, 12800, 2300, 104, 19),
new HullSpec("Ocean Class", "A transatlantic hull for a world-class flagship.", 10, 3, 6, 8, 690000, 9, 42, 440, .152, 21800, 4700, 142, 25),
new HullSpec("MEGA Ocean Liner", "A 300-meter flagship with split outdoor decks and space for full-scale venues and utilities.",
16, 4, 12, 15, 2350000, 18, 65, 1160, .255, 42200, 12800, 300, 48)
16, 4, 12, 15, 2350000, 18, 65, 1160, .255, 42200, 12800, 300, 48),
new HullSpec("Riverboat", "A shallow-draft passenger boat for local Miami River trips.", 4, 2, 1, 2,
78000, 0, 0, 18, .041, 1650, 420, 32, 8)
};
public static readonly IReadOnlyList<PortSpec> Ports = new[]
@@ -240,7 +245,9 @@ namespace BigShipTycoon
new PortSpec("San Diego", "United States", "Pacific Coast", 718, 15300, 51000, 58, 2, 1.35, 1.21, 0, 0, -117.2f, 32.7f),
new PortSpec("Puerto Vallarta", "Mexico", "Pacific Coast", 606, 11900, 36000, 58, 2, 1.29, 1.03, 0, 0, -105.2f, 20.7f),
new PortSpec("Balboa", "Panama", "Central America", 635, 22700, 43000, 58, 2, 1.26, 1.07, 0, 0, -79.6f, 8.9f),
new PortSpec("Cartagena", "Colombia", "South America", 599, 14600, 45000, 58, 2, 1.35, 1.12, 0, 0, -75.5f, 10.4f)
new PortSpec("Cartagena", "Colombia", "South America", 599, 14600, 45000, 58, 2, 1.35, 1.12, 0, 0, -75.5f, 10.4f),
new PortSpec("Brickell Landing", "United States", "Miami River", 648, 240, 0, 0, River, .89, .72, 0, 0, -80.216f, 25.773f),
new PortSpec("Mangrove Landing", "United States", "Miami River", 619, 310, 0, 0, River, 1.04, .58, 0, 0, -80.302f, 25.754f)
};
public static readonly IReadOnlyList<Lane> Lanes = new[]
@@ -251,9 +258,26 @@ namespace BigShipTycoon
new Lane(6, 7, 815), new Lane(7, 8, 605), new Lane(8, 9, 1630), new Lane(9, 10, 1645),
new Lane(10, 11, 1160), new Lane(11, 12, 2510), new Lane(12, 13, 920), new Lane(13, 14, 2540),
new Lane(14, 15, 1165), new Lane(15, 16, 2250), new Lane(16, 17, 2380), new Lane(17, 18, 2270),
new Lane(18, 19, 1110), new Lane(19, 20, 1585), new Lane(20, 21, 265), new Lane(21, 0, 1080)
new Lane(18, 19, 1110), new Lane(19, 20, 1585), new Lane(20, 21, 265), new Lane(21, 0, 1080),
new Lane(0, Brickell, 4), new Lane(0, Mangrove, 11), new Lane(Brickell, Mangrove, 8)
};
public static int HullRank(int index) => index switch { River => 0, >= Coastal and <= Mega => index + 1, _ => -1 };
public static bool MeetsHullRequirement(int index, int minimum) => HullRank(index) >= 0
&& (minimum == Coastal || HullRank(index) >= HullRank(minimum));
public static bool IsRiverPort(int port) => port is Brickell or Mangrove;
public static bool CanVisit(int hullIndex, int port)
{
if ((uint)port >= (uint)Ports.Count || HullRank(hullIndex) < 0)
return false;
if (hullIndex == River)
return port == 0 || IsRiverPort(port);
return !IsRiverPort(port) && MeetsHullRequirement(hullIndex, Ports[port].MinimumHull);
}
public static int FuelPrice(int port, int day)
{
int weeklyMove = ((day / 7 * 13 + port * 9) % 31) - 15;