Updated NPC and Item methods for the new items.
This commit is contained in:
parent
daf56053c8
commit
ff5c47a57c
2 changed files with 5 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue