From 33f9076f56ca199195e3d54875a49ccc8a67fdfc Mon Sep 17 00:00:00 2001 From: FistingUranus <77898683+Fis-Ura@users.noreply.github.com> Date: Wed, 10 Apr 2024 15:38:27 -0400 Subject: [PATCH] fix to be able to build --- pythonlib/games/ToolsTales.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pythonlib/games/ToolsTales.py b/pythonlib/games/ToolsTales.py index 2ead79d..9f33328 100644 --- a/pythonlib/games/ToolsTales.py +++ b/pythonlib/games/ToolsTales.py @@ -498,8 +498,10 @@ class ToolsTales: for c in t: if c in self.PRINTABLE_CHARS or c == "\u3000": output += c.encode("cp932") + elif c in self.ijsonTblTags["TBL"]: + output += struct.pack(">H", self.ijsonTblTags["TBL"][c]) else: - output += struct.pack(">H", self.ijsonTblTags["TBL"].get(c, int.from_bytes(c.encode("cp932"), "big"))) + output += struct.pack(">H", int.from_bytes(c.encode("cp932"), "big")) return output