Add riverboat captain career and distinct ship classes
Add class-specific vessel geometry and sea motion, a guided helm qualification path, dockside sailing orders, and local excursions at all 24 ports.
This commit is contained in:
@@ -100,7 +100,7 @@ namespace BigShipTycoon
|
||||
promenade.Crowd.SetActive(false);
|
||||
}
|
||||
|
||||
public float FloorHeight(int index) => VesselExterior.DeckBase + index * VesselExterior.DeckSpacing + .08f;
|
||||
public float FloorHeight(int index) => VesselExterior.BaseDeck(ship) + index * VesselExterior.DeckSpacing + .08f;
|
||||
|
||||
private (float Aft, float Fore, float HalfWidth) RoomEnvelope(int index)
|
||||
{
|
||||
@@ -118,7 +118,7 @@ namespace BigShipTycoon
|
||||
return new Vector3(envelope.Aft + .85f, FloorHeight(index) + EyeHeight, -envelope.HalfWidth + rowDepth + AisleWidth * .5f);
|
||||
}
|
||||
|
||||
private float BridgeHeight => VesselExterior.DeckBase + ship.Decks.Count * VesselExterior.DeckSpacing;
|
||||
private float BridgeHeight => MegaDeckGeometry.RoofHeight(ship.Decks.Count, SunDeckZone.Sky, ship);
|
||||
private float BridgeHalfWidth => ship.HasAftTerrace
|
||||
? MegaDeckGeometry.ForShip(ship, ship.Decks.Count - 1, ship.Decks.Count).Beam * .58f : beam * .66f;
|
||||
private float BridgeAft => BridgeCenter - 4.45f;
|
||||
@@ -235,7 +235,7 @@ namespace BigShipTycoon
|
||||
float width = plan.HalfBeam;
|
||||
float aft = plan.Offset - plan.Length * .305f;
|
||||
float fore = terrace ? plan.Offset + plan.Length * .31f : Mathf.Min(BridgeCenter - 6.0f, plan.Offset + plan.Length * .17f);
|
||||
int walkers = terrace ? 10 : 7 + ship.HullIndex * 3;
|
||||
int walkers = terrace ? 10 : ship.HullIndex == Market.River ? 4 : 7 + ship.HullIndex * 3;
|
||||
for (int side = -1; side <= 1; side += 2)
|
||||
{
|
||||
for (int i = 0; i < walkers; i++)
|
||||
@@ -337,16 +337,17 @@ namespace BigShipTycoon
|
||||
var interior = new Geometry(this, layout.Interior.transform);
|
||||
var cutaway = new Geometry(this, layout.Cutaway.transform);
|
||||
Vector2[] hull = Outline(.97f, beam * .98f);
|
||||
float baseLevel = VesselExterior.DeckBase;
|
||||
float baseLevel = VesselExterior.BaseDeck(ship);
|
||||
structure.Mesh(0).Loft(hull, Vector2.zero, false,
|
||||
new Vector3(.93f, -1.2f, .69f), new Vector3(.99f, 0, .95f),
|
||||
new Vector3(1f, 2.0f, 1f), new Vector3(1f, baseLevel - .20f, 1f));
|
||||
new Vector3(.93f, ship.HullIndex == Market.River ? -.77f : -1.2f, .69f), new Vector3(.99f, 0, .95f),
|
||||
new Vector3(1f, ship.HullIndex == Market.River ? .67f : 2.0f, 1f), new Vector3(1f, baseLevel - .20f, 1f));
|
||||
structure.Mesh(1).Loft(hull, Vector2.zero, false,
|
||||
new Vector3(1.002f, baseLevel - .21f, 1.003f), new Vector3(1.003f, baseLevel, 1.003f));
|
||||
structure.Mesh(2).Loft(hull, Vector2.zero, true,
|
||||
new Vector3(.998f, baseLevel - .01f, .998f), new Vector3(.998f, baseLevel + .01f, .998f));
|
||||
float stripe = ship.HullIndex == Market.River ? .66f : 3.3f;
|
||||
structure.Mesh(8).Loft(hull, Vector2.zero, false,
|
||||
new Vector3(1.003f, 3.3f, 1.004f), new Vector3(1.003f, 3.37f, 1.004f));
|
||||
new Vector3(1.003f, stripe, 1.004f), new Vector3(1.003f, stripe + .07f, 1.004f));
|
||||
|
||||
Vector2[] outline = hull;
|
||||
for (int layer = 0; layer < index; layer++)
|
||||
@@ -950,7 +951,7 @@ namespace BigShipTycoon
|
||||
|
||||
private void DrawForedeck(Geometry shape)
|
||||
{
|
||||
float level = VesselExterior.DeckBase + .04f;
|
||||
float level = VesselExterior.BaseDeck(ship) + .04f;
|
||||
float from = BridgeFore - 1.44f;
|
||||
float nose = length * .498f;
|
||||
Vector2[] outline =
|
||||
|
||||
Reference in New Issue
Block a user