Remove quality export, improve max ID comment

This commit is contained in:
Buurazu authored and GitHub committed 2022-04-25 22:26:45 -04:00
1 parent 25f3698dd4
commit 7ee0fda942
1 file changed
+1 -8
+1 -8
View File
@@ -113,7 +113,7 @@ newfile.write("--This file was autogenerated using 'lookuptable_generator.py' fo
newfile.write("--It will have to be updated whenever the game's item XML files are updated\n") newfile.write("--It will have to be updated whenever the game's item XML files are updated\n")
newfile.write("--The highest item ID found\n") newfile.write("--The highest item ID found in this specific export of XML data\nCrafting doesn't use the in-game enum, because otherwise array index out-of-bounds errors could occur immediately after a game update\n")
newfile.write("EID.XMLMaxItemID = "+str(maxItemID) + "\n") newfile.write("EID.XMLMaxItemID = "+str(maxItemID) + "\n")
@@ -131,13 +131,6 @@ for poolName, data in itempools.items():
newfile.write("}\n\n") newfile.write("}\n\n")
newfile.write("--The quality of each item, for use in Bag of Crafting\n")
newfile.write("EID.XMLItemQualities = {")
for item in itemQuality:
newfile.write("["+str(item["id"])+"] = "+str(item["quality"])+", ")
newfile.write("}\n\n")
newfile.write("--The pools that each item is in, for roughly checking if a given item is unlocked\n") newfile.write("--The pools that each item is in, for roughly checking if a given item is unlocked\n")
newfile.write("EID.XMLItemIsInPools = {") newfile.write("EID.XMLItemIsInPools = {")
for itemid, data in itemIDToPool.items(): for itemid, data in itemIDToPool.items():