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

@@ -600,6 +600,7 @@ namespace Soundings
foreach (Deck deck in ship.Decks)
for (int cell = 0; cell < deck.Cells.Length; cell++)
layout = unchecked(layout * 109 + (uint)deck.Cells[cell] * 4 + (uint)deck.RotationAt(cell) + 1);
layout = unchecked(layout * 109 + (uint)ship.SunDeckPlanCode);
if (ReferenceEquals(displayedShip, ship) && hullIndex == lastHull && deckCount == lastDecks && layout == lastLayout)
return;
@@ -678,6 +679,8 @@ namespace Soundings
VesselExterior.Paint.DeckCanvas => ("315263", .91f, 0f, 0f, .15f),
VesselExterior.Paint.PortLight => ("D84738", .25f, .05f, .90f, 0f),
VesselExterior.Paint.StarboardLight => ("4DCA8E", .25f, .05f, .90f, 0f),
VesselExterior.Paint.Turf => ("5F8E54", .92f, 0f, 0f, .08f),
VesselExterior.Paint.Fringe => ("375D3D", .95f, 0f, 0f, .12f),
_ => ("318994", .16f, .40f, .05f, .13f)
};
ColorUtility.TryParseHtmlString("#" + hex, out Color color);