add more tack shop giveaway locations-

This commit is contained in:
SilicaAndPina 2021-04-05 15:47:55 +12:00
parent fe5e62daa7
commit b09148431c

View file

@ -56,8 +56,6 @@ namespace HISP.Game.Events
{
Npc.NpcEntry[] npcShop = Npc.GetNpcByXAndY(sTile.X, sTile.Y);
if (npcShop.Length > 0)
{
if(npcShop[0].ShortDescription.ToLower().Contains("tack"))
{
specialTiles.Add(sTile);
}
@ -65,7 +63,6 @@ namespace HISP.Game.Events
}
}
}
}
string npcName = "ERROR";
string npcDesc = "OBTAINING NAME";
@ -75,9 +72,16 @@ namespace HISP.Game.Events
Npc.NpcEntry[] npcShops = Npc.GetNpcByXAndY(Location.X, Location.Y);
npcName = npcShops[0].Name.Split(" ")[0];
if (npcShops[0].ShortDescription.ToLower().Contains("tack"))
{
npcDesc = npcShops[0].ShortDescription.Substring(npcShops[0].ShortDescription.ToLower().IndexOf("tack"));
ShopName = npcName + "'s " + npcDesc;
}
else
{
ShopName = npcName + "'s Gear";
}
while(true)
{