Add MEGA Ocean Liner, split decks, and detailed ship materials
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user