Add MEGA Ocean Liner, split decks, and detailed ship materials
This commit is contained in:
@@ -810,6 +810,82 @@ namespace BigShipTycoon
|
||||
"Resolve the late group and clear the next departure"))
|
||||
yield break;
|
||||
|
||||
company.Cash = 12_000_000;
|
||||
company.Voyages = 20;
|
||||
company.Reputation = 85;
|
||||
company.Flagship = false;
|
||||
if (!SubmitSmoke("nav-2") || !SubmitSmoke("yard-5")
|
||||
|| !CheckSmoke(root.Q<Button>("buy-ship")?.enabledInHierarchy == false, "The MEGA liner requires the flagship charter"))
|
||||
yield break;
|
||||
company.Flagship = true;
|
||||
Render();
|
||||
vesselName = root.Q<TextField>("vessel-name");
|
||||
if (!CheckSmoke(vesselName != null, "Name the MEGA Ocean Liner commission"))
|
||||
yield break;
|
||||
vesselName.value = "Aster Meridian";
|
||||
if (!SubmitSmoke("buy-ship") || !CheckSmoke(Ship.HullIndex == Market.Mega && Ship.Decks.Count == 12 && Ship.HasAftTerrace,
|
||||
"Commission the 300-meter split-deck hull with twelve decks")
|
||||
|| !SubmitSmoke("add-deck") || !SubmitSmoke("add-deck") || !SubmitSmoke("add-deck")
|
||||
|| !CheckSmoke(Ship.Decks.Count == 15, "Expand the MEGA liner to fifteen decks"))
|
||||
yield break;
|
||||
|
||||
if (!SubmitSmoke("nav-1") || !SubmitSmoke("deck-0") || !SubmitSmoke("facility-mega-venues")
|
||||
|| !SubmitSmoke($"facility-{(int)Facility.SkyResidence}") || !SubmitSmoke("berth-2")
|
||||
|| !CheckSmoke(company.Build(Ship, 2, 4, Facility.MarketHall) == null
|
||||
&& company.Build(Ship, 13, 5, Facility.OceanArena) == null && company.Build(Ship, 11, 6, Facility.ThermalSpa) == null
|
||||
&& company.Build(Ship, 4, 5, Facility.ProductionGalley) == null && company.Refuel(Ship, 350) == null,
|
||||
"Commission class-exclusive accommodation, entertainment, and service capacity"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("sun-deck-open") || !SubmitSmoke("sun-zone-terrace") || !SubmitSmoke("sun-pool-lagoon")
|
||||
|| !SubmitSmoke("sun-shape-oval"))
|
||||
yield break;
|
||||
SunDeckPlacement lagoon = FindSunFittingSmoke(SunAttraction.Pool, 0, .50f, zone: SunDeckZone.AftTerrace);
|
||||
if (!CheckSmoke(lagoon.Kind == SunAttraction.Pool, "The lower aft terrace fits a lagoon pool")
|
||||
|| !SubmitSmoke("sun-attraction-pool") || !SubmitSunCellSmoke(lagoon))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "23-mega-terrace-plan");
|
||||
if (!SubmitSmoke("sun-zone-sky"))
|
||||
yield break;
|
||||
SunDeckPlacement garden = FindSunFittingSmoke(SunAttraction.SkyGarden, 0, .49f);
|
||||
SunDeckPlacement megaCoaster;
|
||||
if (!CheckSmoke(garden.Kind == SunAttraction.SkyGarden, "The upper deck fits the MEGA sky garden")
|
||||
|| !SubmitSmoke("sun-attraction-garden") || !SubmitSunCellSmoke(garden))
|
||||
yield break;
|
||||
megaCoaster = FindSunFittingSmoke(SunAttraction.RollerCoaster, 0, .30f);
|
||||
if (!CheckSmoke(megaCoaster.Kind == SunAttraction.RollerCoaster, "A coaster fits alongside the sky garden")
|
||||
|| !SubmitSmoke("sun-attraction-coaster") || !SubmitSunCellSmoke(megaCoaster)
|
||||
|| !CheckSmoke(VesselExterior.SunDeck(Ship, SunDeckZone.AftTerrace).HasPool
|
||||
&& VesselExterior.SunDeck(Ship).Venues.Length == 2 && Ship.OutdoorAmenityCapacity == 649,
|
||||
"Both outdoor levels contribute their own admissions"))
|
||||
yield break;
|
||||
if (!SubmitSmoke("nav-0") || !SubmitSmoke("plan-voyage") || !SubmitSmoke("port-1") || !SubmitSmoke("weather-calm")
|
||||
|| !SubmitSmoke("dispatch") || !CheckSmoke(underway != null, "The MEGA liner can depart on a scheduled voyage"))
|
||||
yield break;
|
||||
holdCinematicClock = true;
|
||||
yield return CapturePortAndSkipSmoke(directory, "24-mega-departure", 1.4f);
|
||||
if (passageBusinessOpen && !SubmitSmoke("passage-business"))
|
||||
yield break;
|
||||
harbor.Orbit(new Vector2(-83f, 220f));
|
||||
yield return new WaitForSecondsRealtime(.65f);
|
||||
yield return CaptureSmoke(directory, "25-mega-liner-underway");
|
||||
if (!SubmitSmoke("passage-deck-13"))
|
||||
yield break;
|
||||
harbor.Zoom(-3f, new Vector2(.50f, .52f));
|
||||
yield return new WaitForSecondsRealtime(.5f);
|
||||
yield return CaptureSmoke(directory, "26-mega-arena-cutaway");
|
||||
if (!SubmitSmoke("passage-aft-terrace") || !SubmitSmoke("passage-explore")
|
||||
|| !CheckSmoke(passageExploring && harbor.FirstPersonPositionIsClear
|
||||
&& Mathf.Abs(harbor.FirstPersonPosition.y - 1.64f - MegaDeckGeometry.RoofHeight(Ship.Decks.Count, SunDeckZone.AftTerrace)) < .01f,
|
||||
"Walk the lower aft terrace at its actual deck height"))
|
||||
yield break;
|
||||
yield return CaptureSmoke(directory, "27-mega-terrace-walk");
|
||||
if (!SubmitSmoke("company-menu") || !SubmitSmoke("career-save") || !SubmitSmoke("career-load-open") || !SubmitSmoke("career-load-0")
|
||||
|| !CheckSmoke(Ship.HullIndex == Market.Mega && Ship.Decks.Count == 15 && Ship.Count(Facility.OceanArena) == 1
|
||||
&& Ship.SunDeckFor(SunDeckZone.AftTerrace).Pool == SunPoolStyle.Lagoon && Ship.OutdoorAmenityCapacity == 649
|
||||
&& underway != null && passageSunZone == SunDeckZone.AftTerrace && passageExploring && harbor.FirstPersonPositionIsClear,
|
||||
"A mid-voyage reload keeps the MEGA class, both layouts, and the aft terrace view"))
|
||||
yield break;
|
||||
|
||||
Debug.Log($"Big Ship Tycoon player smoke passed at {Screen.width} × {Screen.height}.");
|
||||
Application.Quit(0);
|
||||
}
|
||||
@@ -828,9 +904,10 @@ namespace BigShipTycoon
|
||||
return -1;
|
||||
}
|
||||
|
||||
private SunDeckPlacement FindSunFittingSmoke(SunAttraction kind, int rotation, float fore, int replacing = -1, bool fitQuarterTurn = false)
|
||||
private SunDeckPlacement FindSunFittingSmoke(SunAttraction kind, int rotation, float fore, int replacing = -1,
|
||||
bool fitQuarterTurn = false, SunDeckZone zone = SunDeckZone.Sky)
|
||||
{
|
||||
var grid = new SunDeckGrid(Ship);
|
||||
var grid = new SunDeckGrid(Ship, zone: zone);
|
||||
var best = default(SunDeckPlacement);
|
||||
float target = Mathf.Lerp(grid.Area.xMin, grid.Area.xMax, fore);
|
||||
float score = float.PositiveInfinity;
|
||||
@@ -838,10 +915,10 @@ namespace BigShipTycoon
|
||||
for (int row = 0; row < grid.Rows; row++)
|
||||
{
|
||||
var placement = new SunDeckPlacement(kind, column, row, rotation);
|
||||
if (company.SunDeckPlacementBlock(Ship, placement, replacing) != null
|
||||
|| (fitQuarterTurn && company.SunDeckPlacementBlock(Ship, new SunDeckPlacement(kind, column, row, rotation + 1), replacing) != null))
|
||||
if (company.SunDeckPlacementBlock(Ship, placement, replacing, zone) != null
|
||||
|| (fitQuarterTurn && company.SunDeckPlacementBlock(Ship, new SunDeckPlacement(kind, column, row, rotation + 1), replacing, zone) != null))
|
||||
continue;
|
||||
Vector2 center = grid.Bounds(placement, Ship.SunDeckPlan.Pool).center;
|
||||
Vector2 center = grid.Bounds(placement, grid.SelectedPool).center;
|
||||
float candidate = Mathf.Abs(center.x - target) + Mathf.Abs(center.y);
|
||||
if (candidate >= score)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user