1d37f9b8 by Gravenet

Update:

Replace the Fields with the fields we would need
Replace Punctuation I screwed up on my branch
Copy Calculation to Anywhere Jobs is A Thing!
1 parent 52662843
Showing 1 changed file with 15 additions and 12 deletions
import untangle
import sys
import os
......@@ -13,32 +15,32 @@ import shlex
field_list = {
"items-armor.xml":
{"fields": ["id", "flags", "name", "description", "level", "iLevel", "slots", "races"],
"calculated": {}},
{"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "level", "iLevel", "slots", "races", "jobs", "superior-level", "shield-size", "max-charges", "casting-time" ,"use-delay", "reuse-delay"],
"calculated": {"jobs": "divide_hex_by_2"}},
"items-armor2.xml":
{"fields": ["id", "flags", "name", "description", "level", "iLevel", "slots", "races"],
"calculated": {}},
{"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "level", "iLevel", "slots", "races", "jobs", "superior-level", "shield-size", "max-charges", "casting-time" ,"use-delay", "reuse-delay"],
"calculated": {"jobs": "divide_hex_by_2"}},
"items-currency.xml":
{"fields": ["id", "flags", "name", "description", "log-name-singular", "log-name-plural"],
"calculated": {}},
"items-general.xml":
{"fields": ["id", "flags", "name", "description"],
{"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "element", "storage-slots"],
"calculated": {}},
"items-general2.xml":
{"fields": ["id", "flags", "name", "description"],
{"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "element", "storage-slots"],
"calculated": {}},
"items-puppet.xml":
{"fields": ["id", "flags", "name", "description", "puppet-slot", "element-charge"],
{"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "puppet-slot", "element-charge"],
"calculated": {}},
"items-usable.xml":
{"fields": ["id", "flags", "name", "description", "activation-time"],
{"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "activation-time"],
"calculated": {}},
"items-voucher-slip.xml":
{"fields": ["id", "flags", "name", "description", "valid-targets"],
{"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural"],
"calculated": {}},
"items-weapons.xml":
{"fields": ["id", "flags", "name", "description", "level", "iLevel", "slots", "races", "damage", "jobs"],
"calculated": {"jobs": "divide_hex_by_2"}}
{"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "level", "iLevel", "slots", "races", "jobs", "superior-level", "damage", "delay", "dps", "skill", "jug-size", "max-charges", "casting-time", "use-delay", "reuse-delay"],
"calculated": {"jobs": "divide_hex_by_2"}},
}
......@@ -93,4 +95,5 @@ for filename in os.listdir(args.sourcexml):
c.execute(query, row)
conn.commit()
c.close()
\ No newline at end of file
c.close()
......