Make voyages active with dockside orders, crew calls, and ship PA
This commit is contained in:
@@ -34,25 +34,70 @@ namespace Soundings
|
||||
int fare = Ship.Fare;
|
||||
if (!SubmitSmoke("fare-plus") || !CheckSmoke(Ship.Fare == fare + 50 && guideContext == GuideStep.CastOff, "Fare control and departure guide"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("port-plan-open"))
|
||||
yield break;
|
||||
IntegerField provisioning = root.Q<IntegerField>("port-food-units");
|
||||
if (!CheckSmoke(provisioning != null && provisioning.value > 0, "Dockside orders show recommended provisions"))
|
||||
yield break;
|
||||
provisioning.value = 1120;
|
||||
if (!SubmitSmoke("port-program-1") || !CheckSmoke(portFoodOrder == 1120 && portProgram == EntertainmentProgram.LiveMusic,
|
||||
"Order an exact food quantity and book local musicians"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "03a-dockside-orders");
|
||||
if (!SubmitSmoke("port-plan-close"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("weather-swell") || !CheckSmoke(PassageWeatherFor(0, 1) == WeatherCondition.Swell, "Select forecast conditions")
|
||||
|| !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
|
||||
&& guideContext == GuideStep.AtSea && root.Q<Button>("guide-skip") != null,
|
||||
&& guideContext == GuideStep.AtSea && root.Q<Button>("guide-skip") != null
|
||||
&& underway.Plan?.FoodUnits == 1120 && underway.Plan.Program == EntertainmentProgram.LiveMusic,
|
||||
"Cast off into an assisted live crossing"))
|
||||
yield break;
|
||||
if (!CheckSmoke(passageAudio.CurrentAnnouncement == PassageAnnouncement.Departure && passageAudio.Caption.StartsWith("Welcome aboard"),
|
||||
"Cast off starts the spoken welcome and its caption"))
|
||||
yield break;
|
||||
int mealPrice = livePassage.GetPrice(OnboardService.Meals);
|
||||
int provisions = livePassage.ProvisionsRemaining;
|
||||
if (!SubmitSmoke("passage-price-meals-plus") || !SubmitSmoke("passage-special-meals")
|
||||
|| !CheckSmoke(livePassage.GetPrice(OnboardService.Meals) == mealPrice + 1 && livePassage.DiscountTicks(OnboardService.Meals) > 0,
|
||||
|| !CheckSmoke(provisions == 1120 && livePassage.GetPrice(OnboardService.Meals) == mealPrice + 1 && livePassage.DiscountTicks(OnboardService.Meals) > 0,
|
||||
"Change live prices and start a meal special"))
|
||||
yield break;
|
||||
if (!CheckSmoke(passageAudio.CurrentAnnouncement == PassageAnnouncement.Departure,
|
||||
"An on-demand special queues behind the ship's welcome"))
|
||||
yield break;
|
||||
Vector3 castingOff = harbor.PassageWorldPosition;
|
||||
MovePassageToSmoke(.17f);
|
||||
if (!CheckSmoke(harbor.PassageUsesPerspective && Vector3.Distance(castingOff, harbor.PassageWorldPosition) > 70f,
|
||||
"Ship travels through the world in the exterior perspective view")
|
||||
|| !CheckSmoke(livePassage.CrewCall == StationKind.Galley, "First crew call sends you to the galley")
|
||||
|| !SubmitSmoke("passage-service") || !SubmitSmoke("service-area-1"))
|
||||
yield break;
|
||||
if (!CheckSmoke(!harbor.TryGetFacingStation(out _), "Station cannot be used from across the passage"))
|
||||
yield break;
|
||||
WalkSmoke(Vector2.up, 6);
|
||||
if (!CheckSmoke(harbor.TryGetFacingStation(out StationKind galley) && galley == StationKind.Galley,
|
||||
"Galley control becomes available as you approach the equipment"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "03b-galley-crew-call");
|
||||
if (!CheckSmoke(UseFacingStation() && livePassage.CrewRequestsCompleted == 1 && livePassage.GalleyBoost,
|
||||
"Physical galley interaction answers the crew call and starts a paid extra shift")
|
||||
|| !SubmitSmoke("passage-deck-all") || !SubmitSmoke("passage-business"))
|
||||
yield break;
|
||||
MovePassageToSmoke(.30f);
|
||||
if (!CheckSmoke(livePassage.CurrentEvent.HasValue && livePassage.ProvisionsRemaining < provisions,
|
||||
"Service uses inventory and opens a timed event"))
|
||||
yield break;
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
passageHelm.Advance(.1f, 0, livePassage.SpeedFactor, underway.Weather);
|
||||
PresentVessel(.1f);
|
||||
}
|
||||
yield return CaptureSmoke(directory, "04-underway");
|
||||
harbor.RotateView(112f);
|
||||
yield return new WaitForSecondsRealtime(.38f);
|
||||
yield return CaptureSmoke(directory, "04a-underway-wake");
|
||||
if (!SubmitSmoke("passage-event-0") || !CheckSmoke(livePassage.Expenses > 0 && !livePassage.CurrentEvent.HasValue, "Resolve the event"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("passage-deck-0") || !CheckSmoke(passageDeck == 0, "Inspect the cabin deck"))
|
||||
@@ -68,7 +113,7 @@ namespace Soundings
|
||||
WalkSmoke(Vector2.up, 35);
|
||||
float bridgeWalk = Vector3.Distance(bridgeEntry, harbor.FirstPersonPosition);
|
||||
if (!CheckSmoke(bridgeWalk > 1 && bridgeWalk < 3 && harbor.FirstPersonPositionIsClear, "Bridge console blocks grounded movement")
|
||||
|| !SubmitSmoke("passage-camera-reset") || !SubmitSmoke("helm-toggle")
|
||||
|| !SubmitSmoke("passage-camera-reset") || !CheckSmoke(UseFacingStation(), "Engage physical helm from its console")
|
||||
|| !CheckSmoke(passageHelm.Manual, "Take physical control on the bridge"))
|
||||
yield break;
|
||||
passageHelm.Advance(8, 0, livePassage.SpeedFactor, underway.Weather);
|
||||
@@ -115,7 +160,8 @@ namespace Soundings
|
||||
|| !SubmitSmoke("service-assist") || !CheckSmoke(!livePassage.Assisted, "Switch to manual operations"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "06b-engine-room");
|
||||
if (!SubmitSmoke("service-area-1") || !SubmitSmoke("service-operate") || !CheckSmoke(livePassage.GalleyBoost, "Extend galley service"))
|
||||
if (!SubmitSmoke("service-area-1") || (!livePassage.GalleyBoost && !SubmitSmoke("service-operate"))
|
||||
|| !CheckSmoke(livePassage.GalleyBoost, "Extend galley service"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "06c-galley");
|
||||
if (!SubmitSmoke("service-area-2") || !CheckSmoke(passageServiceArea == 2, "Inspect stores")
|
||||
@@ -129,7 +175,8 @@ namespace Soundings
|
||||
yield return new WaitForSecondsRealtime(.15f);
|
||||
if (!CheckSmoke(passageHelm.Position == pausedPosition, "Paused passage clock") || !SubmitSmoke("resume-game"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("dock-now") || !CheckSmoke(Ship.Port == 1 && company.Voyages == 1 && page == 4 && guideContext == GuideStep.Review, "Arrival settles once and opens the guided log"))
|
||||
if (!SubmitSmoke("dock-now") || !CheckSmoke(Ship.Port == 1 && company.Voyages == 1 && page == 4 && guideContext == GuideStep.Review
|
||||
&& company.History[0].Plan.FoodUnits == 1120 && company.History[0].Onboard.CrewCalls == 1, "Arrival settles once and records the orders and crew call"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "07-logbook");
|
||||
if (!SubmitSmoke("voyage-0") || !SubmitSmoke("log-accounts") || !SubmitSmoke("log-voyages")
|
||||
|
||||
Reference in New Issue
Block a user