diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 92828c20..d02dd554 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -641,7 +641,10 @@ namespace TShockAPI ServerSideConfig.DumpDescriptions(); RestManager.DumpDescriptions(); Utils.DumpBuffs("BuffList.txt"); - Utils.DumpItems("Items.txt"); + Utils.DumpItems("Items-1_0.txt", -48, 235); + Utils.DumpItems("Items-1_1.txt", 235, 604); + Utils.DumpItems("Items-1_2.txt", 604, 2749); + Utils.DumpItems("Items-1_3.txt", 2749, Main.maxItemTypes); Utils.DumpNPCs("NPCs.txt"); Utils.DumpProjectiles("Projectiles.txt"); Utils.DumpPrefixes("Prefixes.txt"); diff --git a/TShockAPI/Utils.cs b/TShockAPI/Utils.cs index 82bd7c51..56115e31 100644 --- a/TShockAPI/Utils.cs +++ b/TShockAPI/Utils.cs @@ -1208,7 +1208,7 @@ namespace TShockAPI File.WriteAllText(path, buffer.ToString()); } - public void DumpItems(string path) + public void DumpItems(string path, int start, int end) { Main.player[Main.myPlayer] = new Player(); StringBuilder buffer = new StringBuilder(); @@ -1219,7 +1219,7 @@ namespace TShockAPI buffer.AppendLine(" \"h-2\": \"Tooltip 2\","); List elements = new List(); - for (int i = -48; i < Main.maxItemTypes; i++) + for (int i = start; i < end; i++) { Item item = new Item(); item.netDefaults(i);