From cf72b65769809ac77331414aee299112b9bf4b37 Mon Sep 17 00:00:00 2001 From: Trey <32907415+TheEdgeNK@users.noreply.github.com> Date: Sun, 2 Sep 2018 11:56:23 -0400 Subject: WE FIXED THE STORYLINE!!! --- PortEngine/StorylineAPI.cs | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'PortEngine/StorylineAPI.cs') diff --git a/PortEngine/StorylineAPI.cs b/PortEngine/StorylineAPI.cs index db03baf..a109c8b 100644 --- a/PortEngine/StorylineAPI.cs +++ b/PortEngine/StorylineAPI.cs @@ -30,20 +30,10 @@ namespace PortEngine { public class StorylineAPI { - public static bool StorylineStatus = Properties.Settings.Default.storylineStatus; - public static bool IsHijack1Completed = Properties.Settings.Default.hijack1EventCompleted; - public static bool IsChatter1Completed = Properties.Settings.Default.chatter1EventCompleted; - public static string PlayerDisplayName = Properties.Settings.Default.userDisplayName; - static BackgroundWorker WorkerBee = new BackgroundWorker(); - - public static void StorylineState(bool IsStorylineEnabled) - { - StorylineStatus = IsStorylineEnabled; - } public static void StartHijackEvent1(TextBox txtHijack1) { - if (IsHijack1Completed == false) + if (GeneralAPI.HijackStorylineState == 1) { Thread.Sleep(2000); txtHijack1.AppendText("PortOS is now booting..." + Environment.NewLine); @@ -121,7 +111,7 @@ namespace PortEngine public static void StartChatterEvent1(TextBox txtSentMessageDump) { - if (IsChatter1Completed == false) + if (GeneralAPI.ChatterStorylineState == 1) { txtSentMessageDump.AppendText("Adam has entered the channel..." + Environment.NewLine); Thread.Sleep(2000); @@ -133,7 +123,7 @@ namespace PortEngine Thread.Sleep(10000); txtSentMessageDump.AppendText(" Great!" + Environment.NewLine); Thread.Sleep(2000); - txtSentMessageDump.AppendText(" Hello, " + PlayerDisplayName + Environment.NewLine); + txtSentMessageDump.AppendText(" Hello, " + GeneralAPI.PlayerName + Environment.NewLine); Thread.Sleep(2000); txtSentMessageDump.AppendText(" If you open your app launcher, there is an application called the 'QuantumNet Browser'" + Environment.NewLine); Thread.Sleep(2000); @@ -161,10 +151,6 @@ namespace PortEngine Thread.Sleep(2000); txtSentMessageDump.AppendText("Adam has disconnected from the channel. " + Environment.NewLine); } - else - { - txtSentMessageDump.AppendText(PlayerDisplayName + " has entered the channel!"); - } } -- cgit v1.2.3