Skip to content

Commit

Permalink
fixs some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowTabitha committed Aug 2, 2024
1 parent b708a8a commit d58181b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions events/marioParty7_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,11 @@ def calculateWeight(weight):
if max_var == 'posionMushroomWeight7':
posionMushroomWeight7 += (100 - orbWeightTotal)

if max_var == 'mysteryCapsulePrice7':
mysteryCapsulePrice7 += (100 - orbWeightTotal)
if max_var == 'mysteryCapsuleWeight7':
mysteryCapsuleWeight7 += (100 - orbWeightTotal)

if max_var == 'orbBagCapsulePrice7':
orbBagCapsulePrice7 += (100 - orbWeightTotal)
if max_var == 'orbBagCapsuleWeight7':
orbBagCapsuleWeight7 += (100 - orbWeightTotal)

mushroomCapsuleWeight7 = str(mushroomCapsuleWeight7)
goldenMushroomCapsuleWeight7 = str(goldenMushroomCapsuleWeight7)
Expand Down Expand Up @@ -343,8 +343,8 @@ def calculateWeight(weight):
duelCapsuleWeight7 = str(duelCapsuleWeight7)
dkCapsuleWeight7 = str(dkCapsuleWeight7)
posionMushroomWeight7 = str(posionMushroomWeight7)
mysteryCapsulePrice7 = str(mysteryCapsulePrice7)
orbBagCapsulePrice7 = str(orbBagCapsulePrice7)
mysteryCapsuleWeight7 = str(mysteryCapsuleWeight7)
orbBagCapsuleWeight7 = str(orbBagCapsuleWeight7)

try:
mushroomCapsuleWeight7 = hex(int(mushroomCapsuleWeight7))
Expand Down Expand Up @@ -903,6 +903,7 @@ def calculateWeight(weight):
orbBagCapsuleWeight7 = "0" + orbBagCapsuleWeight7[2:]
except:
orbBagCapsuleWeight7 = "00"

try:
orbBagCapsulePrice7 = hex(int(orbBagCapsulePrice7))
if len(orbBagCapsulePrice7) == 4:
Expand Down Expand Up @@ -1039,6 +1040,7 @@ def savePresetItems7(mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, golden
posionMushroomWeight7 = posionMushroomWeight7.get()
except:
posionMushroomWeight7 = 0

try:
duelCapsulePrice7 = duelCapsulePrice7.get()
except:
Expand Down

0 comments on commit d58181b

Please sign in to comment.