Rebrand as Big Ship Tycoon and add crew operations
This commit is contained in:
@@ -17,8 +17,11 @@ namespace Soundings
|
||||
|
||||
private void InitializeCareers()
|
||||
{
|
||||
string path = autoSmoke ? Path.Combine(Path.GetTempPath(), "soundings-careers-" + Guid.NewGuid().ToString("N"))
|
||||
: Path.Combine(Application.persistentDataPath, "Careers");
|
||||
string profile = Application.persistentDataPath;
|
||||
if (Application.platform != RuntimePlatform.WebGLPlayer && Path.GetFileName(profile) == GameTitle)
|
||||
profile = Path.Combine(Path.GetDirectoryName(profile), "Soundings");
|
||||
string path = autoSmoke ? Path.Combine(Path.GetTempPath(), "big-ship-tycoon-careers-" + Guid.NewGuid().ToString("N"))
|
||||
: Path.Combine(profile, "Careers");
|
||||
careers = new CareerStore(path);
|
||||
if (autoSmoke || AdoptCareer(careers.Read(careers.RecentId), false))
|
||||
return;
|
||||
@@ -75,7 +78,7 @@ namespace Soundings
|
||||
pendingStart = null;
|
||||
careerMenu = CareerMenu.Closed;
|
||||
title = !play;
|
||||
page = Ship == null ? 2 : Mathf.Clamp(saved.Page, 0, 4);
|
||||
page = Ship == null && saved.Page != CrewOfficePage ? 2 : Mathf.Clamp(saved.Page, 0, CrewOfficePage);
|
||||
deckIndex = Ship == null ? 0 : Mathf.Clamp(saved.DeckIndex, 0, Ship.Decks.Count - 1);
|
||||
inspectedPort = Ship?.Port ?? 0;
|
||||
yardSelection = 1;
|
||||
@@ -116,7 +119,7 @@ namespace Soundings
|
||||
var entry = new CareerSave
|
||||
{
|
||||
Id = newName != null || careerId == null ? Guid.NewGuid().ToString("N") : careerId,
|
||||
Name = newName ?? careerName ?? "Soundings career",
|
||||
Name = newName ?? careerName ?? "Big Ship Tycoon career",
|
||||
SavedUtc = DateTime.UtcNow.Ticks,
|
||||
Page = page,
|
||||
DeckIndex = deckIndex,
|
||||
|
||||
Reference in New Issue
Block a user