Fix port cinematics and expand ship attractions
This commit is contained in:
@@ -110,10 +110,12 @@ namespace Soundings
|
||||
&& passageAudio.Caption.Contains("next port of call is Nassau"), "Cast off at Miami with a short cinematic and named PA"))
|
||||
yield break;
|
||||
Vector3 departureStart = harbor.PassageWorldPosition;
|
||||
var miamiBerth = harbor.PortCinematicAlignment();
|
||||
yield return new WaitForSecondsRealtime(1.3f);
|
||||
if (!CheckSmoke(harbor.PortCinematicActive && passageHelm.Progress == 0
|
||||
&& Vector3.Distance(departureStart, harbor.PassageWorldPosition) > 1,
|
||||
"Departure moves the ship through the harbor before starting the voyage clock")
|
||||
|| !CheckSmoke(miamiBerth == harbor.PortCinematicAlignment(), "Miami's quay and shoreline stay aligned through cast-off")
|
||||
|| !CheckSmoke(harbor.HasActiveGuest(GuestActivity.Swim) && harbor.HasActiveGuest(GuestActivity.Wade)
|
||||
&& harbor.HasActiveGuest(GuestActivity.Lounge), "Guests swim, wade, and use the pool loungers in calm weather"))
|
||||
yield break;
|
||||
@@ -287,9 +289,11 @@ namespace Soundings
|
||||
if (!SubmitSmoke("dock-now") || !CheckSmoke(harbor.PortCinematicActive && Ship.Port == 1 && company.Voyages == 1
|
||||
&& root.Q<Label>("port-cinematic-name")?.text == "Nassau", "Arrival shot opens on the destination after settlement"))
|
||||
yield break;
|
||||
var nassauBerth = harbor.PortCinematicAlignment();
|
||||
FinishVoyage();
|
||||
yield return new WaitForSecondsRealtime(1.4f);
|
||||
if (!CheckSmoke(harbor.PortCinematicActive && company.Voyages == 1, "Arrival cannot settle the voyage twice"))
|
||||
if (!CheckSmoke(harbor.PortCinematicActive && company.Voyages == 1, "Arrival cannot settle the voyage twice")
|
||||
|| !CheckSmoke(nassauBerth == harbor.PortCinematicAlignment(), "Nassau's quay and shoreline stay aligned during docking"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "07-arrival-cinematic");
|
||||
yield return new WaitUntil(() => !harbor.PortCinematicActive);
|
||||
@@ -390,6 +394,11 @@ namespace Soundings
|
||||
"Complete the itinerary with two linked ledger records"))
|
||||
yield break;
|
||||
holdCinematicClock = true;
|
||||
var keyWestBerth = harbor.PortCinematicAlignment();
|
||||
cinematicTime = 1.4f;
|
||||
PresentPortCinematicFrame(cinematicTime);
|
||||
if (!CheckSmoke(keyWestBerth == harbor.PortCinematicAlignment(), "Key West's quay and shoreline stay aligned during docking"))
|
||||
yield break;
|
||||
yield return CapturePortAndSkipSmoke(directory, "11d-key-west-cinematic", 1.4f);
|
||||
yield return CaptureSmoke(directory, "11d-itinerary-complete");
|
||||
|
||||
@@ -423,6 +432,12 @@ namespace Soundings
|
||||
"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;
|
||||
if (!SubmitSmoke("facility-casino")
|
||||
|| !CheckSmoke(root.Q<Button>($"facility-{(int)Facility.CasinoLounge}")?.ClassListContains("work-tool-locked") == false
|
||||
&& root.Q<Button>($"facility-{(int)Facility.Casino}")?.ClassListContains("work-tool-locked") == true
|
||||
&& root.Q<Button>($"facility-{(int)Facility.GrandCasino}")?.ClassListContains("work-tool-locked") == true,
|
||||
"The compact casino is available on Coastal hulls and larger casinos require bigger ships"))
|
||||
yield break;
|
||||
|
||||
company.Voyages = 3;
|
||||
company.Reputation = 24;
|
||||
@@ -483,11 +498,26 @@ namespace Soundings
|
||||
"Rotate a 3×2 water park to span three rows"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "15b-rotated-water-park-plan");
|
||||
if (!SubmitSmoke("deck-4") || !SubmitSmoke("facility-casino") || !SubmitSmoke($"facility-{(int)Facility.GrandCasino}")
|
||||
|| !SubmitSmoke("berth-4") || !CheckSmoke(Ship.CasinoCapacity == Market.Facilities[(int)Facility.GrandCasino].Capacity,
|
||||
"Fit a 3×2 grand casino using Deck Plans"))
|
||||
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 && 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"))
|
||||
&& company.Refuel(Ship, 100) == null, "Fit and fuel the largest hull"))
|
||||
yield break;
|
||||
float oldPoolCenter = VesselExterior.SunDeck(Ship).PoolCenter;
|
||||
if (!SubmitSmoke("sun-deck-open") || !SubmitSmoke("sun-pool-resort") || !SubmitSmoke("sun-shape-oval")
|
||||
|| !SubmitSmoke("sun-pool-forward") || !SubmitSmoke("sun-attraction-coaster"))
|
||||
yield break;
|
||||
var sunDeck = VesselExterior.SunDeck(Ship);
|
||||
if (!CheckSmoke(sunDeck.HasPool && sunDeck.OvalPool && sunDeck.PoolCenter > oldPoolCenter
|
||||
&& sunDeck.Attraction == SunAttraction.RollerCoaster, "Customize the actual outdoor pool and stern attraction"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "15c-custom-sun-deck");
|
||||
if (!SubmitSmoke("nav-0"))
|
||||
yield break;
|
||||
Ship flagship = Ship;
|
||||
yield return CaptureSmoke(directory, "16-ocean-class-hull");
|
||||
@@ -497,6 +527,27 @@ namespace Soundings
|
||||
yield break;
|
||||
holdCinematicClock = true;
|
||||
yield return CapturePortAndSkipSmoke(directory, "16b-ocean-class-departure", 1.4f);
|
||||
harbor.Zoom(-7, new Vector2(.51f, .48f));
|
||||
yield return new WaitForSecondsRealtime(.5f);
|
||||
yield return CaptureSmoke(directory, "16b-custom-sun-deck-at-sea");
|
||||
harbor.ResetView(true);
|
||||
int regularStake = livePassage.GetPrice(OnboardService.Casino);
|
||||
if (!SubmitSmoke("passage-price-casino-plus") || !SubmitSmoke("passage-special-casino")
|
||||
|| !CheckSmoke(livePassage.GetPrice(OnboardService.Casino) == regularStake + 1
|
||||
&& livePassage.DiscountTicks(OnboardService.Casino) > 0, "Set table stakes and run a low-stakes hour"))
|
||||
yield break;
|
||||
MovePassageToSmoke(.12f);
|
||||
if (!CheckSmoke(livePassage.Get(OnboardService.Casino).Served > 0
|
||||
&& livePassage.CasinoPayouts > 0 && livePassage.Get(OnboardService.Casino).Revenue > livePassage.CasinoPayouts,
|
||||
"The fitted casino serves guests and records stakes and payouts")
|
||||
|| !SubmitSmoke("passage-deck-4"))
|
||||
yield break;
|
||||
harbor.Zoom(-14, new Vector2(.51f, .49f));
|
||||
yield return new WaitForSecondsRealtime(.5f);
|
||||
if (!CheckSmoke(harbor.HasActiveGuest(GuestActivity.PlayCards) && harbor.HasActiveGuest(GuestActivity.Dealer),
|
||||
"Casino tables have active guests and dealers"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "16c-casino");
|
||||
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
|
||||
@@ -561,7 +612,13 @@ namespace Soundings
|
||||
yield break;
|
||||
|
||||
MovePassageToSmoke(.30f);
|
||||
if (!SubmitSmoke("passage-deck-7") || !SubmitSmoke("passage-special-retail") || !SubmitSmoke("company-menu"))
|
||||
if (!SubmitSmoke("passage-deck-7"))
|
||||
yield break;
|
||||
RefreshPassageBusiness();
|
||||
if (livePassage.DiscountTicks(OnboardService.Retail) == 0 && !SubmitSmoke("passage-special-retail"))
|
||||
yield break;
|
||||
if (!CheckSmoke(livePassage.DiscountTicks(OnboardService.Retail) > 0, "Keep a shop sale active for the fleet save")
|
||||
|| !SubmitSmoke("company-menu"))
|
||||
yield break;
|
||||
int savedReserve = company.ReservedCash;
|
||||
Company departingCompany = company;
|
||||
@@ -587,6 +644,8 @@ namespace Soundings
|
||||
|| !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(Ship.SunDeckPlan.Shape == SunPoolShape.Oval && Ship.SunDeckPlan.Position == SunPoolPosition.Forward
|
||||
&& Ship.SunDeckPlan.Attraction == SunAttraction.RollerCoaster, "The outdoor deck layout stays fitted after reloading")
|
||||
|| !CheckSmoke(passageDeck == 7 && livePassage.GetPrice(OnboardService.Retail) == retailPrice
|
||||
&& livePassage.DiscountTicks(OnboardService.Retail) > 0, "The selected deck and active shop sale resume"))
|
||||
yield break;
|
||||
|
||||
Reference in New Issue
Block a user