From 12fbb760d465661bbcb4bfc350333aac7a07cf1a Mon Sep 17 00:00:00 2001 From: That_One_Nerd <78499572+That-One-Nerd@users.noreply.github.com> Date: Thu, 6 May 2021 10:53:21 -0400 Subject: [PATCH] Update General.cs - removed Miscellaneous --- Scripts/General.cs | 39 +++++++-------------------------------- 1 file changed, 7 insertions(+), 32 deletions(-) diff --git a/Scripts/General.cs b/Scripts/General.cs index 1447d86..1b6a633 100644 --- a/Scripts/General.cs +++ b/Scripts/General.cs @@ -1,5 +1,6 @@ -using System; +using System; using System.Linq; +using System.Security.Cryptography; namespace Nerd_STF { @@ -36,40 +37,14 @@ namespace Nerd_STF } } - public static class Miscellaneous - { - public static int SyllableCount(string input) - { - // Starter code by KeithS on StackExchange. - - input = input.ToLower().Trim(); - bool lastWasVowel = false; - char[] vowels = new[] { 'a', 'e', 'i', 'o', 'u', 'y' }; - int count = 0; - - foreach (var c in input) - { - if (vowels.Contains(c)) - { - if (!lastWasVowel) count++; - lastWasVowel = true; - } - else lastWasVowel = false; - } - - if ((input.EndsWith("e") || input.EndsWith("es") || input.EndsWith("ed")) && !input.EndsWith("le")) count--; - - return count; - } - } - public static class Stats { - public static readonly string Creator = "That_One_Nerd"; + public static readonly string Creator = "That_One_Nerd"; public static readonly string[] Links = new[] - { "Discord: https://discord.gg/ySXMtWDTYY/", + { + "Discord: https://discord.gg/ySXMtWDTYY/", "Github: https://https://github.com/that-one-nerd", - "Itch: https://that-one-nerd.itch.io/" + "Itch: https://that-one-nerd.itch.io/" }; public static readonly string Version = "2021.0"; } @@ -99,4 +74,4 @@ namespace Nerd_STF return new Optional(input); } } -} \ No newline at end of file +}