Unlock expanded venues and manage concurrent fleet voyages

This commit is contained in:
josh
2026-11-28 15:36:55 -05:00
parent 636a0e2cf8
commit a9472edc35
33 changed files with 2094 additions and 363 deletions

View File

@@ -21,9 +21,11 @@ namespace Soundings
AddDisplay(settlement, Money(quote.NetIncome), quote.NetIncome >= 0 ? "chart-projected-profit" : "chart-projected-profit chart-projected-loss");
var fares = Add(folio, "chart-money-row");
AddText(fares, "Fare per guest", "chart-money-label");
AddText(fares, ship.SuiteBerths > 0 ? "Base fare per guest" : "Fare per guest", "chart-money-label");
ChartStepper(fares, Money(ship.Fare), "fare", () => ChangeFare(ship, -50), () => ChangeFare(ship, 50),
ship.Fare > Market.MinFare, ship.Fare < Market.MaxFare);
if (ship.SuiteBerths > 0)
ChartLine(folio, $"{quote.SuiteGuests:N0} / {ship.SuiteBerths:N0} suite berths booked", $"+{Money(quote.SuitePremium)}");
DrawPortOrdersLink(folio, quote.Plan);
DrawChartBunkering(folio, ship, quote);
@@ -66,7 +68,7 @@ namespace Soundings
SetRecommendedFuel();
Apply(failure, $"Loaded {ordered} t of fuel in {dock.Name}.");
}, "chart-ink-button chart-buy-fuel", "buy-fuel");
buy.SetEnabled(bunkerTons > 0 && company.Cash >= company.BunkerCost(ship, bunkerTons));
buy.SetEnabled(bunkerTons > 0 && company.AvailableCash >= company.BunkerCost(ship, bunkerTons));
buying.Add(buy);
}