Fix port cinematics and expand ship attractions

This commit is contained in:
josh
2026-11-28 18:39:32 -05:00
parent 2c85a5ba00
commit 56fafba6d9
37 changed files with 936 additions and 101 deletions

View File

@@ -5,7 +5,7 @@ namespace Soundings
public sealed partial class OnboardSession
{
private static readonly float[] CrewCallSchedule = { .12f, .43f, .71f };
private readonly int[] stationReadyAt = new int[(int)StationKind.Laundry + 1];
private readonly int[] stationReadyAt = new int[(int)StationKind.Casino + 1];
private readonly int[] stationBoostUntil = new int[ServiceKinds];
private int nextCrewCall, crewCallDeadline;
@@ -29,6 +29,7 @@ namespace Soundings
StationKind.Stage => "Show lounge",
StationKind.Retail => "Shop checkout",
StationKind.Laundry => "Laundry control",
StationKind.Casino => "Casino cashier",
_ => "Pool terrace"
};
@@ -47,6 +48,7 @@ namespace Soundings
StationKind.Pool => "Host a poolside game",
StationKind.Retail => "Start a shop sale · 25% off",
StationKind.Laundry => $"Authorize an extra laundry shift · ${LaundryShiftCost:N0}",
StationKind.Casino => "Start low-stakes hour · 25% lower stakes",
_ => "Take the helm"
};
@@ -80,6 +82,9 @@ namespace Soundings
StationKind.Laundry when AssignedCrew(CrewRole.Laundry) == 0 => "No laundry crew is assigned",
StationKind.Laundry when LaundryBoost => "The extra shift is already running",
StationKind.Laundry when !CanExtendLaundry => "No room in the operating budget",
StationKind.Casino when DiscountTicks(OnboardService.Casino) > 0 => "Low-stakes hour is already underway",
StationKind.Casino when Get(OnboardService.Casino).Capacity == 0 => "No casino tables are staffed",
StationKind.Casino when GetPrice(OnboardService.Casino) == 0 => "Set a table stake before starting a special",
_ => null
};
}
@@ -107,6 +112,7 @@ namespace Soundings
case StationKind.Pool: stationBoostUntil[(int)OnboardService.Amenities] = tick + 6; break;
case StationKind.Retail: StartSpecial(OnboardService.Retail); break;
case StationKind.Laundry: ExtendLaundry(); break;
case StationKind.Casino: StartSpecial(OnboardService.Casino); break;
}
stationReadyAt[(int)station] = tick + (station == StationKind.Engine ? 1 : 8);
@@ -136,6 +142,7 @@ namespace Soundings
StationKind.Stage => "Show lounge ready for guests",
StationKind.Retail => "Shop sale started · Merchandise is 25% off",
StationKind.Laundry => "Extra laundry shift running · More linen loads per day",
StationKind.Casino => "Low-stakes hour is underway",
_ => "Poolside game started · More terrace capacity"
};