Add port-specific shore excursions and deck stack

This commit is contained in:
josh
2026-11-28 17:19:25 -05:00
parent c570a64840
commit a54f66cec9
28 changed files with 1270 additions and 31 deletions

View File

@@ -134,11 +134,17 @@ namespace Soundings
}
row.Control.EnableInClassList("fleet-roster-selected", row.Ship == Ship);
row.Status.EnableInClassList("fleet-ship-at-sea", voyage != null);
row.Status.EnableInClassList("fleet-ship-shore-alert", row.Ship.ShoreCall?.Phase == ShorePhase.AwaitingDecision);
if (voyage == null)
{
docked[group]++;
SetPassageText(row.Status, $"Docked at {Market.Ports[row.Ship.Port].Name}");
SetPassageText(row.Readout, $"{row.Ship.Fuel:N0} / {row.Ship.Tank:N0} t fuel · {row.Ship.Condition}% condition");
SetPassageText(row.Readout, row.Ship.ShoreCall is ShoreCall shore ? shore.Phase switch
{
ShorePhase.AwaitingDecision => $"{shore.LateGuests:N0} guests late · Departure decision needed",
ShorePhase.Holding => $"Holding for {shore.LateGuests:N0} guests",
_ => $"{shore.Guests:N0} guests on shore excursions"
} : $"{row.Ship.Fuel:N0} / {row.Ship.Tank:N0} t fuel · {row.Ship.Condition}% condition");
}
else
{