forked from omicron/d2warehouse
Add item width/height to items.json
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user