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

@@ -13,13 +13,13 @@ namespace BigShipTycoon
public readonly int DailyWage;
private readonly int[] complement;
internal CrewRoleSpec(CrewRole role, string name, string description, int dailyWage, int coastal, int regional, int ocean, int mega)
internal CrewRoleSpec(CrewRole role, string name, string description, int dailyWage, int coastal, int regional, int ocean, int mega, int river)
{
Role = role;
Name = name;
Description = description;
DailyWage = dailyWage;
complement = new[] { coastal, regional, ocean, mega };
complement = new[] { coastal, regional, ocean, mega, river };
}
internal int StarterCount(int hull) => complement[hull];
@@ -31,20 +31,20 @@ namespace BigShipTycoon
public static readonly IReadOnlyList<CrewRoleSpec> Roles = new[]
{
new CrewRoleSpec(CrewRole.Bridge, "Bridge officers", "Stand navigation watches and keep crossings on schedule.", 350, 4, 6, 10, 13),
new CrewRoleSpec(CrewRole.Engineering, "Engineering", "Keep propulsion, water and treatment systems running.", 220, 8, 14, 24, 36),
new CrewRoleSpec(CrewRole.Galley, "Galley crew", "Cook meals and staff the galley during busy seatings.", 155, 12, 21, 36, 65),
new CrewRoleSpec(CrewRole.Housekeeping, "Hotel services", "Turn over cabins and serve guests at bars, shops and amenities.", 130, 14, 24, 44, 84),
new CrewRoleSpec(CrewRole.Laundry, "Laundry crew", "Wash cabin linen and towels using the ship’s freshwater supply.", 115, 5, 9, 18, 36),
new CrewRoleSpec(CrewRole.Entertainment, "Entertainment", "Run the ship’s shows and guest programming.", 140, 4, 7, 16, 33)
new CrewRoleSpec(CrewRole.Bridge, "Bridge officers", "Stand navigation watches and keep crossings on schedule.", 350, 4, 6, 10, 13, 1),
new CrewRoleSpec(CrewRole.Engineering, "Engineering", "Keep propulsion, water and treatment systems running.", 220, 8, 14, 24, 36, 2),
new CrewRoleSpec(CrewRole.Galley, "Galley crew", "Cook meals and staff the galley during busy seatings.", 155, 12, 21, 36, 65, 2),
new CrewRoleSpec(CrewRole.Housekeeping, "Hotel services", "Turn over cabins and serve guests at bars, shops and amenities.", 130, 14, 24, 44, 84, 2),
new CrewRoleSpec(CrewRole.Laundry, "Laundry crew", "Wash cabin linen and towels using the ship’s freshwater supply.", 115, 5, 9, 18, 36, 1),
new CrewRoleSpec(CrewRole.Entertainment, "Entertainment", "Run the ship’s shows and guest programming.", 140, 4, 7, 16, 33, 1)
};
internal static bool IsRole(CrewRole role) => (uint)role < (uint)Roles.Count;
public static int Minimum(Ship ship, CrewRole role) => role switch
{
CrewRole.Bridge => ship.HullIndex == Market.Mega ? 9 : 2 + ship.HullIndex,
CrewRole.Engineering => ship.HullIndex == Market.Mega ? 15 : 4 + 2 * ship.HullIndex,
CrewRole.Bridge => ship.HullIndex == Market.River ? 1 : ship.HullIndex == Market.Mega ? 9 : 2 + ship.HullIndex,
CrewRole.Engineering => ship.HullIndex == Market.River ? 1 : ship.HullIndex == Market.Mega ? 15 : 4 + 2 * ship.HullIndex,
_ => 0
};
@@ -59,7 +59,8 @@ namespace BigShipTycoon
CrewRole.Engineering => extraDecks * 2 + ship.Count(Facility.Workshop) + ship.Count(Facility.EngineeringCenter) * 3,
CrewRole.Galley => extraDecks + ship.Count(Facility.Galley) * 2 + ship.Count(Facility.ProductionGalley) * 5,
CrewRole.Housekeeping => extraDecks * 2 + ship.SuiteBerths / 60,
CrewRole.Laundry => extraDecks + ship.Beds / (100 + 75 * ship.HullIndex) + ship.Count(Facility.LaundryPlant) * 4,
CrewRole.Laundry => extraDecks + ship.Beds / (ship.HullIndex == Market.River ? 45 : 100 + 75 * ship.HullIndex)
+ ship.Count(Facility.LaundryPlant) * 4,
CrewRole.Entertainment => ship.Entertainment / 190,
_ => 0
};