Add riverboat captain career and distinct ship classes
Add class-specific vessel geometry and sea motion, a guided helm qualification path, dockside sailing orders, and local excursions at all 24 ports.
This commit is contained in:
@@ -77,13 +77,18 @@ namespace BigShipTycoon
|
||||
AddText(place, Market.Ports[quote.Destination].Name.ToUpperInvariant(), "shore-kicker");
|
||||
AddDisplay(place, "Shore excursions", "shore-planning-title");
|
||||
heading.Add(Action("Close Esc", CloseShorePlanning, "shore-planning-close", "shore-planning-close"));
|
||||
IReadOnlyList<ShoreTour> catalog = ShoreExcursions.Catalog(quote.Destination);
|
||||
string passengers = quote == underway ? $"{quote.Guests:N0} guests aboard" : $"{quote.Guests:N0} guests expected";
|
||||
AddText(sheet, $"Set prices and seats before docking. {passengers} · {quote.Weather} forecast.", "shore-planning-intro");
|
||||
AddText(sheet, $"{catalog.Count} local tours · {passengers} · {quote.Weather} forecast. Set prices and seats before docking.",
|
||||
"shore-planning-intro");
|
||||
|
||||
var tours = new ScrollView(ScrollViewMode.Vertical) { horizontalScrollerVisibility = ScrollerVisibility.Hidden };
|
||||
var tours = new ScrollView(ScrollViewMode.Vertical)
|
||||
{
|
||||
horizontalScrollerVisibility = ScrollerVisibility.Hidden,
|
||||
verticalScrollerVisibility = ScrollerVisibility.Auto
|
||||
};
|
||||
tours.AddToClassList("shore-tour-list");
|
||||
sheet.Add(tours);
|
||||
IReadOnlyList<ShoreTour> catalog = ShoreExcursions.Catalog(quote.Destination);
|
||||
var forecasts = new Label[catalog.Count];
|
||||
var offerButtons = new Button[catalog.Count];
|
||||
var tourCards = new VisualElement[catalog.Count];
|
||||
@@ -137,9 +142,12 @@ namespace BigShipTycoon
|
||||
int guests = 0, net = 0;
|
||||
for (int i = 0; i < forecasts.Length; i++)
|
||||
{
|
||||
tourCards[i].EnableInClassList("shore-tour-offered", shoreDraft[i].Capacity > 0);
|
||||
offerButtons[i].text = shoreDraft[i].Capacity > 0 ? "Remove offer" : "Offer tour";
|
||||
forecasts[i].text = shoreDraft[i].Capacity > 0 ? "No bookings expected." : $"Set seats to offer this tour · Up to {catalog[i].MaxCapacity:N0}";
|
||||
bool offered = shoreDraft[i].Capacity > 0;
|
||||
tourCards[i].EnableInClassList("shore-tour-offered", offered);
|
||||
offerButtons[i].text = offered ? "Remove offer" : "Offer tour";
|
||||
int margin = shoreDraft[i].Price - catalog[i].OperatorRate;
|
||||
forecasts[i].text = offered ? "No bookings expected."
|
||||
: $"{Money(margin)} margin per guest · Up to {catalog[i].MaxCapacity:N0} seats";
|
||||
}
|
||||
foreach (ShoreBooking booking in bookings)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user