Add fleet save slots and rotatable onboard venues
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Soundings
|
||||
|
||||
if (!CheckSmoke(guidedCareer, "The guide is on by default")
|
||||
|| !SubmitSmoke("guide-toggle") || !CheckSmoke(!guidedCareer, "Guide can be turned off at title")
|
||||
|| !SubmitSmoke("guide-toggle") || !SubmitSmoke("start-used")
|
||||
|| !SubmitSmoke("guide-toggle") || !SubmitSmoke("start-used") || !SubmitSmoke("replace")
|
||||
|| !CheckSmoke(Ship?.Name == "MV Meridian" && guideContext == GuideStep.SetCourse, "Guided used start"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "02-harbor");
|
||||
@@ -378,7 +378,7 @@ namespace Soundings
|
||||
|| !SubmitSmoke("guide-skip") || !CheckSmoke(company.TutorialStep == 0, "Guide can be skipped"))
|
||||
yield break;
|
||||
|
||||
company.Cash = 2_000_000;
|
||||
company.Cash = 3_000_000;
|
||||
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")
|
||||
@@ -434,9 +434,20 @@ namespace Soundings
|
||||
for (int bay = 0; bay < 7; bay++)
|
||||
if (!CheckSmoke(company.Build(Ship, 0, bay, Facility.Cabin) == null, "Fit flagship passenger berths"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("nav-1") || !SubmitSmoke("deck-5") || !SubmitSmoke("facility-leisure")
|
||||
|| !SubmitSmoke("facility-20") || !SubmitSmoke("facility-rotate") || !SubmitSmoke("berth-4")
|
||||
|| !SubmitSmoke("facility-21") || !SubmitSmoke("berth-7")
|
||||
|| !CheckSmoke(Ship.Decks[5].RotationAt(4) == 1 && Ship.Decks[5].AnchorAt(18, Ship.Hull.Columns) == 7,
|
||||
"Rotate an L-shaped shopping arcade and fit an adjacent 2×2 spa")
|
||||
|| !SubmitSmoke("deck-6") || !SubmitSmoke("facility-22") || !SubmitSmoke("facility-rotate") || !SubmitSmoke("berth-3")
|
||||
|| !CheckSmoke(Ship.Decks[6].RotationAt(3) == 1 && Ship.Decks[6].AnchorAt(24, Ship.Hull.Columns) == 3,
|
||||
"Rotate a 3×2 water park to span three rows"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "15b-rotated-water-park-plan");
|
||||
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.Build(Ship, 7, 14, Facility.GrandSuite) == null && company.Build(Ship, 7, 28, Facility.Shop) == null
|
||||
&& VesselExterior.SunDeck(Ship).Theater
|
||||
&& company.Refuel(Ship, 100) == null, "Fit and fuel the largest hull") || !SubmitSmoke("nav-0"))
|
||||
yield break;
|
||||
Ship flagship = Ship;
|
||||
@@ -447,6 +458,18 @@ namespace Soundings
|
||||
yield break;
|
||||
holdCinematicClock = true;
|
||||
yield return CapturePortAndSkipSmoke(directory, "16b-ocean-class-departure", 1.4f);
|
||||
int retailPrice = livePassage.GetPrice(OnboardService.Retail) + 1;
|
||||
if (!SubmitSmoke("passage-price-retail-plus") || !livePassage.TryWorkStation(StationKind.Retail, out _)
|
||||
|| !CheckSmoke(livePassage.Get(OnboardService.Retail).Served > 0
|
||||
&& livePassage.GetPrice(OnboardService.Retail) == retailPrice && livePassage.DiscountTicks(OnboardService.Retail) > 0,
|
||||
"Shops serve passengers and support checkout promotions and onboard pricing"))
|
||||
yield break;
|
||||
MovePassageToSmoke(.18f);
|
||||
if (!CheckSmoke(livePassage.Get(OnboardService.Retail).Revenue > 0 && livePassage.Expenses > 0,
|
||||
"Shop orders record retail takings and wholesale expense")
|
||||
|| !SubmitSmoke("passage-deck-6"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "16c-water-park-cutaway");
|
||||
if (!SubmitSmoke("passage-deck-7")
|
||||
|| !CheckSmoke(passageDeck == 7, "Select the eighth deck during the voyage"))
|
||||
yield break;
|
||||
@@ -475,7 +498,10 @@ namespace Soundings
|
||||
|
||||
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")
|
||||
|| !SubmitSmoke("plan-voyage") || !SubmitSmoke("port-1")
|
||||
|| !CheckSmoke(root.Q<Button>("dispatch")?.enabledInHierarchy == true,
|
||||
"The second departure is ready: " + company.DepartureBlock(Ship, company.Forecast(Ship, destination)))
|
||||
|| !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;
|
||||
@@ -495,6 +521,41 @@ namespace Soundings
|
||||
"Returning to a ship restores its exact voyage, prices, and track"))
|
||||
yield break;
|
||||
|
||||
MovePassageToSmoke(.30f);
|
||||
if (!SubmitSmoke("passage-deck-7") || !SubmitSmoke("passage-special-retail") || !SubmitSmoke("company-menu"))
|
||||
yield break;
|
||||
int savedReserve = company.ReservedCash;
|
||||
Company departingCompany = company;
|
||||
if (!SubmitSmoke("career-save") || !SubmitSmoke("career-save-as"))
|
||||
yield break;
|
||||
TextField saveName = root.Q<TextField>("career-save-name");
|
||||
if (!CheckSmoke(saveName != null, "Name the separate save slot"))
|
||||
yield break;
|
||||
saveName.value = "Fleet Crossing";
|
||||
if (!SubmitSmoke("career-save-confirm") || !SubmitSmoke("career-load-open")
|
||||
|| !CheckSmoke(careers.List().Count >= 3 && careerName == "Fleet Crossing", "Save as preserves existing careers"))
|
||||
yield break;
|
||||
FleetPassageSnapshot[] before = careers.Read(careerId)?.Passages;
|
||||
if (!CheckSmoke(before?.Length == 2, "The named save contains both crossings"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "19-saved-careers");
|
||||
if (!SubmitSmoke("career-load-0"))
|
||||
yield break;
|
||||
FleetPassageSnapshot[] after = CaptureFleetPassages();
|
||||
if (!CheckSmoke(company != departingCompany && careerMenu == CareerMenu.Closed && careerName == "Fleet Crossing",
|
||||
"The load browser activates the selected save")
|
||||
|| !CheckSmoke(after.Length == 2 && company.ReservedCash == savedReserve, "Both crossings retain their cash reserves")
|
||||
|| !CheckSmoke(SameSavedCrossing(before[0], after[0]), "The background crossing retains its navigation and operation state")
|
||||
|| !CheckSmoke(SameSavedCrossing(before[1], after[1]), "The foreground crossing retains its navigation and operation state")
|
||||
|| !CheckSmoke(Ship.Decks[6].RotationAt(3) == 1 && Ship.Decks[5].RotationAt(4) == 1, "Both rotated layouts load intact")
|
||||
|| !CheckSmoke(passageDeck == 7 && livePassage.GetPrice(OnboardService.Retail) == retailPrice
|
||||
&& livePassage.DiscountTicks(OnboardService.Retail) > 0, "The selected deck and active shop sale resume"))
|
||||
yield break;
|
||||
flagship = Ship;
|
||||
flagshipSession = livePassage;
|
||||
flagshipHelm = passageHelm;
|
||||
regional = company.Fleet[1];
|
||||
regionalHelm = FleetStatus(regional).Helm;
|
||||
int sailed = company.Voyages;
|
||||
regionalHelm.SetProgress(1);
|
||||
yield return null;
|
||||
@@ -516,6 +577,11 @@ namespace Soundings
|
||||
Application.Quit(0);
|
||||
}
|
||||
|
||||
private static bool SameSavedCrossing(FleetPassageSnapshot before, FleetPassageSnapshot after) =>
|
||||
before.ShipIndex == after.ShipIndex && before.Voyage.Destination == after.Voyage.Destination
|
||||
&& JsonUtility.ToJson(before.Helm) == JsonUtility.ToJson(after.Helm)
|
||||
&& JsonUtility.ToJson(before.Session) == JsonUtility.ToJson(after.Session);
|
||||
|
||||
private void MovePassageToSmoke(float progress)
|
||||
{
|
||||
passageHelm.SetProgress(progress);
|
||||
|
||||
Reference in New Issue
Block a user