Add manual helm, grounded interiors, and taller ship classes
This commit is contained in:
@@ -291,14 +291,14 @@ namespace Soundings
|
||||
AddText(heading, used ? "Fitted for service · 72% condition at delivery" : hull.Description, "ship-work-detail");
|
||||
var stamp = Add(titleBar, "work-yard-stamp");
|
||||
AddText(stamp, "DELIVERY AT MIAMI", "work-caption");
|
||||
AddText(stamp, $"{hull.MaxDecks} decks max · {hull.Columns * hull.Rows} berths per deck · {hull.Tank} t fuel", "work-yard-specs");
|
||||
AddText(stamp, $"{hull.StarterDecks} decks delivered · {hull.MaxDecks} max · {hull.Tank} t fuel", "work-yard-specs");
|
||||
|
||||
var slipway = Add(work, "work-slipway");
|
||||
slipway.generateVisualContent += context => DrawYardElevation(context, hullIndex, used);
|
||||
var markings = Add(slipway, "work-draft-markings");
|
||||
markings.pickingMode = PickingMode.Ignore;
|
||||
AddText(markings, "STARBOARD ELEVATION", "work-caption");
|
||||
AddText(markings, used ? "FITTED HULL" : $"BARE HULL / {Market.FirstDecks} STARTER DECKS", "work-caption");
|
||||
AddText(markings, used ? "FITTED HULL" : $"BARE HULL / {hull.StarterDecks} STARTER DECKS", "work-caption");
|
||||
|
||||
var inventory = Add(work, "work-ship-inventory");
|
||||
for (int item = 0; item < Offers.Length; item++)
|
||||
@@ -534,13 +534,14 @@ namespace Soundings
|
||||
Path(.026f,.609f, .119f,.627f, .885f,.627f, .959f,.579f);
|
||||
pen.Stroke();
|
||||
|
||||
int levels = Market.FirstDecks;
|
||||
int levels = Market.Hulls[hullIndex].StarterDecks;
|
||||
int allowedDecks = Market.Hulls[hullIndex].MaxDecks;
|
||||
const float deckRise = .047f;
|
||||
pen.strokeColor = new Color(DraftFine.r, DraftFine.g, DraftFine.b, .28f);
|
||||
pen.BeginPath();
|
||||
for (int level = levels; level < allowedDecks; level++)
|
||||
{
|
||||
float y = .561f - level * .068f;
|
||||
float y = .561f - level * deckRise;
|
||||
float left = .079f + level * .031f;
|
||||
float right = .872f - level * .04f;
|
||||
for (float x = left; x < right; x += .022f)
|
||||
@@ -549,14 +550,14 @@ namespace Soundings
|
||||
pen.Stroke();
|
||||
for (int level = 0; level < levels; level++)
|
||||
{
|
||||
float bottom = .561f - level * .068f;
|
||||
float bottom = .561f - level * deckRise;
|
||||
float left = .079f + level * .031f;
|
||||
float right = .872f - level * .04f;
|
||||
pen.fillColor = new Color(.17f + .022f * level, .29f, .30f);
|
||||
pen.strokeColor = DraftFine;
|
||||
pen.lineWidth = 1.25f;
|
||||
pen.BeginPath();
|
||||
Path(left,bottom, left + .006f,bottom - .055f, right - .036f,bottom - .062f, right,bottom);
|
||||
Path(left,bottom, left + .006f,bottom - .038f, right - .036f,bottom - .044f, right,bottom);
|
||||
pen.ClosePath();
|
||||
pen.Fill();
|
||||
pen.Stroke();
|
||||
@@ -564,14 +565,14 @@ namespace Soundings
|
||||
pen.BeginPath();
|
||||
if (used)
|
||||
for (float x = left + .022f; x < right - .04f; x += .028f)
|
||||
Path(x,bottom - .036f, x + .014f,bottom - .036f);
|
||||
Path(x,bottom - .022f, x + .014f,bottom - .022f);
|
||||
else
|
||||
for (float x = left + .025f; x < right - .04f; x += .1f)
|
||||
Path(x,bottom - .026f, x + .050f,bottom - .026f);
|
||||
Path(x,bottom - .019f, x + .050f,bottom - .019f);
|
||||
pen.Stroke();
|
||||
}
|
||||
|
||||
float top = .57f - levels * .068f;
|
||||
float top = .57f - levels * deckRise;
|
||||
pen.fillColor = new Color(.38f, .30f, .19f);
|
||||
pen.strokeColor = DraftGold;
|
||||
pen.BeginPath();
|
||||
|
||||
Reference in New Issue
Block a user