Skip to content

Commit

Permalink
100 float error
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowTabitha committed Oct 11, 2024
1 parent 484f0e5 commit 0eddfbd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions events/marioParty7_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,19 +670,19 @@ def calculateWeight(weight, total):
spaceOdds2Weights = sum(weight for weight in spaceOdds2)
spaceOdds34Weights = sum(weight for weight in shopOdds34)

if spaceOdds1Weights < 100:
if spaceOdds1Weights < 101:
spaceOdds1Max = max(zip(spaceOdds1, spaceOdds1), key=lambda tuple: tuple[1])[0]

if spaceOdds34Weights < 100:
if spaceOdds34Weights < 101:
spaceOdds34Max = max(zip(spaceOdds34, spaceOdds34), key=lambda tuple: tuple[1])[0]

if shopOdds12Weights < 100:
if shopOdds12Weights < 101:
shopOdds12Max = max(zip(shopOdds12, shopOdds12), key=lambda tuple: tuple[1])[0]

if spaceOdds2Weights < 100:
if spaceOdds2Weights < 101:
spaceOdds2Max = max(zip(spaceOdds2, spaceOdds2), key=lambda tuple: tuple[1])[0]

if shopOdds34Weights < 100:
if shopOdds34Weights < 101:
shopOdds34Max = max(zip(shopOdds34, shopOdds34), key=lambda tuple: tuple[1])[0]

if shopOdds12Max == 'mushroomCapsuleShopOdds12':
Expand Down

0 comments on commit 0eddfbd

Please sign in to comment.