Updated NPC and Item methods for the new items.

This commit is contained in:
Deathmax 2011-06-03 10:57:43 +08:00
parent daf56053c8
commit ff5c47a57c
2 changed files with 5 additions and 5 deletions

View file

@ -430,7 +430,7 @@ namespace TShockAPI
public static int GetNPCID(string name, bool exact = false)
{
NPC npc = new NPC();
for (int i = 1; i <= 43; i++)
for (int i = 1; i <= 45; i++)
{
if (exact)
{
@ -455,7 +455,7 @@ namespace TShockAPI
{
Item item = new Item();
name = name.ToLower();
for (int i = 1; i <= 235; i++)
for (int i = 1; i <= 238; i++)
{
item.SetDefaults(i);
if (item.name.ToLower().StartsWith(name))