Add fleet save slots and rotatable onboard venues

This commit is contained in:
josh
2026-11-28 16:04:48 -05:00
parent a9472edc35
commit c570a64840
37 changed files with 1970 additions and 310 deletions

View File

@@ -171,6 +171,10 @@ namespace Soundings
case Facility.CocktailLounge:
case Facility.GrandTheater:
case Facility.ResortPool:
case Facility.Shop:
case Facility.ShoppingArcade:
case Facility.Spa:
case Facility.WaterPark:
BuildWindow(floor, along, outward, side, width * .88f, 1.35f, 1.23f, 3,
(i + deck * 2) % 6 == 0 ? Paint.Lounge : Paint.Glass);
break;
@@ -445,12 +449,15 @@ namespace Soundings
Offset = DeckOffset(ship.Hull.Length, deck);
HalfBeam = DeckHalfBeam(ship.Hull.Beam * .5f, deck);
Facility[] cells = ship.Decks[deck].Cells;
Resort = System.Array.IndexOf(cells, Facility.ResortPool) >= 0;
bool waterPark = System.Array.IndexOf(cells, Facility.WaterPark) >= 0;
Resort = waterPark || System.Array.IndexOf(cells, Facility.ResortPool) >= 0;
Theater = System.Array.IndexOf(cells, Facility.GrandTheater) >= 0;
HasPool = Resort || ship.Count(Facility.Amenity) > 0;
PoolCenter = Offset + Length * (Resort ? .033f : .01f);
PoolHalfSize = Resort ? new Vector2(Mathf.Min(7.15f, Length * .089f), Mathf.Min(2.77f, HalfBeam * .39f))
: new Vector2(PoolHalfLength, PoolHalfWidth);
PoolHalfSize = waterPark
? new Vector2(Mathf.Min(8.95f, Length * .105f), Mathf.Min(3f, HalfBeam * .40f))
: Resort ? new Vector2(Mathf.Min(7.15f, Length * .089f), Mathf.Min(2.77f, HalfBeam * .39f))
: new Vector2(PoolHalfLength, PoolHalfWidth);
StageCenter = Offset - Length * .376f;
StageHalfWidth = Mathf.Min(2.85f, HalfBeam * .39f);
}