mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-10 07:05:41 +12:00
add more tack shop giveaway locations-
This commit is contained in:
parent
fe5e62daa7
commit
b09148431c
1 changed files with 18 additions and 14 deletions
|
@ -56,8 +56,6 @@ namespace HISP.Game.Events
|
||||||
{
|
{
|
||||||
Npc.NpcEntry[] npcShop = Npc.GetNpcByXAndY(sTile.X, sTile.Y);
|
Npc.NpcEntry[] npcShop = Npc.GetNpcByXAndY(sTile.X, sTile.Y);
|
||||||
if (npcShop.Length > 0)
|
if (npcShop.Length > 0)
|
||||||
{
|
|
||||||
if(npcShop[0].ShortDescription.ToLower().Contains("tack"))
|
|
||||||
{
|
{
|
||||||
specialTiles.Add(sTile);
|
specialTiles.Add(sTile);
|
||||||
}
|
}
|
||||||
|
@ -65,7 +63,6 @@ namespace HISP.Game.Events
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
string npcName = "ERROR";
|
string npcName = "ERROR";
|
||||||
string npcDesc = "OBTAINING NAME";
|
string npcDesc = "OBTAINING NAME";
|
||||||
|
@ -75,9 +72,16 @@ namespace HISP.Game.Events
|
||||||
Npc.NpcEntry[] npcShops = Npc.GetNpcByXAndY(Location.X, Location.Y);
|
Npc.NpcEntry[] npcShops = Npc.GetNpcByXAndY(Location.X, Location.Y);
|
||||||
|
|
||||||
npcName = npcShops[0].Name.Split(" ")[0];
|
npcName = npcShops[0].Name.Split(" ")[0];
|
||||||
|
if (npcShops[0].ShortDescription.ToLower().Contains("tack"))
|
||||||
|
{
|
||||||
npcDesc = npcShops[0].ShortDescription.Substring(npcShops[0].ShortDescription.ToLower().IndexOf("tack"));
|
npcDesc = npcShops[0].ShortDescription.Substring(npcShops[0].ShortDescription.ToLower().IndexOf("tack"));
|
||||||
|
|
||||||
ShopName = npcName + "'s " + npcDesc;
|
ShopName = npcName + "'s " + npcDesc;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShopName = npcName + "'s Gear";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue