Rebrand as Big Ship Tycoon and add crew operations
This commit is contained in:
@@ -31,6 +31,13 @@ namespace Soundings
|
||||
Vector2[] pacific = MapPaths(new[] { 15, 16 })[0];
|
||||
if (!CheckSmoke(Mathf.Abs(pacific[MapSamples].x - pacific[0].x) < 45, "Voyage map wraps the date line"))
|
||||
yield break;
|
||||
if (!CheckSmoke(deckAmbience.Ready && titleArt != null && titleArt.name == "BigShipTycoonTitle", "New title art and all deck ambience loops are loaded"))
|
||||
yield break;
|
||||
brandingPreview = true;
|
||||
Render();
|
||||
yield return CaptureSmoke(directory, "00-big-ship-tycoon-thumbnail");
|
||||
brandingPreview = false;
|
||||
Render();
|
||||
yield return CaptureSmoke(directory, "01-title");
|
||||
|
||||
if (!CheckSmoke(guidedCareer, "The guide is on by default")
|
||||
@@ -39,12 +46,16 @@ namespace Soundings
|
||||
|| !CheckSmoke(Ship?.Name == "MV Meridian" && guideContext == GuideStep.SetCourse, "Guided used start"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "02-harbor");
|
||||
yield return new WaitForSecondsRealtime(.45f);
|
||||
float harborOverview = harbor.OrbitVerticalSpan;
|
||||
float farDeckFocus = deckAmbience.Focus;
|
||||
Vector3 harborCenter = harbor.OrbitTarget;
|
||||
harbor.Zoom(-90, new Vector2(.56f, .54f));
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
if (!CheckSmoke(harbor.OrbitVerticalSpan < harborOverview * .22f && harbor.OrbitCameraIsClear
|
||||
&& Vector3.Distance(harborCenter, harbor.OrbitTarget) > 2f, "Harbor wheel reaches close inspection and follows the pointer"))
|
||||
&& Vector3.Distance(harborCenter, harbor.OrbitTarget) > 2f, "Harbor wheel reaches close inspection and follows the pointer")
|
||||
|| !CheckSmoke(deckAmbience.Focus > farDeckFocus + .35f && deckAmbience.Level(DeckSound.Deck) > .05f,
|
||||
$"Zooming in brings up local deck audio ({farDeckFocus:F2} to {deckAmbience.Focus:F2}, deck {deckAmbience.Level(DeckSound.Deck):F2})"))
|
||||
yield break;
|
||||
harbor.Zoom(90);
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
@@ -56,6 +67,16 @@ namespace Soundings
|
||||
yield return new WaitForSecondsRealtime(.55f);
|
||||
yield return CaptureSmoke(directory, "02a-harbor-close-up");
|
||||
harbor.ResetView(true);
|
||||
int laundry = Ship.CrewCount(CrewRole.Laundry), treasury = company.Cash;
|
||||
int recruitment = CrewMarket.HireFee(Ship, CrewRole.Laundry), dailyPayroll = Ship.DailyPayroll;
|
||||
if (!SubmitSmoke("harbor-crew-office") || !SubmitSmoke($"crew-hire-{(int)CrewRole.Laundry}")
|
||||
|| !CheckSmoke(page == CrewOfficePage && Ship.CrewCount(CrewRole.Laundry) == laundry + 1
|
||||
&& company.Cash == treasury - recruitment && Ship.DailyPayroll > dailyPayroll,
|
||||
"Recruiting crew at the office spends cash and adds to voyage payroll"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "02b-crew-office");
|
||||
if (!SubmitSmoke("nav-0"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("plan-voyage") || !CheckSmoke(page == 3 && destination == 1 && guideContext == GuideStep.Fare, "Set course and fare guide"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "03-passage-chart");
|
||||
@@ -79,7 +100,8 @@ namespace Soundings
|
||||
yield break;
|
||||
if (!SubmitSmoke("dispatch") || !CheckSmoke(underway != null && livePassage != null && Ship.Port == 0
|
||||
&& company.Voyages == 0 && PassageDuration(underway) >= 175 && livePassage.Assisted && underway.Weather == WeatherCondition.Calm
|
||||
&& underway.Plan?.FoodUnits == 1120 && underway.Plan.Program == EntertainmentProgram.LiveMusic,
|
||||
&& underway.Plan?.FoodUnits == 1120 && underway.Plan.Program == EntertainmentProgram.LiveMusic
|
||||
&& underway.Crew == Ship.DailyPayroll * underway.Days && livePassage.AssignedCrew(CrewRole.Laundry) == laundry + 1,
|
||||
"Cast off into an assisted live crossing"))
|
||||
yield break;
|
||||
if (!CheckSmoke(harbor.PortCinematicActive && Harbor.PortCinematicDuration < 5
|
||||
@@ -237,6 +259,20 @@ namespace Soundings
|
||||
|| !CheckSmoke(livePassage.GalleyBoost, "Extend galley service"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "06c-galley");
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
if (!CheckSmoke(deckAmbience.Level(DeckSound.Galley) > .04f, "The galley has its own local audio")
|
||||
|| !SubmitSmoke("service-area-6") || !CheckSmoke(passageServiceArea == 6 && harbor.FirstPersonPositionIsClear
|
||||
&& livePassage.LaundryCapacity > 0, "Explore the crewed laundry"))
|
||||
yield break;
|
||||
yield return new WaitForSecondsRealtime(.7f);
|
||||
if (!CheckSmoke(deckAmbience.Level(DeckSound.Laundry) > .04f && deckAmbience.Level(DeckSound.Laundry) > deckAmbience.Level(DeckSound.Galley),
|
||||
"Walking into the laundry changes the local mix")
|
||||
|| !SubmitSmoke("service-operate") || !CheckSmoke(livePassage.LaundryBoost, "Run an extra laundry shift at sea"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "06d-laundry");
|
||||
if (!SubmitSmoke("passage-crew-manifest") || !CheckSmoke(root.Q("crew-manifest") != null,
|
||||
"Review the signed roster and laundry load while underway") || !SubmitSmoke("crew-manifest-close"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("service-area-2") || !CheckSmoke(passageServiceArea == 2, "Inspect stores")
|
||||
|| !SubmitSmoke("service-area-3") || !SubmitSmoke("service-operate") || !CheckSmoke(livePassage.RepairCredit > 0, "Service machinery")
|
||||
|| !SubmitSmoke("service-area-4") || !SubmitSmoke("service-operate") || !CheckSmoke(livePassage.PumpsBoost, "Boost freshwater pumps")
|
||||
@@ -684,7 +720,7 @@ namespace Soundings
|
||||
"Resolve the late group and clear the next departure"))
|
||||
yield break;
|
||||
|
||||
Debug.Log($"Soundings player smoke passed at {Screen.width} × {Screen.height}.");
|
||||
Debug.Log($"Big Ship Tycoon player smoke passed at {Screen.width} × {Screen.height}.");
|
||||
Application.Quit(0);
|
||||
}
|
||||
|
||||
@@ -722,7 +758,7 @@ namespace Soundings
|
||||
{
|
||||
if (!condition)
|
||||
{
|
||||
Debug.LogError("Soundings player smoke failed: " + label);
|
||||
Debug.LogError("Big Ship Tycoon player smoke failed: " + label);
|
||||
Application.Quit(1);
|
||||
}
|
||||
return condition;
|
||||
|
||||
Reference in New Issue
Block a user