Fix port cinematics and expand ship attractions

This commit is contained in:
josh
2026-11-28 18:39:32 -05:00
parent 2c85a5ba00
commit 56fafba6d9
37 changed files with 936 additions and 101 deletions

View File

@@ -12,6 +12,7 @@ namespace Soundings.Editor
VerifyHullDeckProgression();
VerifyMultiBerthFacilities();
VerifyRotatableFacilities();
VerifySunDeckRefit();
VerifyFlagshipCampaign();
VerifyLiveCrossingSettlement();
VerifyConcurrentSettlement();
@@ -20,7 +21,34 @@ namespace Soundings.Editor
VerifyPortOrders();
VerifyMultiStopItinerary();
VerifyShoreExcursions();
Debug.Log("Big Ship Tycoon economy verification passed for both starts, pricing, fuel, enlarged venues, fleet settlements, saves, weather, ship systems, crew payroll, laundry, port orders, multi-stop itineraries and shore excursions.");
Debug.Log("Big Ship Tycoon economy verification passed for both starts, pricing, fuel, venue and sun deck refits, fleet settlements, saves, weather, ship systems, crew payroll, laundry, port orders, multi-stop itineraries and shore excursions.");
}
private static void VerifySunDeckRefit()
{
Company company = Company.Start(false);
Ship ship = company.ActiveShip;
int cash = company.Cash, originalCapacity = ship.PoolCapacity;
var plan = new SunDeckPlan
{
Pool = SunPoolStyle.Compact,
Shape = SunPoolShape.Oval,
Position = SunPoolPosition.Aft,
Attraction = SunAttraction.MiniGolf,
ExtraLoungers = true
};
Require(company.ChangeSunDeck(ship, plan) == null && company.Cash < cash && ship.PoolCapacity > originalCapacity,
"a pool and miniature golf course cost cash and add amenity places");
int remaining = company.Cash;
Require(company.ChangeSunDeck(ship, plan) == null && company.Cash == remaining, "unchanged sun deck refits do not charge again");
Company restored = JsonUtility.FromJson<Company>(JsonUtility.ToJson(company));
Require(restored.CanLoad() && restored.ActiveShip.SunDeckPlan.Pool == plan.Pool
&& restored.ActiveShip.SunDeckPlan.Shape == plan.Shape && restored.ActiveShip.SunDeckPlan.Position == plan.Position
&& restored.ActiveShip.SunDeckPlan.Attraction == plan.Attraction && restored.ActiveShip.SunDeckPlan.ExtraLoungers,
"sun deck fittings and placement survive a career save");
plan.Attraction = SunAttraction.RollerCoaster;
Require(company.ChangeSunDeck(ship, plan) != null && company.Cash == remaining && ship.SunDeckPlan.Attraction == SunAttraction.MiniGolf,
"a small hull cannot install a roller coaster or spend money attempting it");
}
private static void VerifyCrewAndLaundry()