Unlock expanded venues and manage concurrent fleet voyages
This commit is contained in:
@@ -78,7 +78,7 @@ namespace Soundings
|
||||
|| !SubmitSmoke("weather-calm"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("dispatch") || !CheckSmoke(underway != null && livePassage != null && Ship.Port == 0
|
||||
&& company.Voyages == 0 && PassageDuration(underway) >= 120 && livePassage.Assisted && underway.Weather == WeatherCondition.Calm
|
||||
&& company.Voyages == 0 && PassageDuration(underway) >= 175 && livePassage.Assisted && underway.Weather == WeatherCondition.Calm
|
||||
&& underway.Plan?.FoodUnits == 1120 && underway.Plan.Program == EntertainmentProgram.LiveMusic,
|
||||
"Cast off into an assisted live crossing"))
|
||||
yield break;
|
||||
@@ -379,14 +379,47 @@ namespace Soundings
|
||||
yield break;
|
||||
|
||||
company.Cash = 2_000_000;
|
||||
company.Voyages = 10;
|
||||
company.Reputation = 70;
|
||||
if (!SubmitSmoke("nav-1") || !SubmitSmoke("facility-larger")
|
||||
|| !CheckSmoke(root.Q<Button>("facility-12")?.ClassListContains("work-tool-locked") == true,
|
||||
"Larger venues show the lock on a Coastal hull")
|
||||
|| !CheckSmoke(company.BuildBlock(Ship, 0, 4, Facility.Suite) != null, "A Coastal hull cannot fit a suite"))
|
||||
yield break;
|
||||
|
||||
company.Voyages = 3;
|
||||
company.Reputation = 24;
|
||||
if (!SubmitSmoke("nav-2") || !SubmitSmoke("yard-2") || !SubmitSmoke("buy-ship")
|
||||
|| !CheckSmoke(Ship.HullIndex == 1 && Ship.Decks.Count == 4, "Regional hull is delivered with four decks")
|
||||
|| !SubmitSmoke("nav-0"))
|
||||
|| !SubmitSmoke("nav-1") || !SubmitSmoke("deck-3") || !SubmitSmoke("facility-larger")
|
||||
|| !SubmitSmoke("facility-12") || !SubmitSmoke("berth-0")
|
||||
|| !CheckSmoke(Ship.Decks[3].AnchorAt(1, Ship.Hull.Columns) == 0 && Ship.SuiteBerths > 0,
|
||||
"A Regional suite joins two bays and adds premium berths")
|
||||
|| !CheckSmoke(company.BuildBlock(Ship, 3, 7, Facility.ResortPool) != null
|
||||
&& company.BuildBlock(Ship, 3, 1, Facility.Restaurant) != null
|
||||
&& company.BuildBlock(Ship, 3, 3, Facility.GrandTheater) != null,
|
||||
"Expanded facilities respect deck edges, occupied bays, and Ocean Class limits"))
|
||||
yield break;
|
||||
|
||||
int suiteRefund = Market.Facilities[(int)Facility.Suite].Price / 4;
|
||||
int beforeClear = company.Cash;
|
||||
if (!SubmitSmoke("facility-0") || !SubmitSmoke("berth-1")
|
||||
|| !CheckSmoke(Ship.SuiteBerths == 0 && Ship.Decks[3].Cells[0] == Facility.Empty
|
||||
&& Ship.Decks[3].Cells[1] == Facility.Empty && company.Cash == beforeClear + suiteRefund,
|
||||
"Clearing a linked bay removes the whole fitting and refunds once")
|
||||
|| !SubmitSmoke("facility-12") || !SubmitSmoke("berth-0")
|
||||
|| !SubmitSmoke("facility-14") || !SubmitSmoke("berth-3")
|
||||
|| !SubmitSmoke("facility-16") || !SubmitSmoke("berth-8")
|
||||
|| !CheckSmoke(VesselExterior.SunDeck(Ship).Resort && Ship.PoolCapacity > 64
|
||||
&& VesselExterior.SunDeck(Ship).PoolHalfSize.x > VesselExterior.PoolHalfLength * 2,
|
||||
"The larger pool changes the top deck and service capacity"))
|
||||
yield break;
|
||||
Ship regional = Ship;
|
||||
yield return CaptureSmoke(directory, "15a-regional-expanded-plans");
|
||||
if (!SubmitSmoke("nav-0"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "15-regional-hull");
|
||||
|
||||
company.Voyages = 10;
|
||||
company.Reputation = 70;
|
||||
if (!SubmitSmoke("nav-2") || !SubmitSmoke("yard-4"))
|
||||
yield break;
|
||||
TextField vesselName = root.Q<TextField>("vessel-name");
|
||||
@@ -398,10 +431,15 @@ namespace Soundings
|
||||
|| !SubmitSmoke("add-deck") || !SubmitSmoke("add-deck")
|
||||
|| !CheckSmoke(Ship.Decks.Count == 8, "Ocean Class can add two more decks"))
|
||||
yield break;
|
||||
if (!CheckSmoke(company.Build(Ship, 0, 0, Facility.Cabin) == null
|
||||
&& company.Build(Ship, 1, 0, Facility.Dining) == null && company.Build(Ship, 7, 0, Facility.Bar) == null
|
||||
for (int bay = 0; bay < 7; bay++)
|
||||
if (!CheckSmoke(company.Build(Ship, 0, bay, Facility.Cabin) == null, "Fit flagship passenger berths"))
|
||||
yield break;
|
||||
if (!CheckSmoke(company.Build(Ship, 7, 10, Facility.Restaurant) == null && company.Build(Ship, 7, 21, Facility.CocktailLounge) == null
|
||||
&& company.Build(Ship, 7, 0, Facility.ResortPool) == null && company.Build(Ship, 7, 3, Facility.GrandTheater) == null
|
||||
&& company.Build(Ship, 7, 14, Facility.GrandSuite) == null && VesselExterior.SunDeck(Ship).Theater
|
||||
&& company.Refuel(Ship, 100) == null, "Fit and fuel the largest hull") || !SubmitSmoke("nav-0"))
|
||||
yield break;
|
||||
Ship flagship = Ship;
|
||||
yield return CaptureSmoke(directory, "16-ocean-class-hull");
|
||||
if (!SubmitSmoke("plan-voyage") || !SubmitSmoke("port-1") || !SubmitSmoke("dispatch")
|
||||
|| !CheckSmoke(harbor.PortCinematicActive && Ship.Name == "MV Crownhaven" && Ship.Decks.Count == 8,
|
||||
@@ -413,6 +451,10 @@ namespace Soundings
|
||||
|| !CheckSmoke(passageDeck == 7, "Select the eighth deck during the voyage"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "17-ocean-class-cutaway");
|
||||
harbor.Zoom(-13, new Vector2(.40f, .53f));
|
||||
yield return new WaitForSecondsRealtime(.55f);
|
||||
yield return CaptureSmoke(directory, "17a-expanded-venues-close-up");
|
||||
harbor.ResetView(true);
|
||||
harbor.Zoom(-90, new Vector2(.48f, .53f));
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
if (!CheckSmoke(harbor.OrbitCameraIsClear && harbor.OrbitVerticalSpan < 12f,
|
||||
@@ -420,6 +462,56 @@ namespace Soundings
|
||||
yield break;
|
||||
if (!SubmitSmoke("passage-explore") || !CheckSmoke(harbor.FirstPersonPositionIsClear, "Walk safely on the eighth deck"))
|
||||
yield break;
|
||||
|
||||
int firstReserve = company.Cash - company.AvailableCash;
|
||||
OnboardSession flagshipSession = livePassage;
|
||||
HelmNavigation flagshipHelm = passageHelm;
|
||||
int flagshipMealPrice = flagshipSession.GetPrice(OnboardService.Meals) + 1;
|
||||
flagshipSession.ChangePrice(OnboardService.Meals, 1);
|
||||
if (!SubmitSmoke("fleet-toggle") || !SubmitSmoke("fleet-1") || !CheckSmoke(Ship == regional && underway == null
|
||||
&& FleetStatus(flagship).Session == flagshipSession && firstReserve > 0,
|
||||
"Switch from the flagship to a docked ship while keeping its voyage and funding"))
|
||||
yield break;
|
||||
|
||||
float flagshipPosition = flagshipHelm.Position.x;
|
||||
if (!CheckSmoke(company.Refuel(regional, 60) == null, "Prepare the second fleet departure")
|
||||
|| !SubmitSmoke("plan-voyage") || !SubmitSmoke("port-1") || !SubmitSmoke("dispatch")
|
||||
|| !CheckSmoke(FleetStatus(regional).Session == livePassage && company.Cash - company.AvailableCash > firstReserve,
|
||||
"Dispatch a second ship with an independent session and cash reservation"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("port-cinematic-skip"))
|
||||
yield break;
|
||||
HelmNavigation regionalHelm = passageHelm;
|
||||
regionalHelm.SetProgress(.34f);
|
||||
if (!SubmitSmoke("fleet-toggle") || !CheckSmoke(root.Q("fleet-overview") != null
|
||||
&& root.Q<Label>("fleet-status-1") != null && root.Q<Label>("fleet-status-2") != null,
|
||||
"Fleet overview lists both active crossings"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "18-fleet-overview");
|
||||
if (!CheckSmoke(flagshipHelm.Position.x > flagshipPosition && regionalHelm.Progress >= .34f,
|
||||
"Both ships keep sailing while the fleet chart is open")
|
||||
|| !SubmitSmoke("fleet-2") || !CheckSmoke(Ship == flagship && livePassage == flagshipSession
|
||||
&& livePassage.GetPrice(OnboardService.Meals) == flagshipMealPrice && passageHelm == flagshipHelm,
|
||||
"Returning to a ship restores its exact voyage, prices, and track"))
|
||||
yield break;
|
||||
|
||||
int sailed = company.Voyages;
|
||||
regionalHelm.SetProgress(1);
|
||||
yield return null;
|
||||
yield return null;
|
||||
if (!CheckSmoke(Ship == flagship && livePassage == flagshipSession && !harbor.PortCinematicActive
|
||||
&& regional.Port == 1 && FleetStatus(regional).Voyage == null && company.Voyages == sailed + 1
|
||||
&& company.Cash - company.AvailableCash == firstReserve, "Background arrival frees its funds and records one receipt"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("fleet-toggle"))
|
||||
yield break;
|
||||
flagshipHelm.SetProgress(1);
|
||||
yield return null;
|
||||
yield return null;
|
||||
if (!CheckSmoke(company.Voyages == sailed + 2 && company.Cash == company.AvailableCash
|
||||
&& fleetOpen && root.Q("fleet-overview") != null && !harbor.PortCinematicActive,
|
||||
"Same-day arrivals settle without interrupting the fleet overview"))
|
||||
yield break;
|
||||
Debug.Log($"Soundings player smoke passed at {Screen.width} × {Screen.height}.");
|
||||
Application.Quit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user