rename item kind to item code

This commit is contained in:
2023-10-23 21:39:08 +02:00
parent a4f2e1d354
commit 95664502dc
2 changed files with 9 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ class Item:
is_runeword: bool
pos_x: int
pos_y: int
kind: str
code: str
uid: int | None = None
lvl: int | None = None
quality: Quality | None = None
@@ -108,8 +108,8 @@ class Item:
def print(self, indent=5, with_raw=False):
properties = []
kind_name = lookup_basetype(self.kind)["name"]
print(" " * indent, f"{kind_name} ({self.kind})")
base_name = lookup_basetype(self.code)["name"]
print(" " * indent, f"{base_name} ({self.code})")
if self.lvl:
print(" " * indent, f"ilvl {self.lvl}")
if self.is_simple: