Fix scripts for t3 tactical modes

This commit is contained in:
blitzmann
2014-12-02 18:33:59 -05:00
parent 85029f6be8
commit de9fbd672f
3 changed files with 11 additions and 8 deletions

View File

@@ -143,15 +143,17 @@ def main(db, json_path):
tableData = convertTraits(tableData)
data[jsonName] = tableData
# 1306 - group Ship Modifiers, for items like tactical t3 ship modes
# Do some preprocessing to make our job easier
invTypes = set()
for row in data["invtypes"]:
if row["published"]:
if (row["published"] or row['groupID'] == 1306):
invTypes.add(row["typeID"])
# ignore checker
def isIgnored(file, row):
if file == "invtypes" and not row["published"]:
if file == "invtypes" and not (row["published"] or row['groupID'] == 1306):
return True
elif file == "dgmtypeeffects" and not row["typeID"] in invTypes:
return True