Galaxy.IsPrelude is the one owner of whether a run is the prelude: ActionGameManager.IsTutorial and PlayerSettings.TutorialPassed are cut
IsTutorial duplicated Galaxy.IsPrelude; its readers read CurrentGalaxy.IsPrelude, and RunSave.Capture writes SavedGame.IsTutorial from galaxy.IsPrelude with no isTutorial argument. TutorialPassed was never written and its only reader was New Game's unreachable main-galaxy branch, which goes with it (S2 brings the main galaxy back as a scenario). spawnturret's two identical generator branches collapse to one. Old player.cc files still load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c37d6adfa8
commit
8a0a29e0de
6 changed files with 60 additions and 46 deletions
|
|
@ -111,7 +111,6 @@ public class MainMenu : MonoBehaviour
|
|||
{
|
||||
try { RunSave.RequireDesigns(cache, saved); }
|
||||
catch (InvalidOperationException error) { Refuse("Cannot continue this run", error.Message); return; }
|
||||
ActionGameManager.IsTutorial = saved.IsTutorial;
|
||||
ActionGameManager.CurrentGalaxy = new Galaxy(cache, saved, Debug.Log);
|
||||
EnterGame();
|
||||
});
|
||||
|
|
@ -130,29 +129,6 @@ public class MainMenu : MonoBehaviour
|
|||
Dialog.AddProperty(() => generatorState);
|
||||
Dialog.Show();
|
||||
|
||||
if (ActionGameManager.PlayerSettings.TutorialPassed)
|
||||
{
|
||||
var backgroundSettings = MessagePackSerializer.Deserialize<SectorBackgroundSettings>(
|
||||
MessagePackSerializer.Serialize(Settings.SectorBackgroundSettings));
|
||||
backgroundSettings.NoisePosition = Random.value * 1000;
|
||||
ActionGameManager.IsTutorial = false;
|
||||
Task.Run(() =>
|
||||
{
|
||||
var sector = new Galaxy(
|
||||
Settings.SectorGenerationSettings,
|
||||
backgroundSettings,
|
||||
Settings.NameGeneratorSettings,
|
||||
ActionGameManager.CultCache,
|
||||
Debug.Log,
|
||||
setState);
|
||||
Observable.NextFrame().Subscribe(_ =>
|
||||
{
|
||||
ActionGameManager.CurrentGalaxy = sector;
|
||||
EnterGame();
|
||||
});
|
||||
}).ContinueWith(t => Debug.LogException(t.Exception), TaskContinuationOptions.OnlyOnFaulted);
|
||||
}
|
||||
else
|
||||
{
|
||||
var backgroundSettings = MessagePackSerializer.Deserialize<SectorBackgroundSettings>(
|
||||
MessagePackSerializer.Serialize(Settings.TutorialBackgroundSettings));
|
||||
|
|
@ -163,7 +139,6 @@ public class MainMenu : MonoBehaviour
|
|||
setState($"Finding Galaxy Position: iteration {iteration++}");
|
||||
} while (backgroundSettings.CloudDensity(float2(0.5f)) < .5f);
|
||||
|
||||
ActionGameManager.IsTutorial = true;
|
||||
Task.Run(() =>
|
||||
{
|
||||
var sector = new Galaxy(
|
||||
|
|
|
|||
Loading…
Reference in a new issue