Add manual helm, grounded interiors, and taller ship classes
This commit is contained in:
@@ -9,6 +9,7 @@ namespace Soundings.Editor
|
||||
{
|
||||
VerifyUsedStartAndProfit();
|
||||
VerifyFinancedStartAndConstruction();
|
||||
VerifyHullDeckProgression();
|
||||
VerifyFlagshipCampaign();
|
||||
VerifyLiveCrossingSettlement();
|
||||
VerifyStormAndShipSystems();
|
||||
@@ -101,6 +102,34 @@ namespace Soundings.Editor
|
||||
Debug.Log($"Global circuit returned to Miami on day {company.Day} with ${company.Cash:N0} cash.");
|
||||
}
|
||||
|
||||
private static void VerifyHullDeckProgression()
|
||||
{
|
||||
Company company = Company.Start(false);
|
||||
company.Cash = 2_000_000;
|
||||
company.Reputation = 70;
|
||||
company.Voyages = 12;
|
||||
Ship coastal = company.ActiveShip;
|
||||
Require(company.AddDeck(coastal) == null, "expand Coastal to its deck limit");
|
||||
Require(company.Acquire(1, true, null) == null, "buy a taller Regional hull");
|
||||
Ship regional = company.ActiveShip;
|
||||
Require(regional.Decks.Count == 4 && regional.Decks.Count > coastal.Decks.Count
|
||||
&& regional.Hull.Length > coastal.Hull.Length, "new Regional is bigger than a fully expanded Coastal");
|
||||
Require(company.AddDeck(regional) == null, "expand Regional to its deck limit");
|
||||
Require(company.Acquire(Market.Ocean, false, "Crownhaven") == null, "commission a taller Ocean Class hull");
|
||||
Ship ocean = company.ActiveShip;
|
||||
Require(ocean.Decks.Count == 6 && ocean.Decks.Count > regional.Decks.Count
|
||||
&& ocean.Hull.Length > regional.Hull.Length, "new Ocean Class is bigger than a fully expanded Regional");
|
||||
|
||||
Require(company.Build(regional, 2, 0, Facility.Stores) == null, "fit an existing Regional deck");
|
||||
regional.Decks.RemoveRange(3, regional.Decks.Count - 3);
|
||||
ocean.Decks.RemoveRange(2, ocean.Decks.Count - 2);
|
||||
Require(company.CanLoad(), "legacy hulls remain loadable");
|
||||
company.RestoreHullDecks();
|
||||
company.RestoreHullDecks();
|
||||
Require(regional.Decks.Count == 4 && regional.Decks[2].Cells[0] == Facility.Stores
|
||||
&& ocean.Decks.Count == 6, "older saves gain missing decks without losing their fit-out");
|
||||
}
|
||||
|
||||
private static void VerifyLiveCrossingSettlement()
|
||||
{
|
||||
Company company = Company.Start(false);
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Soundings.Editor
|
||||
EditorBuildSettings.scenes = new[] { new EditorBuildSettingsScene(ScenePath, true) };
|
||||
PlayerSettings.companyName = "Soundings";
|
||||
PlayerSettings.productName = "Soundings";
|
||||
PlayerSettings.bundleVersion = "0.3.0";
|
||||
PlayerSettings.bundleVersion = "0.4.0";
|
||||
PlayerSettings.defaultScreenWidth = 1920;
|
||||
PlayerSettings.defaultScreenHeight = 1080;
|
||||
PlayerSettings.fullScreenMode = FullScreenMode.FullScreenWindow;
|
||||
|
||||
Reference in New Issue
Block a user