From c2e239867368e0eaf24790e5630bc3b24e8fa4a6 Mon Sep 17 00:00:00 2001 From: Captain Kitty Cat <68467449+Captainkittyca2@users.noreply.github.com> Date: Sat, 20 Jul 2024 19:21:52 +0300 Subject: [PATCH] Update TMCSaveEditor.py --- TMCSaveEditor.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/TMCSaveEditor.py b/TMCSaveEditor.py index 5669b99..ec03bd3 100644 --- a/TMCSaveEditor.py +++ b/TMCSaveEditor.py @@ -626,7 +626,6 @@ def itemCheck(self, file): SsWsFs = 0b0 botte = 0b0 SwStuff1 = 0 - SwStuff2 = 0 botte1 = 0 botte2 = 0 botte3 = 0 @@ -634,19 +633,16 @@ def itemCheck(self, file): if self.sword.isChecked() == True: if self.oSword.currentIndex() == 0: SwStuff1 += 5 - SwStuff2 += 6 elif self.oSword.currentIndex() == 1: SwStuff1 += 21 - SwStuff2 += 10 elif self.oSword.currentIndex() == 2: - SsWsFs += 8 SwStuff1 += 85 - SwStuff2 += 170 elif self.oSword.currentIndex() == 3: SsWsFs += 1 - SwStuff1 += 1 - SwStuff2 += 2 - else: SsWsFs += 16 + SwStuff1 += 85 + else: + SwStuff1 += 85 + SsWsFs += 17 if self.cape.isChecked() == True: RcPbO += 0b0001 if self.boots.isChecked() == True: @@ -707,8 +703,6 @@ def itemCheck(self, file): file.write((RbBLABB).to_bytes()) file.write((SsWsFs).to_bytes()) file.write((SwStuff1).to_bytes()) - file.seek(376 + (self.folenmbr*1280)) - file.write((SwStuff2).to_bytes()) file.seek(382 + (self.folenmbr*1280)) file.write((botte).to_bytes()) file.seek(304 + (self.folenmbr*1280)) @@ -875,4 +869,4 @@ def partial_check(data: bytes) -> int: os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1" app = QApplication(sys.argv) UIWindow = UI() - app.exec_() \ No newline at end of file + app.exec_()