Add multi-stop voyages, a live chart, and named port announcements

This commit is contained in:
josh
2026-11-27 23:41:08 -05:00
parent cc7620c431
commit 9500813df4
111 changed files with 2037 additions and 38 deletions

View File

@@ -131,6 +131,12 @@ namespace Soundings
bunkerTons = 0;
if (Ship == null)
return;
if (Ship.Itinerary is { HasNext: true } itinerary)
{
destination = itinerary.NextPort;
SetRecommendedFuel();
return;
}
foreach (Lane lane in Market.Lanes)
{
int other = lane.Other(Ship.Port);
@@ -384,7 +390,8 @@ namespace Soundings
var commands = Add(scene, "helm-orders");
commands.pickingMode = PickingMode.Ignore;
Button plan = Action("Set course", OpenVoyageChart, "primary helm-command", "plan-voyage");
Button plan = Action(ship.Itinerary is { HasNext: true, CompletedStops: > 0 } ? "Plan next leg" : "Set course",
OpenVoyageChart, "primary helm-command", "plan-voyage");
GameIcon(plan, "chart");
commands.Add(plan);
var camera = Add(commands, "camera-legend");