Add item width/height to items.json

This commit is contained in:
omicron committed 2023-10-25 21:07:28 +02:00
1 parent 91a62f03ac
commit bd8e468a43
2 files changed
+1983 -659

No files matched your search

+6
View File
@@ -33,6 +33,8 @@ with open("armor.txt", newline="") as f:
"class": "armor",
"type": row["type"],
"stackable": row["stackable"] == "1",
"width": int(row["invwidth"]),
"height": int(row["invheight"]),
}
with open("weapons.txt", newline="") as f:
@@ -49,6 +51,8 @@ with open("weapons.txt", newline="") as f:
"class": "weapon",
"type": row["type"],
"stackable": row["stackable"] == "1",
"width": int(row["invwidth"]),
"height": int(row["invheight"]),
}
with open("misc.txt", newline="") as f:
@@ -63,6 +67,8 @@ with open("misc.txt", newline="") as f:
"class": "misc",
"type": row["type"],
"stackable": row["stackable"] == "1",
"width": int(row["invwidth"]),
"height": int(row["invheight"]),
}
for code, patch in item_patches.items():