From 8b86f14ee2f0df57848bfdc89749ca1d1181f90e Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 23 Feb 2019 14:49:07 +0300 Subject: [PATCH] Ignore more attributes when finding similar items --- scripts/jsonToSql.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/jsonToSql.py b/scripts/jsonToSql.py index dc0c74056..248d23072 100755 --- a/scripts/jsonToSql.py +++ b/scripts/jsonToSql.py @@ -237,7 +237,11 @@ def main(db, json_path): typeSkillAttribs[row['attributeID']] = row['value'] # Ignore these attributes for comparison purposes elif attributeID in ( + # We do not need mass as it participates in calculations only when carried by ships + # (and we're not going to replace ships), but it's wildly inconsistent for other items + 4, # mass 124, # mainColor + 162, # radius 422, # techLevel 633, # metaLevel 1692 # metaGroupID