From ef64da6c1b814e7888ff0fc8753095f184bfc471 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 9 Apr 2017 19:40:41 -0400 Subject: [PATCH] Start DevX MCC story properly --- ShiftOS.WinForms/Resources/Shiftorium.txt | 2 +- ShiftOS.WinForms/WinformsDesktop.cs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ShiftOS.WinForms/Resources/Shiftorium.txt b/ShiftOS.WinForms/Resources/Shiftorium.txt index adf187e..ae4cb0a 100644 --- a/ShiftOS.WinForms/Resources/Shiftorium.txt +++ b/ShiftOS.WinForms/Resources/Shiftorium.txt @@ -220,7 +220,7 @@ { Name: "AL MUD Control Centre", Cost: 150, - Dependencies: "mud_fundamentals;app_launcher", + Dependencies: "mud_control_centre;app_launcher", Category: "Device Drivers", Description: "Want to access your MUD profile, legions, jobs and shops, but don't want to open your Terminal? This upgrade is for you!" }, diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index 7a346e3..5a42106 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -58,6 +58,23 @@ namespace ShiftOS.WinForms public WinformsDesktop() { InitializeComponent(); + Shiftorium.Installed += () => + { + //Only if the DevX Legions story hasn't been experienced yet. + if (!Shiftorium.UpgradeInstalled("devx_legions")) + { + //Check for shiftnet story experience + if (Shiftorium.UpgradeInstalled("shiftnet")) + { + //Check for saturation of the "GUI" upgrade set + if (Shiftorium.IsCategoryEmptied("GUI")) + { + //Start the MUD Control Centre story. + Story.Start("devx_legions"); + } + } + } + }; this.TopMost = false; NotificationDaemon.NotificationMade += (note) =>