Add MEGA Ocean Liner, split decks, and detailed ship materials

This commit is contained in:
josh
2026-11-28 21:02:42 -05:00
parent ce0d38c8de
commit 46624bf5ba
47 changed files with 2042 additions and 382 deletions

View File

@@ -66,7 +66,7 @@ namespace BigShipTycoon
bool worked = livePassage.TryWorkStation(station, out string result);
if (worked)
AnnounceStation(station);
if (worked && (station is >= StationKind.Engine and <= StationKind.Waste or StationKind.Laundry))
if (worked && passageServiceArea >= 0 && (station is >= StationKind.Engine and <= StationKind.Waste or StationKind.Laundry))
{
int area = station == StationKind.Laundry ? 6 : (int)station - (int)StationKind.Engine;
if (area != passageServiceArea)
@@ -109,6 +109,11 @@ namespace BigShipTycoon
private string StationDeck(StationKind station)
{
if (Ship.HasAftTerrace)
for (int i = 0; i < Ship.Decks.Count; i++)
foreach (Facility cell in Ship.Decks[i].Cells)
if (DeckPassengers.FacilityStation(cell) == station)
return $"Deck {i + 1}";
if (station <= StationKind.Waste || station == StationKind.Laundry)
return "Service deck";