diff --git a/pythonlib/games/ToolsTales.py b/pythonlib/games/ToolsTales.py index b1b57f1..acd908a 100644 --- a/pythonlib/games/ToolsTales.py +++ b/pythonlib/games/ToolsTales.py @@ -480,15 +480,15 @@ class ToolsTales: # Tags elif re.match(self.COMMON_TAG, t): - tag, param, *_ = t[3][1:-1].split(":") + [None] + tag, param, *_ = t[1:-1].split(":") + [None] if param is not None: - output += struct.pack("B", self.ijsonTblTags["TAGS"].get(tag, int(tag, 16))) + output += struct.pack("B", self.ijsonTblTags["TAGS"].get(tag) or int(tag, 16)) # FIXME if "unk" in tag.lower(): output += bytes.fromhex(self.str2(param)) else: - output += struct.pack("