Add item width/height to items.json

This commit is contained in:
2023-10-25 21:02:19 +02:00
parent 91a62f03ac
commit bd8e468a43
2 changed files with 1983 additions and 659 deletions
+6
View File
@@ -33,6 +33,8 @@ with open("armor.txt", newline="") as f:
"class": "armor", "class": "armor",
"type": row["type"], "type": row["type"],
"stackable": row["stackable"] == "1", "stackable": row["stackable"] == "1",
"width": int(row["invwidth"]),
"height": int(row["invheight"]),
} }
with open("weapons.txt", newline="") as f: with open("weapons.txt", newline="") as f:
@@ -49,6 +51,8 @@ with open("weapons.txt", newline="") as f:
"class": "weapon", "class": "weapon",
"type": row["type"], "type": row["type"],
"stackable": row["stackable"] == "1", "stackable": row["stackable"] == "1",
"width": int(row["invwidth"]),
"height": int(row["invheight"]),
} }
with open("misc.txt", newline="") as f: with open("misc.txt", newline="") as f:
@@ -63,6 +67,8 @@ with open("misc.txt", newline="") as f:
"class": "misc", "class": "misc",
"type": row["type"], "type": row["type"],
"stackable": row["stackable"] == "1", "stackable": row["stackable"] == "1",
"width": int(row["invwidth"]),
"height": int(row["invheight"]),
} }
for code, patch in item_patches.items(): for code, patch in item_patches.items():
+1977 -659
View File
File diff suppressed because it is too large Load Diff