From fc2975a75f4c67650b41eda15ededd41c0d72c8f Mon Sep 17 00:00:00 2001 From: Mc-muffin <8714476+Mc-muffin@users.noreply.github.com> Date: Tue, 23 May 2023 00:56:43 -0500 Subject: [PATCH] don't yeet jp spaces --- pythonlib/games/ToolsTales.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pythonlib/games/ToolsTales.py b/pythonlib/games/ToolsTales.py index 27d9dcc..bbc5970 100644 --- a/pythonlib/games/ToolsTales.py +++ b/pythonlib/games/ToolsTales.py @@ -484,7 +484,6 @@ class ToolsTales: if param is not None: 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: @@ -501,7 +500,7 @@ class ToolsTales: output += b"\x01" else: for c in t: - if c in self.PRINTABLE_CHARS: + if c in self.PRINTABLE_CHARS or c == "\u3000": output += c.encode("cp932") else: output += struct.pack(">H", self.ijsonTblTags["TBL"].get(c, int.from_bytes(c.encode("cp932"), "big")))