Make voyages active with dockside orders, crew calls, and ship PA
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user