Skip to content

Commit c2e2398

Browse files
Update TMCSaveEditor.py
1 parent 71d3513 commit c2e2398

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

TMCSaveEditor.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -626,27 +626,23 @@ def itemCheck(self, file):
626626
SsWsFs = 0b0
627627
botte = 0b0
628628
SwStuff1 = 0
629-
SwStuff2 = 0
630629
botte1 = 0
631630
botte2 = 0
632631
botte3 = 0
633632
botte4 = 0
634633
if self.sword.isChecked() == True:
635634
if self.oSword.currentIndex() == 0:
636635
SwStuff1 += 5
637-
SwStuff2 += 6
638636
elif self.oSword.currentIndex() == 1:
639637
SwStuff1 += 21
640-
SwStuff2 += 10
641638
elif self.oSword.currentIndex() == 2:
642-
SsWsFs += 8
643639
SwStuff1 += 85
644-
SwStuff2 += 170
645640
elif self.oSword.currentIndex() == 3:
646641
SsWsFs += 1
647-
SwStuff1 += 1
648-
SwStuff2 += 2
649-
else: SsWsFs += 16
642+
SwStuff1 += 85
643+
else:
644+
SwStuff1 += 85
645+
SsWsFs += 17
650646
if self.cape.isChecked() == True:
651647
RcPbO += 0b0001
652648
if self.boots.isChecked() == True:
@@ -707,8 +703,6 @@ def itemCheck(self, file):
707703
file.write((RbBLABB).to_bytes())
708704
file.write((SsWsFs).to_bytes())
709705
file.write((SwStuff1).to_bytes())
710-
file.seek(376 + (self.folenmbr*1280))
711-
file.write((SwStuff2).to_bytes())
712706
file.seek(382 + (self.folenmbr*1280))
713707
file.write((botte).to_bytes())
714708
file.seek(304 + (self.folenmbr*1280))
@@ -875,4 +869,4 @@ def partial_check(data: bytes) -> int:
875869
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
876870
app = QApplication(sys.argv)
877871
UIWindow = UI()
878-
app.exec_()
872+
app.exec_()

0 commit comments

Comments
 (0)