Add Horse Pawneer

and Pawneer Orders.
This commit is contained in:
SilicaAndPina 2021-02-15 13:31:00 +13:00
parent 2345b302fc
commit d9cdd05acb
12 changed files with 653 additions and 263 deletions

View file

@ -92,11 +92,7 @@ namespace HISP.Game.Items
return pos;
}
}
private static string capitalizeFirstLetter(string str)
{
char firstChar = char.ToUpper(str[0]);
return firstChar + str.Substring(1);
}
private static List<TackSet> tackSets = new List<TackSet>();
public static TackSet[] TackSets
{
@ -126,14 +122,13 @@ namespace HISP.Game.Items
try
{
TackSet set = GetSetByName(capitalizeFirstLetter(itemInfo.EmbedSwf));
TackSet set = GetSetByName(Converters.CapitalizeFirstLetter(itemInfo.EmbedSwf));
set.Add(itemInfo);
}
catch(KeyNotFoundException)
{
TackSet tackSet = new TackSet();
tackSet.SetName = capitalizeFirstLetter(itemInfo.EmbedSwf);
Logger.DebugPrint("Created Tack Set: "+tackSet.SetName);
tackSet.SetName = Converters.CapitalizeFirstLetter(itemInfo.EmbedSwf);
tackSet.Add(itemInfo);
tackSets.Add(tackSet);
}