Skip to content

Commit

Permalink
Update TMCSaveEditor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Captainkittyca2 authored Jul 20, 2024
1 parent 71d3513 commit c2e2398
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions TMCSaveEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,27 +626,23 @@ def itemCheck(self, file):
SsWsFs = 0b0
botte = 0b0
SwStuff1 = 0
SwStuff2 = 0
botte1 = 0
botte2 = 0
botte3 = 0
botte4 = 0
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:
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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_()
app.exec_()

0 comments on commit c2e2398

Please sign in to comment.