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!
Showing
1 changed file
with
15 additions
and
12 deletions
1 | |||
2 | |||
1 | import untangle | 3 | import untangle |
2 | import sys | 4 | import sys |
3 | import os | 5 | import os |
... | @@ -13,32 +15,32 @@ import shlex | ... | @@ -13,32 +15,32 @@ import shlex |
13 | 15 | ||
14 | field_list = { | 16 | field_list = { |
15 | "items-armor.xml": | 17 | "items-armor.xml": |
16 | {"fields": ["id", "flags", "name", "description", "level", "iLevel", "slots", "races"], | 18 | {"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"], |
17 | "calculated": {}}, | 19 | "calculated": {"jobs": "divide_hex_by_2"}}, |
18 | "items-armor2.xml": | 20 | "items-armor2.xml": |
19 | {"fields": ["id", "flags", "name", "description", "level", "iLevel", "slots", "races"], | 21 | {"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"], |
20 | "calculated": {}}, | 22 | "calculated": {"jobs": "divide_hex_by_2"}}, |
21 | "items-currency.xml": | 23 | "items-currency.xml": |
22 | {"fields": ["id", "flags", "name", "description", "log-name-singular", "log-name-plural"], | 24 | {"fields": ["id", "flags", "name", "description", "log-name-singular", "log-name-plural"], |
23 | "calculated": {}}, | 25 | "calculated": {}}, |
24 | "items-general.xml": | 26 | "items-general.xml": |
25 | {"fields": ["id", "flags", "name", "description"], | 27 | {"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "element", "storage-slots"], |
26 | "calculated": {}}, | 28 | "calculated": {}}, |
27 | "items-general2.xml": | 29 | "items-general2.xml": |
28 | {"fields": ["id", "flags", "name", "description"], | 30 | {"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "element", "storage-slots"], |
29 | "calculated": {}}, | 31 | "calculated": {}}, |
30 | "items-puppet.xml": | 32 | "items-puppet.xml": |
31 | {"fields": ["id", "flags", "name", "description", "puppet-slot", "element-charge"], | 33 | {"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "puppet-slot", "element-charge"], |
32 | "calculated": {}}, | 34 | "calculated": {}}, |
33 | "items-usable.xml": | 35 | "items-usable.xml": |
34 | {"fields": ["id", "flags", "name", "description", "activation-time"], | 36 | {"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural", "activation-time"], |
35 | "calculated": {}}, | 37 | "calculated": {}}, |
36 | "items-voucher-slip.xml": | 38 | "items-voucher-slip.xml": |
37 | {"fields": ["id", "flags", "name", "description", "valid-targets"], | 39 | {"fields": ["id", "flags", "stack-size", "valid-targets", "name", "description", "log-name-singular", "log-name-plural"], |
38 | "calculated": {}}, | 40 | "calculated": {}}, |
39 | "items-weapons.xml": | 41 | "items-weapons.xml": |
40 | {"fields": ["id", "flags", "name", "description", "level", "iLevel", "slots", "races", "damage", "jobs"], | 42 | {"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"], |
41 | "calculated": {"jobs": "divide_hex_by_2"}} | 43 | "calculated": {"jobs": "divide_hex_by_2"}}, |
42 | 44 | ||
43 | 45 | ||
44 | } | 46 | } |
... | @@ -93,4 +95,5 @@ for filename in os.listdir(args.sourcexml): | ... | @@ -93,4 +95,5 @@ for filename in os.listdir(args.sourcexml): |
93 | c.execute(query, row) | 95 | c.execute(query, row) |
94 | conn.commit() | 96 | conn.commit() |
95 | 97 | ||
96 | c.close() | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
98 | c.close() | ||
99 | ... | ... |
-
Please register or sign in to post a comment