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

@@ -114,17 +114,21 @@ namespace BigShipTycoon
internal int OutdoorAmenityCapacity => sunDeckPlan.AddedAmenities + (HasAftTerrace ? aftSunDeckPlan.AddedAmenities : 0);
internal int OutdoorShowCapacity => sunDeckPlan.AddedShows + (HasAftTerrace ? aftSunDeckPlan.AddedShows : 0);
internal int SunDeckPlanCode => HasAftTerrace ? unchecked(sunDeckPlan.Code * 109 + aftSunDeckPlan.Code) : sunDeckPlan.Code;
internal bool HasValidSunDeckPlan => sunDeckPlan.ValidOptions(HullIndex)
&& (!HasAftTerrace || SunDeckFor(SunDeckZone.AftTerrace).ValidOptions(HullIndex)) && SunDecksFitAt(Decks.Count);
internal bool HasValidSunDeckPlan => HullIndex == Market.River ? sunDeckPlan.Code == 0 && aftSunDeckPlan.Code == 0
: sunDeckPlan.ValidOptions(HullIndex)
&& (!HasAftTerrace || SunDeckFor(SunDeckZone.AftTerrace).ValidOptions(HullIndex)) && SunDecksFitAt(Decks.Count);
public SunDeckPlan SunDeckFor(SunDeckZone zone)
{
if (HullIndex == Market.River)
return new SunDeckPlan { CustomLayout = true, Pool = SunPoolStyle.Compact, Attraction = SunAttraction.None, NoShade = true };
SunDeckPlan stored = zone == SunDeckZone.AftTerrace ? aftSunDeckPlan : sunDeckPlan;
return stored.CustomLayout || !HasAftTerrace ? stored
: new SunDeckPlan { CustomLayout = true, Pool = SunPoolStyle.Compact, Attraction = SunAttraction.None };
}
internal bool SupportsSunDeck(SunDeckZone zone) => zone == SunDeckZone.Sky || zone == SunDeckZone.AftTerrace && HasAftTerrace;
internal bool SupportsSunDeck(SunDeckZone zone) => HullIndex != Market.River
&& (zone == SunDeckZone.Sky || zone == SunDeckZone.AftTerrace && HasAftTerrace);
internal bool SunDecksFitAt(int count) => (!sunDeckPlan.CustomLayout || new SunDeckGrid(this, count).Valid(sunDeckPlan))
&& (!HasAftTerrace || new SunDeckGrid(this, count, SunDeckZone.AftTerrace).Valid(SunDeckFor(SunDeckZone.AftTerrace)));
@@ -161,6 +165,8 @@ namespace BigShipTycoon
{
if (ship == null || !Fleet.Contains(ship))
return "Choose a ship from your fleet.";
if (ship.HullIndex == Market.River)
return "Riverboats have fixed roofs. Build deck attractions on Coastal ships and larger.";
if (!ship.SupportsSunDeck(zone))
return "The split aft terrace requires a MEGA Ocean Liner.";
if (!next.ValidOptions(ship.HullIndex))
@@ -200,6 +206,8 @@ namespace BigShipTycoon
{
if (ship == null || !Fleet.Contains(ship))
return "Choose a ship from your fleet.";
if (ship.HullIndex == Market.River)
return "Riverboats have fixed roofs. Build deck attractions on Coastal ships and larger.";
if (!ship.SupportsSunDeck(zone))
return "The split aft terrace requires a MEGA Ocean Liner.";
var grid = new SunDeckGrid(ship, zone: zone);