Rebrand as Big Ship Tycoon and add crew operations

This commit is contained in:
josh
2026-11-28 17:49:48 -05:00
parent a54f66cec9
commit 2c85a5ba00
68 changed files with 1642 additions and 98 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.Retail + 1];
private readonly int[] stationReadyAt = new int[(int)StationKind.Laundry + 1];
private readonly int[] stationBoostUntil = new int[ServiceKinds];
private int nextCrewCall, crewCallDeadline;
@@ -28,6 +28,7 @@ namespace Soundings
StationKind.Bar => "Bar counter",
StationKind.Stage => "Show lounge",
StationKind.Retail => "Shop checkout",
StationKind.Laundry => "Laundry control",
_ => "Pool terrace"
};
@@ -45,6 +46,7 @@ namespace Soundings
StationKind.Stage => CanAdvancePerformance ? "Call the booked act" : "Open overflow seating",
StationKind.Pool => "Host a poolside game",
StationKind.Retail => "Start a shop sale · 25% off",
StationKind.Laundry => $"Authorize an extra laundry shift · ${LaundryShiftCost:N0}",
_ => "Take the helm"
};
@@ -57,6 +59,7 @@ namespace Soundings
return station switch
{
StationKind.Galley or StationKind.Dining when GalleyBoost => "The extra shift is already running",
StationKind.Galley or StationKind.Dining when AssignedCrew(CrewRole.Galley) == 0 => "No galley crew is assigned",
StationKind.Galley or StationKind.Dining when !CanSpend(GalleyCost) => "No room in the operating budget",
StationKind.Dining when ProvisionsRemaining < 12 => "Too little food in stores for another seating",
StationKind.Stores when StoresOpened => "The reserve has already been released",
@@ -74,6 +77,9 @@ namespace Soundings
StationKind.Stage when capacity[(int)OnboardService.Shows] == 0 => "No show lounge is fitted",
StationKind.Pool when Quote.Weather == WeatherCondition.Storm => "The terrace is closed in this weather",
StationKind.Pool when WaterPercent < 22 => "Freshwater is too low for pool operation",
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",
_ => null
};
}
@@ -100,6 +106,7 @@ namespace Soundings
break;
case StationKind.Pool: stationBoostUntil[(int)OnboardService.Amenities] = tick + 6; break;
case StationKind.Retail: StartSpecial(OnboardService.Retail); break;
case StationKind.Laundry: ExtendLaundry(); break;
}
stationReadyAt[(int)station] = tick + (station == StationKind.Engine ? 1 : 8);
@@ -128,6 +135,7 @@ namespace Soundings
StationKind.Bar => "Happy hour started · Drinks are 25% off",
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",
_ => "Poolside game started · More terrace capacity"
};
@@ -159,6 +167,8 @@ namespace Soundings
station = StationKind.Water;
else if (SewagePercent > 68)
station = StationKind.Waste;
else if (LaundryBacklog >= LaundryDemand / 2 && CanExtendLaundry)
station = StationKind.Laundry;
else
station = capacity[(int)OnboardService.Drinks] > 0 ? StationKind.Bar : StationKind.Maintenance;
break;