rename item kind to item code
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user