Unlock expanded venues and manage concurrent fleet voyages

This commit is contained in:
josh
2026-11-28 15:36:55 -05:00
parent 636a0e2cf8
commit a9472edc35
33 changed files with 2094 additions and 363 deletions

View File

@@ -5,20 +5,28 @@ namespace Soundings
{
public enum WeatherCondition { Calm, Swell, Storm }
public enum Facility { Empty, Cabin, Dining, Entertainment, Tank, Bar, Amenity, Galley, Stores, Water, Waste, Workshop }
public enum Facility
{
Empty, Cabin, Dining, Entertainment, Tank, Bar, Amenity, Galley, Stores, Water, Waste, Workshop,
Suite, GrandSuite, Restaurant, GrandTheater, ResortPool, CocktailLounge, Extension
}
public sealed class FacilitySpec
{
public readonly string Name, Mark, Details;
public readonly int Price, Capacity;
public readonly int Price, Capacity, Length, MinimumHull, FarePremiumPercent;
public FacilitySpec(string name, string mark, string details, int price, int capacity)
public FacilitySpec(string name, string mark, string details, int price, int capacity,
int length = 1, int minimumHull = Market.Coastal, int farePremiumPercent = 0)
{
Name = name;
Mark = mark;
Details = details;
Price = price;
Capacity = capacity;
Length = length;
MinimumHull = minimumHull;
FarePremiumPercent = farePremiumPercent;
}
}
@@ -96,6 +104,8 @@ namespace Soundings
public const int StarterPortCount = 8;
public static int UsedPrice(int hull) => hull == 0 ? 105000 : 245000;
public const int MaxFleet = 8;
public const int Coastal = 0;
public const int Regional = 1;
public const int Ocean = 2;
public const int Bermuda = 5;
public const int Lisbon = 7;
@@ -115,7 +125,14 @@ namespace Soundings
new FacilitySpec("Stores", "ST", "+900 meal portions of storage", 17600, 900),
new FacilitySpec("Water plant", "WP", "+14,000 L storage and +6,000 L/day output", 25400, 14000),
new FacilitySpec("Sewage", "SW", "+10,000 L buffer and +7,000 L/day treatment", 19800, 10000),
new FacilitySpec("Workshop", "WS", "Increases the benefit of onboard servicing", 18700, 2)
new FacilitySpec("Workshop", "WS", "Increases the benefit of onboard servicing", 18700, 2),
new FacilitySpec("Suites", "SU", "28 suite berths · 50% above base fare", 28500, 28, 2, Regional, 50),
new FacilitySpec("Grand suites", "GS", "36 suite berths · 90% above base fare", 46600, 36, 3, Ocean, 90),
new FacilitySpec("Restaurant", "RT", "108 seats · 3 services", 26200, 108, 2, Regional),
new FacilitySpec("Grand theater", "GT", "256 show seats", 52300, 256, 3, Ocean),
new FacilitySpec("Resort pool", "RP", "216 amenity admissions per service", 57200, 216, 3, Regional),
new FacilitySpec("Cocktail lounge", "CL", "156 drink orders per service", 32100, 156, 2, Regional),
new FacilitySpec("Continued berth", "", "", 0, 0)
};
public static readonly IReadOnlyList<HullSpec> Hulls = new[]