mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Add Horse Pawneer
and Pawneer Orders.
This commit is contained in:
parent
2345b302fc
commit
d9cdd05acb
12 changed files with 653 additions and 263 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue