mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
massive shiftletters improvements
This commit is contained in:
parent
973512118b
commit
4e00fc827d
1 changed files with 16 additions and 0 deletions
|
@ -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<word.Length; i++)
|
||||
|
@ -112,6 +126,8 @@ namespace ShiftOS.WinForms.Applications
|
|||
|
||||
}
|
||||
|
||||
string lastword = "";
|
||||
|
||||
private void tbguess_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.tbguess.Text.Length == 1)
|
||||
|
|
Loading…
Reference in a new issue