Added Repentance+ xml data lookup table
This commit is contained in:
1 parent
0feaa3733d
commit
a85094f520
3 files changed
+78
-3
No files matched your search
@@ -3,8 +3,14 @@
|
||||
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
filePath = "D:\\Programme\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources-dlc3\\"
|
||||
# filePath = "D:\\Program Files\\Steam\\steamapps\\common\\The Binding of Isaac Rebirth\\resources-dlc3\\"
|
||||
GENERATE_REP_PLUS = True
|
||||
|
||||
filePath = "..\\..\\resources-dlc3\\"
|
||||
writeToFile = "features/eid_xmldata.lua"
|
||||
|
||||
if GENERATE_REP_PLUS:
|
||||
filePath = "..\\..\\extracted_resources\\resources\\"
|
||||
writeToFile = "features/eid_xmldata_rep+.lua"
|
||||
|
||||
# take second element for sort
|
||||
def sortByID(elem):
|
||||
@@ -106,7 +112,7 @@ for entity in entitiesXML.findall('entity'):
|
||||
|
||||
#Write xml file
|
||||
|
||||
newfile = open("eid_xmldata.lua", "w")
|
||||
newfile = open(writeToFile, "w")
|
||||
newfile.write("--This file was autogenerated using 'lookuptable_generator.py' found in the scripts folder\n")
|
||||
newfile.write("--It will have to be updated whenever the game's item XML files are updated\n")
|
||||
|
||||
|
||||
Reference in new issue
Block a user