From 41b20f09771a83a19a1000f85f224ae8256a74fc Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Mon, 22 May 2023 12:51:14 -0500 Subject: [PATCH] More insertion memes --- pythonlib/games/ToolsTales.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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("