Break Item dump into versions. Readme.io 400kb limit O_o
This commit is contained in:
parent
1a622f241f
commit
c35389f9f8
2 changed files with 6 additions and 3 deletions
|
|
@ -641,7 +641,10 @@ namespace TShockAPI
|
||||||
ServerSideConfig.DumpDescriptions();
|
ServerSideConfig.DumpDescriptions();
|
||||||
RestManager.DumpDescriptions();
|
RestManager.DumpDescriptions();
|
||||||
Utils.DumpBuffs("BuffList.txt");
|
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.DumpNPCs("NPCs.txt");
|
||||||
Utils.DumpProjectiles("Projectiles.txt");
|
Utils.DumpProjectiles("Projectiles.txt");
|
||||||
Utils.DumpPrefixes("Prefixes.txt");
|
Utils.DumpPrefixes("Prefixes.txt");
|
||||||
|
|
|
||||||
|
|
@ -1208,7 +1208,7 @@ namespace TShockAPI
|
||||||
File.WriteAllText(path, buffer.ToString());
|
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();
|
Main.player[Main.myPlayer] = new Player();
|
||||||
StringBuilder buffer = new StringBuilder();
|
StringBuilder buffer = new StringBuilder();
|
||||||
|
|
@ -1219,7 +1219,7 @@ namespace TShockAPI
|
||||||
buffer.AppendLine(" \"h-2\": \"Tooltip 2\",");
|
buffer.AppendLine(" \"h-2\": \"Tooltip 2\",");
|
||||||
|
|
||||||
List<object[]> elements = new List<object[]>();
|
List<object[]> elements = new List<object[]>();
|
||||||
for (int i = -48; i < Main.maxItemTypes; i++)
|
for (int i = start; i < end; i++)
|
||||||
{
|
{
|
||||||
Item item = new Item();
|
Item item = new Item();
|
||||||
item.netDefaults(i);
|
item.netDefaults(i);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue