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

@@ -8,6 +8,7 @@ namespace Soundings
public sealed class OnboardReport
{
public int Happiness, Health, Revenue, Expenses, Decisions, FuelBurn, Repair, Provisions, WaterPercent, SewagePercent, CrewCalls;
public int LaundryCleaned, LaundryBacklog;
public int[] ServiceSales;
}
@@ -204,6 +205,8 @@ namespace Soundings
Provisions = ProvisionsRemaining,
WaterPercent = WaterPercent,
SewagePercent = SewagePercent,
LaundryCleaned = LaundryCleaned,
LaundryBacklog = LaundryBacklog,
Revenue = Revenue,
Expenses = Expenses,
Decisions = decisions,
@@ -231,7 +234,7 @@ namespace Soundings
double indoorShift = Quote.Weather == WeatherCondition.Storm && (i == 2 || i == 3 || retail) ? 1.28 : 1;
int requested = Math.Min(Quote.Guests, rush + (int)Math.Round(Quote.Guests * BaseDemand[i] * appeal * wave * indoorShift));
int extraSeats = performance ? PortPlanning.ShowSeats(BookedProgram) : 0;
int possible = ServiceCapacity(i, capacity[i] + extraSeats + (featured ? additionalCapacity : 0) + CrewServiceBoost(i));
int possible = ServiceCapacity(i, capacity[i] + (featured ? additionalCapacity : 0) + CrewServiceBoost(i)) + extraSeats;
int served = Math.Min(requested, possible);
if (collect)
@@ -261,7 +264,10 @@ namespace Soundings
if (collect)
{
UpdateHealth(mealFulfillment);
double target = Math.Min(100, 40 + 55 * fulfillment / serviceCount - (100 - health) * .28 + CrewSurveyBonus);
double cabinService = (Coverage(CrewRole.Housekeeping) - 1) * 8;
double showService = capacity[(int)OnboardService.Shows] > 0 ? Math.Max(0, Coverage(CrewRole.Entertainment) - 1) * 6 : 0;
double target = Math.Clamp(40 + 55 * fulfillment / serviceCount - (100 - health) * .28
+ CrewSurveyBonus + cabinService + showService - LaundryServiceLoss * 8, 0, 100);
satisfaction = satisfaction * .77 + target * .23;
}
}