From 4e00fc827d5f1b57c809858252c4c513100543fe Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Feb 2017 21:58:57 -0500 Subject: [PATCH] massive shiftletters improvements --- ShiftOS.WinForms/Applications/ShiftLetters.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ShiftOS.WinForms/Applications/ShiftLetters.cs b/ShiftOS.WinForms/Applications/ShiftLetters.cs index 0dd1505..2578669 100644 --- a/ShiftOS.WinForms/Applications/ShiftLetters.cs +++ b/ShiftOS.WinForms/Applications/ShiftLetters.cs @@ -83,7 +83,21 @@ namespace ShiftOS.WinForms.Applications "terminal", "textpad" }; + //This can diversify the amount of ShiftOS-related words in the game. + foreach(var upg in Shiftorium.GetDefaults()) + { + foreach(var w in upg.Name.Split(' ')) + { + if (!wordlist.Contains(w.ToLower())) + wordlist.Add(w.ToLower()); + } + } word = wordlist[rng.Next(wordlist.Count)]; + while(word == lastword) + { + word = wordlist[rng.Next(wordlist.Count)]; + } + lastword = word; //to make the game not choose the same word twice or more in a row lbllives.Text = "You have 7 lives left!"; lblword.Text = ""; for (int i=0; i