mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Adding Dirty Fighting skill to combat * Adding DF PlayScripts * StatModVal: TickDamage -> TotalDamage
16 lines
380 B
C#
16 lines
380 B
C#
namespace ACE.Common.Extensions
|
|
{
|
|
public static class StringExtensions
|
|
{
|
|
public static bool StartsWithVowel(this string s)
|
|
{
|
|
if (s == null || s.Length == 0)
|
|
return false;
|
|
|
|
char firstLetter = s.ToLower()[0];
|
|
bool isVowel = "aeiou".IndexOf(firstLetter) >= 0;
|
|
|
|
return isVowel;
|
|
}
|
|
}
|
|
}
|