Make voyages active with dockside orders, crew calls, and ship PA

This commit is contained in:
josh
2026-11-27 23:14:38 -05:00
parent 7951e1c878
commit cc7620c431
71 changed files with 2723 additions and 233 deletions

View File

@@ -54,8 +54,10 @@ namespace Soundings
TicketSales, OnboardSales, Crew, Catering, PortFees, FuelExpense, LoanInterest, Principal, ReputationChange;
public string ShipName;
public OnboardReport Onboard;
public DeparturePlan Plan;
public WeatherCondition Weather;
public int OperatingCash => Crew + Catering + PortFees + (Onboard?.Expenses ?? 0);
public int OperatingCash => Crew + Catering + PortFees + (Plan == null ? 0 : Plan.FoodCost + Plan.ProgramCost)
+ (Onboard?.Expenses ?? 0);
public int NetIncome => TicketSales + OnboardSales - OperatingCash - FuelExpense - LoanInterest;
public int CashChange => TicketSales + OnboardSales - OperatingCash - LoanInterest - Principal;
public int RequiredFuel => FuelBurn + Reserve;
@@ -384,7 +386,8 @@ namespace Soundings
if (quote.Guests <= 0)
return "Raise demand or lower the fare to attract passengers.";
if (Cash < quote.OperatingCash + quote.LoanInterest + quote.Principal)
return "Cash must cover the voyage expenses and loan payment.";
return quote.Plan == null ? "Cash must cover the voyage expenses and loan payment."
: "Cash must cover port orders, voyage expenses and the loan payment.";
return null;
}