Make Soundings voyages playable with ship operations and guided tips

This commit is contained in:
josh
2026-11-27 22:24:17 -05:00
parent 4b870fb0ce
commit 33cdd6dfa7
37 changed files with 2734 additions and 126 deletions

View File

@@ -10,6 +10,7 @@ namespace Soundings
{
PortSpec origin = Market.Ports[quote.Origin];
AddText(folio, $"DEPARTURE FROM {origin.Name.ToUpperInvariant()}", "chart-paper-kicker chart-paper-section");
DrawWeatherPicker(folio, quote);
var passage = Add(folio, "chart-passage");
AddText(passage, $"{quote.Miles:N0} nm · {quote.Days} days", "chart-passage-distance");
AddText(passage, $"{quote.Guests} / {quote.Capacity} guests", "chart-passage-guests");
@@ -28,7 +29,10 @@ namespace Soundings
if (!string.IsNullOrEmpty(blocker))
AddText(folio, blocker, "chart-paper-note chart-departure-blocker");
else
AddText(folio, "Cleared for departure", "chart-cleared");
{
int seconds = Mathf.RoundToInt(PassageDuration(quote));
AddText(folio, $"Cleared for departure · {seconds / 60}m {seconds % 60:00}s at 1×", "chart-cleared");
}
Button launch = Action("Cast off →", () => BeginVoyage(quote), "chart-ink-button chart-wide-button chart-cast-off", "dispatch");
launch.SetEnabled(blocker == null);
folio.Add(launch);